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

Fulcio signing implementation #1785

Merged
merged 3 commits into from Jan 12, 2023
Merged

Conversation

mtrmac
Copy link
Collaborator

@mtrmac mtrmac commented Jan 9, 2023

This adds API to use Fulcio-generated short-lived certificates.

Depends on #1784 .

I still need to test one part but it seems broadly ready.

I don’t feel too confident about the API, but it seems close enough, and we can always add more option functions, or a new signature/sigstore/fulciov2 package (still operating on signature/sigstore/internal.Signer)

@mtrmac mtrmac added the kind/feature A request for, or a PR adding, new functionality label Jan 9, 2023
Copy link
Member

@vrothberg vrothberg left a comment

Choose a reason for hiding this comment

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

LGTM

@mtrmac
Copy link
Collaborator Author

mtrmac commented Jan 11, 2023

Rebased, ready for review.

@mtrmac mtrmac marked this pull request as ready for review January 11, 2023 10:22
@mtrmac
Copy link
Collaborator Author

mtrmac commented Jan 11, 2023

Oops, still one path to try.

@mtrmac mtrmac marked this pull request as draft January 11, 2023 10:23
... to be also used by Fulcio.

Note that the atomic: transport uses a skopeo/... user agent,
we don't care to change that.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Tested manually with Skopeo.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This seems, at best, useful for debugging and as an escape hatch
for other missing OIDC operations.

FIXME: test this at least once manually.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
@mtrmac
Copy link
Collaborator Author

mtrmac commented Jan 11, 2023

I have (manually) tested the “static ID token” path now.

Ready for review and potentially merging now.

@mtrmac mtrmac marked this pull request as ready for review January 11, 2023 19:39
@mtrmac
Copy link
Collaborator Author

mtrmac commented Jan 11, 2023

(Adding unit tests tracked in #1601.)

@TomSweeneyRedHat
Copy link
Member

LGTM

Copy link
Member

@vrothberg vrothberg left a comment

Choose a reason for hiding this comment

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

LGTM

@vrothberg vrothberg merged commit 5ef8a4f into containers:main Jan 12, 2023
@mtrmac mtrmac deleted the fulcio-signing branch January 12, 2023 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature A request for, or a PR adding, new functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants