-
Notifications
You must be signed in to change notification settings - Fork 379
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
Set default rootless sigstore #1035
Conversation
@mtrmac PTAL |
Add |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh… the rest of the client will now need to account for the state that sigstore is no longer “opt-in”. Especially after the /var
path is added, the various code paths that assume signatureStorageBase
can be nil
become dead code.
- As the rest of the code is now, X-R-S-S would never be used, because sigstore is preferred; so we need to either prefer X-R-S-S (RFC: Prefer X-Registry-Supports-Signatures to lookaside #385), or add a new configuration semantics to explicitly say “don’t use sigstore, use X-R-S-S or nothing”. I guess we should just do RFC: Prefer X-Registry-Supports-Signatures to lookaside #385 ; the likelihood that a registry suddenly gains X-R-S-S is getting smaller every month.
23f5660
to
2c79bdc
Compare
The default `sigstore-staging` is `/var/lib/containers/sigstore` from `/etc/containers/registries.d/default.yaml`. | ||
If the user has no privilege to write the signature to the default sigstore-staging, the YAML format files | ||
under `$HOME/.config/containers/registries.d` can be configured, otherwise, `$HOME/.local/share/containers/sigstore` will be used. | ||
|
||
## Examples |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider adding an extra “example” for no configuration.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK overall.
Would it be useful to make some variant of configuredSignatureStorageBase public for Podman? That’s up mostly to you, I think.
a853970
to
90600f0
Compare
@mtrmac PTAL |
f6b9e9e
to
344d6a8
Compare
@mtrmac Can I get a review before you leave for PTO? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK, please rebase on top of the recent typo fix.
(And ideally make sure Podman can benefit from SignatureStorageBaseURL
.)
LGTM after dropping the |
Set default rootless sigstore to ~/.local/share/containers/sigstore if the caller is non-root. Export the func ConfiguredSignatureStorageBase() for Podman image sign implementation. Signed-off-by: Qi Wang <qiwan@redhat.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Set default rootless sigstore to ~/.local/share/containers/sigstore if the caller is non-root.
Fix rootless podman push --sign-by.
Signed-off-by: Qi Wang qiwan@redhat.com