1
0
mirror of https://github.com/getsops/sops.git synced 2026-02-05 12:45:21 +01:00

replace SopsAgeSshPrivateKeyEnv in comments

Signed-off-by: haoqixu <hq.xu0o0@gmail.com>
This commit is contained in:
haoqixu
2025-01-02 15:57:03 +08:00
parent bbcfa1a862
commit 5332127f2a

View File

@@ -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) {
@@ -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