feat: add --header-command flag (#9059)

This allows specifying a command to run that can output headers for
cases where users require dynamic headers (like to authenticate to their
VPN).

The primary use case is to add this flag in SSH configs created by the
VS Code plugin, although maybe config-ssh should do the same.
This commit is contained in:
Asher
2023-08-14 12:12:17 -08:00
committed by GitHub
parent b993cab49a
commit 37f9d4b783
7 changed files with 83 additions and 14 deletions
+9
View File
@@ -96,6 +96,15 @@ Path to the global `coder` config directory.
Additional HTTP headers added to all requests. Provide as key=value. Can be specified multiple times.
### --header-command
| | |
| ----------- | ---------------------------------- |
| Type | <code>string</code> |
| Environment | <code>$CODER_HEADER_COMMAND</code> |
An external command that outputs additional HTTP headers added to all requests. The command must output each header as `key=value` on its own line.
### --no-feature-warning
| | |