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

documentation + an explicit EAT profile #10

Merged
merged 3 commits into from
Oct 18, 2022
Merged

documentation + an explicit EAT profile #10

merged 3 commits into from
Oct 18, 2022

Conversation

thomas-fossati
Copy link
Contributor

  • add a docs.go file with examples for how to use the API
  • add godoc comments to public-facing types and methods
  • add an eat_profile claim to the AttestationResult object
  • hide non-public methods

Fix #5

Partially addresses #9 by defining an eat_profile claim

Signed-off-by: Thomas Fossati thomas.fossati@arm.com

* add a docs.go file with examples for how to use the API
* add godoc comments to public-facing types and methods
* add an eat_profile claim to the AttestationResult object
* hide non-public methods

Fix #5

Partially addresses #9 by defining an eat_profile claim

Signed-off-by: Thomas Fossati <thomas.fossati@arm.com>
doc.go Outdated Show resolved Hide resolved
tclaim.go Outdated
// TrustTier provides the trust tier bucket of the trustworthiness claim
func (o TClaim) TrustTier(color bool) string {
// trustTier provides the trust tier bucket of the trustworthiness claim
func (o TClaim) trustTier(color bool) string {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why has this been hidden? It seems that being able to easily get trust tier from a claim (and the associated Is checks below) would be generally useful?

Copy link
Contributor Author

@thomas-fossati thomas-fossati Oct 17, 2022

Choose a reason for hiding this comment

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

My plan was to only expose this through the Report() method. But yeah, it'd be a tad myopic to focus on just one use case (i.e., that of a CLI parsing the AR). Will change, thanks for the input.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done in 10718e5

Signed-off-by: Thomas Fossati <thomas.fossati@arm.com>
type AttestationResult struct {
Status *TrustTier `json:"status"`
Profile *string `json:"eat_profile"`
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the purpose of adding profile?

I thought the AttestationResult Object should be profile Agnostic, so that any RP can assess the Verification Results coming from any Verifier?

Copy link
Contributor Author

@thomas-fossati thomas-fossati Oct 17, 2022

Choose a reason for hiding this comment

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

What is the purpose of adding profile?

to make it an EAT -- see also #9

I thought the AttestationResult Object should be profile Agnostic, so that any RP can assess the Verification Results coming from any Verifier?

I am not sure I understand what you mean by "profile agnostic"

Signed-off-by: Thomas Fossati <thomas.fossati@arm.com>
@thomas-fossati thomas-fossati merged commit 16e65d3 into main Oct 18, 2022
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.

docs
3 participants