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

Add a "print" command for both CCA and PSA so that claims can be inspected independently of verification #37

Merged
merged 4 commits into from
Jun 19, 2024

Conversation

paulhowardarm
Copy link
Contributor

This PR adds a print subcommand, which pretty-prints the token claim set to the console.

The value of this is that it allows a token to be inspected on its own, without being combined with other inputs (such as public keys).

This is useful for tutorial materials.

I had a specific requirement for CCA, but I have implemented for both CCA and PSA for the sake of maintaining parity.

Signed-off-by: Paul Howard [email protected]

…tokens can be visually inspected without the need to perform a verification.

Signed-off-by: Paul Howard <[email protected]>
Copy link
Collaborator

@thomas-fossati thomas-fossati left a comment

Choose a reason for hiding this comment

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

wunderbar, thanks!

cmd/cca/print.go Outdated Show resolved Hide resolved
cmd/psa/print.go Outdated Show resolved Hide resolved
cmd/psa/print.go Outdated Show resolved Hide resolved
cmd/psa/print_test.go Outdated Show resolved Hide resolved
cmd/cca/print_test.go Outdated Show resolved Hide resolved
…n set at two spaces to match the docs.

Signed-off-by: Paul Howard <[email protected]>
Signed-off-by: Paul Howard <[email protected]>
Copy link
Collaborator

@thomas-fossati thomas-fossati left a comment

Choose a reason for hiding this comment

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

thanks for the fixes

@thomas-fossati thomas-fossati merged commit 837aa4e into veraison:main Jun 19, 2024
5 checks passed
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