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

Support custom http headers in auth scope #4199

Open
dzikoysk opened this issue Feb 25, 2024 · 0 comments
Open

Support custom http headers in auth scope #4199

dzikoysk opened this issue Feb 25, 2024 · 0 comments

Comments

@dzikoysk
Copy link

Environment:

  • Jib version: 3.4.0
  • Build tool: Gradle
  • OS: -

Description of the issue:

As a user, I'd like to specify additional headers for a http client that is used by jib. In my case, it's required to properly access the private docker registry, where the additional access token is utilized by a security layer. It's also not something specific to my setup, any user using tunnel-like services (e.g. Cloudflare One) will run into this problem.

Expected behavior:

Headers defined in to/from configuration scope should be attached to the request. Something like this would be good enough to be fair:

jib {
    to {
       // [...]
        auth {
            addHeader("XXX-Client-Id", "abc")
            addHeaeer("XXX-Access-Key", "cdf")
        }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants