Skip to content

CODER_HEADER not sent in requests for Coder Agent #14462

Closed
@mike-sol

Description

@mike-sol

Related: #6520 , #14412

While trying to get the Coder Agent to bypass an identity-aware proxy, it appears that the coder agent command does not respect the CODER_HEADER or CODER_HEADER_COMMAND environment variables or command line parameters. I wrote a small script to use for CODER_HEADER_COMMAND that outputs a log entry to the systemd journal, and it is clear that it is never triggered by Coder in the process of attempting to connect to the far end coderd.

They are respected by the other commands I tested, e.g. coder login, coder list, etc. all work well.

Please let me know if there's some additional debug output I can grab.

Maybe the work in https://github.com/coder/coder/pull/6521/files is insufficient and missed being applied to agents completely somehow?

Metadata

Metadata

Assignees

No one assigned

    Labels

    need-helpAssign this label prompts an engineer to check the issue. Only humans may set this.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions