Skip to content

verifier/tdx: improve PCCS resilience - #213

Merged
jialez0 merged 1 commit into
openanolis:mainfrom
jialez0:agent/tdx-pccs-resilience
Aug 5, 2026
Merged

jialez0 merged 1 commit into
openanolis:mainfrom
jialez0:agent/tdx-pccs-resilience

Conversation

@jialez0

@jialez0 jialez0 commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add timer-based proactive TDX collateral refresh (72h by default), per-key single-flight refresh, and automatic retry backoff before the 168h local cache TTL
  • support ordered PCCS failover with PCCS_URLS and per-request PCCS_HTTP_TIMEOUT_SECS
  • retain a hard-expired cache entry as a fallback only until the signed TCB Info / QE Identity nextUpdate
  • expose transport-neutral dependency status through REST GET /status and gRPC GetAttestationServiceStatus
  • document configuration precedence, cache states, stable log events, and alerting in attestation-service/docs/pccs-resilience.md

Validation

  • cargo test -p verifier --no-default-features --features tdx-dcap-rust tdx::verify::native::tests (15 passed)
  • cargo test -p attestation-service -p verifier
  • REST and gRPC all-verifier-rust,rvps-grpc builds
  • default and pure-Rust feature Clippy with warnings denied
  • wasm32 pure-Rust TDX verifier check
  • release E2E on an Alibaba Cloud TDX guest, with AS pinned to two CPUs:
    • fresh AA evidence verified through both gRPC and REST
    • unreachable primary PCCS failed over to the secondary PCCS
    • all PCCS endpoints unavailable surfaced the cached collateral state and rejected fallback after the platform TCB Info's signed nextUpdate
    • recovery succeeded after PCCS restoration

The test guest's TCB Info is already expired (2024-10-08), so the positive “local TTL expired but signed collateral remains valid” path is covered by the dedicated deterministic unit test; the real-host fault injection verified the complementary expired-collateral rejection path.

Signed-off-by: Jiale Zhang <zhangjiale@linux.alibaba.com>
@ostest-bot

Copy link
Copy Markdown

@jialez0 ,您好,您的请求已接收,请耐心等待结果。

@ostest-bot

Copy link
Copy Markdown

@jialez0 ,您好,未检测到有镜像需要构建,如需重新检测请评论 /start 。

@jialez0
jialez0 merged commit ae819fd into openanolis:main Aug 5, 2026
11 checks passed
@jialez0
jialez0 deleted the agent/tdx-pccs-resilience branch August 11, 2026 08:33
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.

2 participants