personal

package
v0.1.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2026 License: Unlicense Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const MarkerPath = ".vaultenv-repo.json"

MarkerPath is the file that marks a repo as a vaultenv personal vault.

View Source
const SecretsRepoName = "vaultenv-secrets"

SecretsRepoName is the GitHub repo name for a user's personal vaultenv storage.

Variables

This section is empty.

Functions

func EncryptedPrivateKeyPath

func EncryptedPrivateKeyPath(username string) string

EncryptedPrivateKeyPath is the path to the passphrase-wrapped private key in the personal repo.

func MarkerJSON

func MarkerJSON(username string) string

MarkerJSON returns the JSON marker written when creating a personal vault.

func PublicKeyPath

func PublicKeyPath(username string) string

PublicKeyPath is the path to the base64-encoded public key in the personal repo.

func RecoverPassphraseFromLocalKey added in v0.1.4

func RecoverPassphraseFromLocalKey(store storage.Provider, username string, privKey *[32]byte, newPassphrase string) error

RecoverPassphraseFromLocalKey re-encrypts the given raw private key with newPassphrase, uploads keys/<username>.key.enc to the personal vault, and refreshes local key files. It does not read or decrypt the existing .key.enc on GitHub. The local private key must match the public key already stored in the personal repo.

func RotatePassphrase

func RotatePassphrase(store storage.Provider, username, currentPassphrase, newPassphrase string) error

RotatePassphrase decrypts the user's encrypted private key with currentPassphrase, re-encrypts with newPassphrase, uploads it to the personal vault, and refreshes local key files. Fails without writing to GitHub if decryption or validation fails.

func VaultRepo

func VaultRepo(username string) string

VaultRepo returns the full "owner/name" repo slug for the personal secrets repo.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL