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

Cosign | Add support for client to configure a proxy to pull signatures #392

Merged
merged 2 commits into from
Oct 15, 2024

Conversation

Xynnn007
Copy link
Member

@Xynnn007 Xynnn007 commented Sep 14, 2024

This is still in draft. We will wait for a new release of oci-client to include oras-project/rust-oci-client#160

Summary

In some special cases, client needs to connect a proxy to pull signature via a proxy. This PR mainly accomplishes this.

Release Note

  • Config changes: Add proxy related items to ClientConfig
  • Dep changes: update oci-distribution to oci-client

Documentation

TODO

@Xynnn007 Xynnn007 force-pushed the feat-proxy branch 2 times, most recently from 89204d6 to ae4c39f Compare October 9, 2024 05:43
@Xynnn007 Xynnn007 marked this pull request as ready for review October 9, 2024 05:44
@Xynnn007
Copy link
Member Author

Hi @flavio Could you please help to take a look upon this PR?

Cargo.toml Outdated Show resolved Hide resolved
Copy link
Member

@flavio flavio left a comment

Choose a reason for hiding this comment

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

Overall LGTM. I left some comments

Cargo.toml Outdated Show resolved Hide resolved
src/trust/sigstore/mod.rs Outdated Show resolved Hide resolved
oci-client is the succeeder of oci-distribution crate.

Signed-off-by: Xynnn007 <xynnn@linux.alibaba.com>
The new `https_proxy` and `no_proxy` option gives ability for the users
to set a proxy to pull signature manifest from the registry. This is
useful in some cases where access to the registry depends on a proxy.

Signed-off-by: Xynnn007 <xynnn@linux.alibaba.com>
@Xynnn007
Copy link
Member Author

Hi @flavio @jku Thanks for the suggestions and I have fixed. PTAL if now it looks good to you

Copy link
Member

@flavio flavio left a comment

Choose a reason for hiding this comment

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

LGTM, I just left one comment to be clarified before merging

src/registry/mod.rs Show resolved Hide resolved
@flavio flavio merged commit 0c61dd5 into sigstore:main Oct 15, 2024
7 checks passed
@Xynnn007 Xynnn007 deleted the feat-proxy branch October 16, 2024 07: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.

4 participants