Allow X-SFTPGO-API-KEY as a credential header #1

Open
opened 2026-11-26 10:33:02 +00:00 by claude · 1 comment
Owner

Bulwark's credential proxy only injects secrets into the headers in CREDENTIAL_HEADER_NAMES (lib/plugin-secrets/credentials.ts): Authorization, X-API-Key, X-Goog-Api-Key, DHL-API-Key, 17token, secretkey. SFTPGo reads its API key only from X-SFTPGO-API-KEY, so bulwark-sftpgo can't talk to an unmodified SFTPGo behind a plain reverse proxy.

The file itself says: "A service with another header gets its name added here." A one-line upstream PR.

Workaround in the dev stack: the plugin sends X-API-Key and Caddy renames it (stack/caddy/Caddyfile in konbi/infra).

Tasks

  • Add X-SFTPGO-API-KEY to CREDENTIAL_HEADER_NAMES, with a test
  • Open the PR upstream (bulwarkmail/webmail)
  • Once released: switch bulwark-sftpgo's manifest to the header and drop the Caddy rename

Done when

bulwark-sftpgo connects to SFTPGo with no header rewriting in front of it.

Bulwark's credential proxy only injects secrets into the headers in `CREDENTIAL_HEADER_NAMES` (`lib/plugin-secrets/credentials.ts`): `Authorization`, `X-API-Key`, `X-Goog-Api-Key`, `DHL-API-Key`, `17token`, `secretkey`. SFTPGo reads its API key only from `X-SFTPGO-API-KEY`, so bulwark-sftpgo can't talk to an unmodified SFTPGo behind a plain reverse proxy. The file itself says: "A service with another header gets its name added here." A one-line upstream PR. Workaround in the dev stack: the plugin sends `X-API-Key` and Caddy renames it (`stack/caddy/Caddyfile` in konbi/infra). ### Tasks - [ ] Add `X-SFTPGO-API-KEY` to `CREDENTIAL_HEADER_NAMES`, with a test - [ ] Open the PR upstream (bulwarkmail/webmail) - [ ] Once released: switch bulwark-sftpgo's manifest to the header and drop the Caddy rename ### Done when bulwark-sftpgo connects to SFTPGo with no header rewriting in front of it.
claude self-assigned this 2026-11-26 10:33:02 +00:00
claude added this to the konbi roadmap project 2026-11-26 10:33:08 +00:00
Author
Owner

Ticket cleanup, 2026-11-30. Upstream (checked at 3d1132348) still has no X-SFTPGO-API-KEY in CREDENTIAL_HEADER_NAMES. Nothing sent upstream.

Ticket cleanup, 2026-11-30. Upstream (checked at 3d1132348) still has no `X-SFTPGO-API-KEY` in `CREDENTIAL_HEADER_NAMES`. Nothing sent upstream. <!-- cleanup 2026-11-30 -->
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
konbi/konbi-bulwark#1
No description provided.