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

Bump to containers-image-proxy 0.3, add proxy config as API and CLI #156

Merged
merged 4 commits into from
Nov 10, 2021

Conversation

cgwalters
Copy link
Member

Bump to containers-image-proxy 0.3


lib/container: Drop unnecessary mut for proxy

The proxy has gone back to a shared borrow with internal locking.


lib: Expose proxy configuration as public API

We will need to support basically all options that the proxy
does, such as disabling TLS, separate authfile etc.

Rather than write a new type, just re-export it.

Thread the new options struct through the store and deploy APIs.


cli: Expose current container proxy opts as CLI flags

We want this for the same reason they exist in skopeo
around non-default authfiles, etc.

The chain here is pretty amazing:

  • containers/image internal Go API
  • skopeo CLI flags
  • containers/containers-image-proxy Rust API
  • ostreedev/ostree-rs-ext Rust API
  • ostreedev/ostree-rs-ext CLI code
  • rpm-ostree CLI

The proxy has gone back to a shared borrow with internal locking.
We will need to support basically all options that the proxy
does, such as disabling TLS, separate authfile etc.

Rather than write a new type, just re-export it.

Thread the new options struct through the store and deploy APIs.
We want this for the same reason they exist in skopeo
around non-default authfiles, etc.

The chain here is pretty amazing:

- containers/image internal Go API
- skopeo CLI flags
- containers/containers-image-proxy Rust API
- ostreedev/ostree-rs-ext Rust API
- ostreedev/ostree-rs-ext CLI code
- rpm-ostree CLI
Copy link
Member

@jlebon jlebon left a comment

Choose a reason for hiding this comment

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

Looks sane to me!

@cgwalters cgwalters merged commit 7307ad8 into ostreedev:main Nov 10, 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.

2 participants