Skip to content

Conversation

@scouten-adobe
Copy link
Collaborator

No description provided.

…ather than a reference

(Supports upcoming work I'm planning around configuring trust for reading CAWG identity assertions.)
@scouten-adobe scouten-adobe self-assigned this Jul 16, 2025
@scouten-adobe
Copy link
Collaborator Author

This builds on #1238.

@codecov
Copy link

codecov bot commented Jul 16, 2025

Codecov Report

❌ Patch coverage is 98.01980% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 78.33%. Comparing base (b5b07ec) to head (1b296eb).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
sdk/src/identity/identity_assertion/assertion.rs 93.75% 1 Missing ⚠️
sdk/src/identity/x509/x509_signature_verifier.rs 98.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1239      +/-   ##
==========================================
+ Coverage   78.28%   78.33%   +0.05%     
==========================================
  Files         153      153              
  Lines       39157    39243      +86     
==========================================
+ Hits        30653    30742      +89     
+ Misses       8504     8501       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@scouten-adobe scouten-adobe changed the title feat: Add option for configuring trust when validating identity assertions (CAI-7980) [BLOCKED] feat: Add option for configuring trust when validating identity assertions (CAI-7980) Aug 7, 2025
@scouten-adobe scouten-adobe requested a review from gpeacock August 7, 2025 13:32
@scouten-adobe
Copy link
Collaborator Author

@gpeacock when you're back, I'll need your advice on how to approach the c2patool tests that I disabled.

Ok(())
}

// DO NOT MERGE with this test disabled. The problem is that the
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not let if fail then to block merging?

// underlying CAWG code now enforces trust list checks on any X.509
// certificate used in an identity assertion. I _think_ this test
// asset uses a test-quality cert and that isn't enabled by default.
// Will need to consult with Gavin on a new fix approach before
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I updated this recently I created it with the cawg_identity example,
cargo r --example cawg_identity tests/fixtures/C.jpg target/C_with_CAWG_data.jpg
It uses test certs like this:
For testing we allow test certs to be in the trust list. Ask Maurice about that.

const CAWG_CERTS: &[u8] = include_bytes!("../../sdk/tests/fixtures/certs/ed25519.pub");
const CAWG_PRIVATE_KEY: &[u8] = include_bytes!("../../sdk/tests/fixtures/certs/ed25519.pem");

@scouten-adobe scouten-adobe changed the title [BLOCKED] feat: Add option for configuring trust when validating identity assertions (CAI-7980) feat: Add option for configuring trust when validating identity assertions (CAI-7980) Aug 14, 2025
let mut passthrough_cap = CertificateTrustPolicy::default();

// allow user EKUs through this check if configured
// TODO: Need to determine if we're using C2PA or CAWG trust config here.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you have a different set of EKUs?

@scouten-adobe
Copy link
Collaborator Author

Per conversation with @gpeacock and @mauricefisher64, this is ready to go once the c2patool issues are resolved. Use --settings (path) in c2patool invocations to pass in the appropriate new settings file.

@scouten-adobe scouten-adobe marked this pull request as ready for review August 14, 2025 21:19
@scouten-adobe scouten-adobe added the check-release Add this label to any PR to invoke a larger suite of tests. label Aug 14, 2025
@scouten-adobe scouten-adobe merged commit b026443 into main Aug 14, 2025
70 of 71 checks passed
@scouten-adobe scouten-adobe deleted the scouten/cai-7980-cawg-trust-config branch August 14, 2025 21:37
@caiopensrc caiopensrc mentioned this pull request Aug 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

check-release Add this label to any PR to invoke a larger suite of tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants