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

Restore attestation capability after repo split #6

Merged
merged 7 commits into from
Jan 17, 2023
Merged

Restore attestation capability after repo split #6

merged 7 commits into from
Jan 17, 2023

Conversation

puerco
Copy link
Member

@puerco puerco commented Jan 17, 2023

Following up to openvex/go-vex#3 this PR restores (and improves a little bit) the attesting functionality in vexctl. A small change is that signed attestations can now be output to stdout (not just attached to images).

There are a couple of open questions about data handling while moving subjects from vex to intoto, but will be handled once the attestaing spec is ready. The way attestaing works now is equivalent to the attester in the old repo.

@puerco puerco added this to the v0.2.0 milestone Jan 17, 2023
@puerco puerco requested a review from luhring January 17, 2023 03:56
@puerco puerco changed the title Attest Restore attestation capability after repo split Jan 17, 2023
internal/cmd/attest.go Outdated Show resolved Hide resolved
@puerco puerco force-pushed the attest branch 2 times, most recently from 5f562ae to 5ce8348 Compare January 17, 2023 23:27
@puerco
Copy link
Member Author

puerco commented Jan 17, 2023

Fixed the boileplate check by dropping the spdx tag change. I will do that in the future.

This commit introduces the attestation package which wraps
the openvex attestation module and adds signing and attaching
capabilities.

Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]>
Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]>
Attestation signing and attaching was removed in openvex/go-vex#3
so we now implement that functionality local in vexctl.

Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]>
Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]>
This comit adds a ToJSON method to the vexctl attestation
that intercepts the call to the /vex equivalent to output
any signed data instead of the plain attestation.

Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]>
We now sign when generating the attestation, this allows us to get the signed
json without attaching.

Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]>
Since signing and attaching now defaults to false, we add shorthand flags as
they will be typed a lot more.

Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]>
@puerco puerco merged commit 377d414 into main Jan 17, 2023
@puerco puerco deleted the attest branch January 17, 2023 23:59
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