Skip to content

Harden PKI: constrain CA, fail-hard secrets, cert TTL#3

Merged
persimmon16 merged 3 commits intofeat/apple-containerfrom
security/pki-hardening
Apr 1, 2026
Merged

Harden PKI: constrain CA, fail-hard secrets, cert TTL#3
persimmon16 merged 3 commits intofeat/apple-containerfrom
security/pki-hardening

Conversation

@persimmon16
Copy link
Copy Markdown
Owner

Summary

  • F05: generate_secret() now returns Result and fails hard when /dev/urandom is unavailable instead of silently producing all-zeros
  • F06: CA basic constraints set to Constrained(0) — compromised leaf certs can no longer mint sub-CAs
  • F12: Replace host.docker.internal SAN with host.containers.internal for Apple Container
  • F19: Certificate validity set to 365 days instead of effectively-infinite (1975-4096)

Test plan

  • cargo test -p openshell-bootstrap passes
  • cargo build --release -p openshell-bootstrap succeeds
  • Verify generated CA cert has pathLenConstraint: 0 via openssl x509 -text

@persimmon16 persimmon16 force-pushed the security/pki-hardening branch from b9b0aca to 170b47e Compare April 1, 2026 03:14
@persimmon16 persimmon16 merged commit ae04479 into feat/apple-container Apr 1, 2026
9 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant