Skip to content

Conversation

@thaJeztah
Copy link
Member

This environment variable allows for setting additional headers to be sent by the client. Headers set through this environment variable are added to headers set through the config-file (through the HttpHeaders field).

This environment variable can be used in situations where headers must be set for a specific invocation of the CLI, but should not be set by default, and therefore cannot be set in the config-file.

(cherry picked from commit 0d6b805)

- What I did

- How I did it

- How to verify it

- Description for the changelog

Add support for `DOCKER_CUSTOM_HEADERS` environment variable

This environment variable allows for setting additional headers to be sent by the client. Headers set through this environment variable are added to headers set through the config-file (through the HttpHeaders field).

This environment variable can be used in situations where headers must be set for a specific invocation of the CLI, but should not be set by default, and therefore cannot be set in the config-file.

- A picture of a cute animal (not mandatory but encouraged)

This environment variable allows for setting additional headers
to be sent by the client. Headers set through this environment
variable are added to headers set through the config-file (through
the HttpHeaders field).

This environment variable can be used in situations where headers
must be set for a specific invocation of the CLI, but should not
be set by default, and therefore cannot be set in the config-file.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 0d6b805)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah thaJeztah added this to the 26.1.4 milestone Jun 4, 2024
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 66.66667% with 8 lines in your changes missing coverage. Please review.

Project coverage is 61.36%. Comparing base (5dab297) to head (bc2aeee).

Additional details and impacted files
@@            Coverage Diff             @@
##             26.1    #5112      +/-   ##
==========================================
+ Coverage   61.35%   61.36%   +0.01%     
==========================================
  Files         298      298              
  Lines       20712    20735      +23     
==========================================
+ Hits        12707    12724      +17     
- Misses       7103     7106       +3     
- Partials      902      905       +3     

@thaJeztah
Copy link
Member Author

superseded by #5271

@thaJeztah thaJeztah closed this Jul 19, 2024
@thaJeztah thaJeztah deleted the 26.1_backport_custom_headers_env_var branch July 19, 2024 12:33
@thaJeztah thaJeztah removed this from the 26.1.5 milestone Jul 19, 2024
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