Skip to content

feat: add DCAP collateral and PCK cert expiry checker - #107

Merged
butler54 merged 2 commits into
validatedpatterns:mainfrom
butler54:feat/check-dcap-expiry
Aug 20, 2026
Merged

feat: add DCAP collateral and PCK cert expiry checker#107
butler54 merged 2 commits into
validatedpatterns:mainfrom
butler54:feat/check-dcap-expiry

Conversation

@butler54

Copy link
Copy Markdown
Collaborator

Summary

Adds scripts/check-dcap-expiry.sh — a verification script that checks whether deployed TDX DCAP collateral and PCK certificates are expired or expiring.

Checks three sources on the live cluster:

  • DCAP collateral (trustee-operator-system/tdx-collateral): parses platform_collaterals.json for all TCB info and QE identity nextUpdate dates
  • PCK cache (intel-dcap-operator-system/<qe_id>-pck): extracts embedded TCB expiry from the binary pcsclient.py cache output
  • Platform data: confirms QE ID secret exists

Output: color-coded OK (>7d) / EXPIRING (<7d) / EXPIRED with days remaining. Exit 1 on issues.

Test plan

  • Tested on live APAC lab cluster (OCP 4.22.8, Intel TDX SNO)
  • All collateral entries reported OK with 29d remaining
  • PCK cache reported OK with 23d remaining
  • Platform data QE ID confirmed present

🤖 Generated with Claude Code

…xpiry

Checks three sources on the live cluster:
1. platform_collaterals.json in trustee-operator-system (TCB info,
   QE identity issueDate/nextUpdate)
2. PCK cache secrets in intel-dcap-operator-system (embedded TCB
   expiry from binary pcsclient.py cache output)
3. Platform data secrets (QE ID presence)

Reports OK/EXPIRING (<7d)/EXPIRED with days remaining. Exit 1 on issues.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@butler54
butler54 requested a review from a team August 19, 2026 06:41
- check-collateral-expiry.sh: trustee-operator-system collateral
  (TCB info, QE identity nextUpdate from platform_collaterals.json)
- check-pck-expiry.sh: intel-dcap-operator-system PCK cache
  (embedded TCB expiry from binary blob) + platform-data QE ID

Both accept namespace as optional $1 argument.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@butler54
butler54 merged commit 5a5e95e into validatedpatterns:main Aug 20, 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