Skip to content

fix: support additional http headers on agent #14464

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

Merged

Conversation

ethanndickson
Copy link
Member

@ethanndickson ethanndickson commented Aug 28, 2024

Fixes #14462.

Currently, the agent subcommand does not consume CODER_HEADER/--header or CODER_HEADER_COMMAND/--header-command.

This PR adds CODER_AGENT_HEADER/--agent-header and CODER_AGENT_HEADER_COMMAND/--agent-header-command instead of consuming the global ones.
This was done as other options for agent authentication differentiate themselves by using an agent prefix (token, url, token_file), to avoid unintentionally populating the options on an agent using a client configuration.

#11901 will likely supersede this, long-term.

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @ethanndickson and the rest of your teammates on Graphite Graphite

@ethanndickson ethanndickson force-pushed the 08-28-fix_support_additional_http_headers_on_agent branch from cd4d42b to 5510d59 Compare August 28, 2024 08:46
@ethanndickson ethanndickson marked this pull request as ready for review August 28, 2024 09:20
@ethanndickson ethanndickson merged commit e65eb03 into main Aug 29, 2024
34 checks passed
@ethanndickson ethanndickson deleted the 08-28-fix_support_additional_http_headers_on_agent branch August 29, 2024 04:15
@github-actions github-actions bot locked and limited conversation to collaborators Aug 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CODER_HEADER not sent in requests for Coder Agent
2 participants