Skip to content

fix: check-pck-expiry checks X.509 cert expiry - #109

Merged
butler54 merged 1 commit into
validatedpatterns:mainfrom
butler54:fix/pck-x509-expiry
Aug 24, 2026
Merged

fix: check-pck-expiry checks X.509 cert expiry#109
butler54 merged 1 commit into
validatedpatterns:mainfrom
butler54:fix/pck-x509-expiry

Conversation

@butler54

Copy link
Copy Markdown
Collaborator

Summary

Follow-up to #107. The PCK cache blob stored in intel-dcap-operator-system contains URL-encoded PEM X.509 certificates (PCK certs + Intel SGX CA chain) alongside the embedded JSON TCB info. The version merged in #107 only checked the TCB nextUpdate (collateral freshness), not the actual certificate expiry.

This adds extraction and parsing of the X.509 certs so check-pck-expiry.sh reports both:

  • X.509 cert notAfter — PCK certs (~7-year validity) and CA chain
  • TCB nextUpdate — collateral freshness (~30 days)

Both are operationally relevant: stale TCB info can cause attestation failures, and expired certs break the trust chain.

Test plan

  • Tested on live cluster — extracts 8 certs (Platform CA, Root CA, 6 PCK certs) plus TCB nextUpdate dates

🤖 Generated with Claude Code

The PCK cache blob contains URL-encoded PEM X.509 certificates (PCK certs
+ Intel SGX CA chain) alongside embedded JSON TCB info. The merged version
(PR validatedpatterns#107) only checked TCB nextUpdate (collateral freshness). This adds
extraction and checking of the actual X.509 certificate notAfter dates.

PCK certs have ~7-year validity; TCB nextUpdate is ~30 days. Both matter:
stale TCB causes attestation failures, expired certs break the trust chain.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@butler54
butler54 requested a review from a team August 24, 2026 00:14
@butler54
butler54 merged commit 2efeb36 into validatedpatterns:main Aug 24, 2026
4 of 5 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