Skip to content

print out fields even if we're out of compliance#56

Open
SethHollandsworth wants to merge 1 commit into
Azure:mainfrom
SethHollandsworth:sethho/compliance
Open

print out fields even if we're out of compliance#56
SethHollandsworth wants to merge 1 commit into
Azure:mainfrom
SethHollandsworth:sethho/compliance

Conversation

@SethHollandsworth

Copy link
Copy Markdown
Contributor

This pull request updates the logging behavior in several claim-printing methods within attestation_provider.py. Instead of only logging claims when certain compliance or status values are present, the code now always logs the relevant status field, improving visibility regardless of its value.

Logging improvements for claims inspection:

  • Always log the "x-ms-compliance-status" field in print_snp_platform_claims, print_tdx_platform_claims, print_snp_guest_claims, and print_tdx_guest_claims, instead of only logging when it equals "azure-compliant-cvm".
  • Always log the "attester_tcb_status" field in print_platform_claims, instead of only logging when it equals "UpToDate".

Comment thread cvm-attestation/src/attestation_provider.py Outdated
Comment thread cvm-attestation/src/attestation_provider.py Outdated
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