Allow X-SFTPGO-API-KEY as a credential header #1
Labels
No labels
area/api
area/auth
area/files
area/infra
area/mail
area/provisioning
area/testing
area/ui
kind
bug
kind
chore
kind
decision
kind
docs
kind
epic
kind
feature
kind
security
priority
high
priority
low
priority
medium
status/blocked
status/needs-decision
status/upstreamable
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
konbi/konbi-bulwark#1
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 fromX-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-Keyand Caddy renames it (stack/caddy/Caddyfilein konbi/infra).Tasks
X-SFTPGO-API-KEYtoCREDENTIAL_HEADER_NAMES, with a testDone when
bulwark-sftpgo connects to SFTPGo with no header rewriting in front of it.
Ticket cleanup, 2026-11-30. Upstream (checked at
3d1132348) still has noX-SFTPGO-API-KEYinCREDENTIAL_HEADER_NAMES. Nothing sent upstream.