agent-exec transport c2933fd3bec7cf8194e9e35ec557ecbf/133d229ce0aa

This commit is contained in:
agent-exec-transport
2026-10-20 01:35:08 +00:00
parent b351fd5d08
commit 4d1ede2adf
24 changed files with 890 additions and 1604 deletions
+3 -3
View File
@@ -461,7 +461,7 @@ func runUser(args []string) int {
out := fs.String("out", "", "凭据保护交付文件(0600 JSON)")
fs.Parse(args[1:])
if sub == "reset-password" || sub == "issue-login-key" {
fmt.Fprintln(os.Stderr, "RECOVERY_CONTRACT_REPLACED: use owner initialization or owner-confirmed recovery")
fmt.Fprintln(os.Stderr, "RECOVERY_CONTRACT_REPLACED: use POST /api/admin/users/{owner}/one-time-password")
return 2 // reject before DSN/password reads, storage opens or output reservation
}
if sub == "create" && (*password != "" || *passwordStdin || *generatePassword) {
@@ -553,7 +553,7 @@ func runUser(args []string) int {
}
return 0
case "reset-password":
fmt.Fprintln(os.Stderr, "RECOVERY_CONTRACT_REPLACED")
fmt.Fprintln(os.Stderr, "RECOVERY_CONTRACT_REPLACED: use POST /api/admin/users/{owner}/one-time-password")
return 2
case "list":
users, err := app.ListUserAccounts(*dsn, *data, *openExisting)
@@ -565,7 +565,7 @@ func runUser(args []string) int {
fmt.Println(string(out))
return 0
case "issue-login-key":
fmt.Fprintln(os.Stderr, "RECOVERY_CONTRACT_REPLACED")
fmt.Fprintln(os.Stderr, "RECOVERY_CONTRACT_REPLACED: use POST /api/admin/users/{owner}/one-time-password")
return 2
case "revoke-login-key":
if *keyID == "" {