Skip to content

Commit

Permalink
replace SopsAgeSshPrivateKeyEnv in comments
Browse files Browse the repository at this point in the history
Signed-off-by: haoqixu <[email protected]>
  • Loading branch information
haoqixu committed Jan 2, 2025
1 parent 299e594 commit 823d1df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions age/keysource.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ func parseSSHIdentityFromPrivateKeyFile(keyPath string) (age.Identity, error) {
}

// loadAgeSSHIdentity attempts to load the age SSH identity based on an SSH
// private key from the SopsAgeSshPrivateKeyEnv environment variable. If the
// private key from the SopsAgeSshPrivateKeyFileEnv environment variable. If the
// environment variable is not present, it will fall back to `~/.ssh/id_ed25519`
// or `~/.ssh/id_rsa`. If no age SSH identity is found, it will return nil.
func loadAgeSSHIdentity() (age.Identity, error) {
Expand Down Expand Up @@ -341,7 +341,7 @@ func getUserConfigDir() (string, error) {

// loadIdentities attempts to load the age identities based on runtime
// environment configurations (e.g. SopsAgeKeyEnv, SopsAgeKeyFileEnv,
// SopsAgeSshPrivateKeyEnv, SopsAgeKeyUserConfigPath). It will load all
// SopsAgeSshPrivateKeyFileEnv, SopsAgeKeyUserConfigPath). It will load all
// found references, and expects at least one configuration to be present.
func (key *MasterKey) loadIdentities() (ParsedIdentities, error) {
var identities ParsedIdentities
Expand Down

0 comments on commit 823d1df

Please sign in to comment.