mirror of
https://github.com/moltbot/moltbot.git
synced 2026-03-07 22:44:16 +00:00
refactor(security): centralize host env policy and harden env ingestion
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import Foundation
|
||||
|
||||
enum HostEnvSanitizer {
|
||||
// Keep in sync with src/infra/host-env-security-policy.json.
|
||||
// Parity is validated by src/infra/host-env-security.policy-parity.test.ts.
|
||||
private static let blockedKeys: Set<String> = [
|
||||
"NODE_OPTIONS",
|
||||
"NODE_PATH",
|
||||
|
||||
Reference in New Issue
Block a user