GoogleContainerTools / GoogleContainerTools/jib

Support custom http headers in auth scope

Open
#4,199 0 comments 0 reactions 0 assignees View on GitHub
priority:p3 type: feature request
Dominant language
Java
Stars
14.5k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

**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:

```kotlin
jib {
to {
// [...]
auth {
addHeader("XXX-Client-Id", "abc")
addHeaeer("XXX-Access-Key", "cdf")
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.