Documentation
¶
Index ¶
Constants ¶
const MarkerPath = ".vaultenv-repo.json"
MarkerPath is the file that marks a repo as a vaultenv personal vault.
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 ¶
EncryptedPrivateKeyPath is the path to the passphrase-wrapped private key in the personal repo.
func MarkerJSON ¶
MarkerJSON returns the JSON marker written when creating a personal vault.
func PublicKeyPath ¶
PublicKeyPath is the path to the base64-encoded public key 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.
Types ¶
This section is empty.