Skip to content

Commit e27ce34

Browse files
committed
replace SopsAgeSshPrivateKeyEnv in comments
Signed-off-by: haoqixu <[email protected]>
1 parent f97b7bf commit e27ce34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

age/keysource.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ func parseSSHIdentityFromPrivateKeyFile(keyPath string) (age.Identity, error) {
302302
}
303303

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

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

0 commit comments

Comments
 (0)