{"record":{"id":"094abdd163e035f5","repo":"getsops/sops","slug":"the-ssh-key-returned-by-running-sops-age-ssh-priva","errorCode":null,"errorMessage":"the SSH key returned by running SOPS_AGE_SSH_PRIVATE_KEY_CMD is password protected, which is unsupported. (%q)","messagePattern":"the SSH key returned by running SOPS_AGE_SSH_PRIVATE_KEY_CMD is password protected, which is unsupported\\. \\(%q\\)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"age/keysource.go","lineNumber":580,"sourceCode":"func parseIdentity(s string) (age.Identity, error) {\n\tswitch {\n\tcase strings.HasPrefix(s, \"AGE-PLUGIN-\"):\n\t\treturn plugin.NewIdentity(s, pluginTerminalUI)\n\tcase strings.HasPrefix(s, \"AGE-SECRET-KEY-PQ-1\"):\n\t\treturn age.ParseHybridIdentity(s)\n\tcase strings.HasPrefix(s, \"AGE-SECRET-KEY-1\"):\n\t\treturn age.ParseX25519Identity(s)\n\tdefault:\n\t\treturn nil, fmt.Errorf(\"unknown identity type\")\n\t}\n}\n\n// parseSSHIdentityFromPrivateKeyCmdOutput returns an age.Identity from the given\n// private key. Note that encrypted private keys are not supported.\nfunc parseSSHIdentityFromPrivateKeyCmdOutput(key []byte) (age.Identity, error) {\n\tid, err := agessh.ParseIdentity(key)\n\tif sshErr, ok := err.(*ssh.PassphraseMissingError); ok {\n\t\treturn nil, fmt.Errorf(\"the SSH key returned by running SOPS_AGE_SSH_PRIVATE_KEY_CMD is password protected, which is unsupported. (%q)\", sshErr)\n\t}\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"malformed SSH identity returned by running SOPS_AGE_SSH_PRIVATE_KEY_CMD: %q\", err)\n\t}\n\treturn id, nil\n}\n","sourceCodeStart":562,"sourceCodeEnd":587,"githubUrl":"https://github.com/getsops/sops/blob/13442bb98183887d7a9ac09ec8ab0564673a59d8/age/keysource.go#L562-L587","documentation":"Error \"the SSH key returned by running SOPS_AGE_SSH_PRIVATE_KEY_CMD is password protected, which is unsupported. (%q)\" thrown in getsops/sops.","triggerScenarios":"Thrown at age/keysource.go:580 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"13442bb98183887d7a9ac09ec8ab0564673a59d8","analyzedAt":"2026-09-01T03:53:00.447Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}