Edge HTTP Content-Security-Policy (CSP), HSTS & Cookie Posture Patcher
Audits response headers for `unsafe-inline` CSP holes, missing HSTS `preload`, and lax session cookies, staging an approval-gated edge security-header rollout.
Governed Workflow Steps (4)
- 1. Parse Captured HTTP Response Headers
Parse Captured HTTP Response Headers & Cookie Attributes: consume [capturedHeaders] via ingest.local_http_header_parser to emit [headerAst]. Verify invariant: typeof headerAst === "object".
- 2. Score Security Posture & Synthesize
Score Security Posture & Synthesize Nonce-Based CSP + HSTS Patch: consume [headerAst] via vault.vault-http-csp-hsts-cookie-hardener to emit [postureScoreAfter, hardenedHeaderMap]. Verify invariant: postureScoreAfter >= 95.
- 3. Approval Gate: Human Review
Pause for explicit human review and signed approval token before executing external write "Approval-Gated Edge Worker Security Header Rollout" (webhook.edge_header_config_deploy_webhook).
- 4. Approval-Gated Edge Worker Security · [Airlock Approval Required]
Approval-Gated Edge Worker Security Header Rollout: consume [hardenedHeaderMap] via webhook.edge_header_config_deploy_webhook to emit [deployVersionId]. Verify invariant: approvalTokenVerified === true.