fix(infra): M8 audit batch 1 — IdP credential parameterization, bootstrap gate, OTP redaction, compose hardening (#214) #216
No reviewers
Labels
No labels
epic
phase-0
phase-1
phase-2
phase-3
phase-4
phase-5
phase-6
phase-7
phase-8
phase-9
priority/P0
priority/P1
priority/P2
type/backend
type/client
type/docs
type/ops
type/security
type/spike
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
primatekuntech/failsulit!216
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/m8-audit-infra"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
M8-close audit remediation batch 1 (#214 findings M8-1, M8-7, M8-8 + L8).
M8-1 (live-credential): deploy/idp/steps.yaml shipped the live IdP admin password (
ChangeMe1!, no change required) in a repo linked from security.txt. The password now arrives viaZITADEL_FIRSTINSTANCE_ORG_HUMAN_PASSWORD_PASSWORDfrom idp/.env (required at boot),PasswordChangeRequiredflips to true.⚠️ OPERATOR ACTION REQUIRED (cannot be done from a PR): on the LIVE idp.failsulit.com the init step is a no-op — rotate the admin password via the IdP console NOW, and set
IDP_ADMIN_PASSWORDin idp/.env before the next recreate.M8-7 (bootstrap race):
/api/admin/bootstrap/setup|confirmwere public until a SuperAdmin exists — first scanner to complete the flow owns the deployment (staging bootstrap is still pending). Both are now gated onBootstrap:Enabled=true(default OFF); 404 when disarmed; status stays read-only. Deploy note: arming step added to deployment-guide §11.M8-8 (OTP oracle): NullEmailService logged registration/TOTP-recovery OTP codes at INFO into rotating log files (email-disabled mode is documented and staging runs it). Codes are no longer logged.
L8: compose api service gains a curl /health healthcheck (crash-looping API previously showed running); compose.local postgres binds to 127.0.0.1.
Also updates deployment-guide §11 + the Sessions sample (ChallengeTtlMinutes 10, MaxPerAccount — see #212-campaign PR-2).
Tests: BootstrapGateTests (3 new: disabled-404 ×2, read-only status) + BootstrapTests green; full suite 1085 green.
Part of the M8-close FIX-ALL (umbrella #215, audit #214).