fix: Extend max collateral age (port #3941 to main) - #3944
Conversation
There was a problem hiding this comment.
Pull request overview
Ports the release-v3.13 fix to main by extending the PCCS collateral freshness bound so TEE quote generation doesn’t fail when Intel’s PCK CRL cadence exceeds the previous 7-day limit.
Changes:
- Increase
MAX_COLLATERAL_AGEfrom 7 days to 31 days to align with Intel’s ~30-day collateral window. - Update tests/comments to reference
MAX_COLLATERAL_AGErather than hard-coded 7/8/9-day values.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| /// collateral that share Intel's 30-day window: `tcb_info.issueDate`, | ||
| /// `qe_identity.issueDate`, and PCK CRL `thisUpdate`. | ||
| const MAX_COLLATERAL_AGE: time::Duration = time::Duration::days(7); | ||
| const MAX_COLLATERAL_AGE: time::Duration = time::Duration::days(31); |
Pull request overviewPorts #3941 from Changes:
Reviewed changesPer-file summary
FindingsBlocking (must fix before merge):
Non-blocking (nits, follow-ups, suggestions):
|
|
superseded by #3945 |
Cherry-picks the one-line fix from #3941 (merged to release-v3.13) onto
main.Why
main-line nodes (async TEE verifier, #3714) currently can't generate a TEE attestation:MAX_COLLATERAL_AGEincrates/tee-authority/src/tee_authority.rsis 7 days, tighter than Intel's ~30-day PCK CRL re-issuance cadence. Intel's current CRL (thisUpdate = 2026-07-16,nextUpdate = 2026-08-15) is >7 days old, so quote generation fails fleet-wide — confirmed identical from Phala, Intel's PCS, and a localsgx-dcap-pccs.#3941 fixed this on release-v3.13 (
7d → 31d) but never landed onmain. This ports the exact commit.Closes #3943.