Skip to content

feat: Add get_provenance_cert_chain to Reader #580

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions sdk/src/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,11 @@ impl Reader {
self.manifest_store.to_string()
}

/// Return certificate chain for the provenance claim
pub fn get_provenance_cert_chain(&self) -> Result<String> {
self.manifest_store.store().get_provenance_cert_chain()
}

/// Get the [`ValidationStatus`] array of the manifest store if it exists.
///
/// This validation report only includes error statuses on applied to the active manifest.
Expand Down
Loading