Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trust support #415

Merged
merged 66 commits into from
Mar 8, 2024
Merged

Trust support #415

merged 66 commits into from
Mar 8, 2024

Conversation

mauricefisher64
Copy link
Collaborator

Changes in this pull request

This PR brings the trust support features to the SDK. It also ties in configuration settings to control the behavior. Default behavior mimics the current SDK, i.e.

  • no trust checking by default
  • no ocsp fetching by default
  • check signature after signing by default

Checklist

  • This PR represents a single feature, fix, or change.
  • All applicable changes have been documented.
  • Any TO DO items (or similar) have been entered as GitHub issues and the link to that issue has been included in a comment.

mauricefisher64 and others added 30 commits December 4, 2023 17:23
…ust_support

# Conflicts:
#	sdk/Cargo.toml
#	sdk/src/cose_sign.rs
#	sdk/src/cose_validator.rs
ManifestStore::from_bytes_async()
ManifestStore::from_manifest_and_asset_bytes_async
Also some fmt/clippy fixes
Builds but unit tests do not run yet
…into trust_support

# Conflicts:
#	sdk/src/cose_validator.rs
#	sdk/src/trust_handler.rs
#	sdk/src/wasm/webpki_trust_handler.rs
sdk/src/lib.rs Outdated Show resolved Hide resolved
Copy link
Collaborator

@gpeacock gpeacock left a comment

Choose a reason for hiding this comment

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

I have some suggested changes and some questions.
I'd really rather not publish the extended ManifestStoreOptions interface instead of Settings. I don't understand why we need this. Is Settings not ready enough?

sdk/src/manifest_store.rs Outdated Show resolved Hide resolved
sdk/src/claim.rs Show resolved Hide resolved
sdk/src/cose_validator.rs Outdated Show resolved Hide resolved
sdk/src/cose_validator.rs Outdated Show resolved Hide resolved
sdk/src/cose_validator.rs Show resolved Hide resolved
sdk/src/manifest_store.rs Outdated Show resolved Hide resolved
sdk/src/store.rs Show resolved Hide resolved
sdk/tests/integration.rs Show resolved Hide resolved
Update integration example to use loading settings from JSON
@mauricefisher64 mauricefisher64 changed the title (MINOR) Trust support Trust support Mar 1, 2024
@mauricefisher64 mauricefisher64 merged commit ca88432 into main Mar 8, 2024
22 checks passed
@mauricefisher64 mauricefisher64 deleted the trust_support branch March 8, 2024 15:07
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.

3 participants