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

Define interfaces for reasoning about signed images. #693

Merged
merged 1 commit into from
Sep 16, 2021

Conversation

mattmoor
Copy link
Member

@mattmoor mattmoor commented Sep 16, 2021

This starts to layout our augmented interfaces for reasoning about signed images and indices. The next step will be to try and shoe-horn some of the implementation of these that we currently use into a new internal/oci/remote package.

A couple (seemingly) superficial things about how this is set up:

  1. The layout of this reflects the layout of GGCR. The interfaces there are in pkg/v1, each in their own file, and implementations of them in pkg/v1/<name>.
  2. By embedding v1.Image instead of just surfacing the higher-level things, we enable folks to remote.Write and tarball.Write the signatures, which feels useful.
  3. I'm moving what's currently in oci.go into a more aptly named mediatypes.go

None of this stuff is carved in stone, so we'll see how far off we are as we start to use this first-stab for realz.

Signed-off-by: Matt Moore mattomata@gmail.com

Ticket Link

Related: #666

Release Note

NONE

This starts to layout our augmented interfaces for reasoning about signed images and indices.  The next step will be to try and shoe-horn some of the implementation of these that we currently use into a new `internal/oci/remote` package.

A couple (seemingly) superficial things about how this is set up:
1. The layout of this reflects the layout of GGCR.  The interfaces there are in `pkg/v1`, and implementations of them in `pkg/v1/<name>`.
2. By embedding `v1.Image` instead of *just* surfacing the higher-level things, we enable folks to `remote.Write` and `tarball.Write` the signatures, which feels useful.

None of this stuff is carved in stone, so we'll see how far off we are as we start to use this first-stab for realz.

Related: sigstore#666
Signed-off-by: Matt Moore <mattomata@gmail.com>
@dekkagaijin dekkagaijin merged commit f1ba10a into sigstore:main Sep 16, 2021
@mattmoor mattmoor deleted the define-interfaces branch September 16, 2021 18:27
@cpanato cpanato added this to the v1.3.0 milestone Sep 17, 2021
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.

3 participants