* fix: handle CLI session expired errors gracefully - Add session_expired to FailoverReason type - Add isCliSessionExpiredErrorMessage to detect expired CLI sessions - Modify runCliAgent to retry with new session when session expires - Update agentCommand to clear expired session IDs from session store - Add proper error handling to prevent gateway crashes on expired sessions Fixes #30986 * fix: add session_expired to AuthProfileFailureReason and missing log import * fix: type cli-runner usage field to match EmbeddedPiAgentMeta * fix: harden CLI session-expiry recovery handling * build: regenerate host env security policy swift --------- Co-authored-by: Peter Steinberger <steipete@gmail.com>
39 lines
816 B
Swift
39 lines
816 B
Swift
// Generated file. Do not edit directly.
|
|
// Source: src/infra/host-env-security-policy.json
|
|
// Regenerate: node scripts/generate-host-env-security-policy-swift.mjs --write
|
|
|
|
import Foundation
|
|
|
|
enum HostEnvSecurityPolicy {
|
|
static let blockedKeys: Set<String> = [
|
|
"NODE_OPTIONS",
|
|
"NODE_PATH",
|
|
"PYTHONHOME",
|
|
"PYTHONPATH",
|
|
"PERL5LIB",
|
|
"PERL5OPT",
|
|
"RUBYLIB",
|
|
"RUBYOPT",
|
|
"BASH_ENV",
|
|
"ENV",
|
|
"GIT_EXTERNAL_DIFF",
|
|
"SHELL",
|
|
"SHELLOPTS",
|
|
"PS4",
|
|
"GCONV_PATH",
|
|
"IFS",
|
|
"SSLKEYLOGFILE"
|
|
]
|
|
|
|
static let blockedOverrideKeys: Set<String> = [
|
|
"HOME",
|
|
"ZDOTDIR"
|
|
]
|
|
|
|
static let blockedPrefixes: [String] = [
|
|
"DYLD_",
|
|
"LD_",
|
|
"BASH_FUNC_"
|
|
]
|
|
}
|