Skip to content

gateway: add HMAC request signature authentication - #4652

Open
gousteris wants to merge 1 commit into
mainfrom
gateway-hmac-auth
Open

gateway: add HMAC request signature authentication#4652
gousteris wants to merge 1 commit into
mainfrom
gateway-hmac-auth

Conversation

@gousteris

@gousteris gousteris commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Adds an optional auth.hmac config block to the gateway input that authenticates incoming requests by verifying a hex-encoded HMAC signature (SHA-256 or SHA-512) of the raw request body against a shared secret, read from a configurable request header. When set it replaces the platform-managed JWT/RBAC authentication for the endpoint, supporting webhook-style callers that sign their payloads instead of presenting a bearer token (e.g. Terraform Cloud Run Tasks).

The auth block is designed as an extension point for additional authentication mechanisms in the future.

jira: DEVPROD-4607

@CLAassistant

CLAassistant commented Jul 31, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Comment thread internal/gateway/hmac.go
@gousteris
gousteris force-pushed the gateway-hmac-auth branch from c60b2da to 8b9e740 Compare July 31, 2026 13:51
Comment thread internal/impl/gateway/input.go Outdated
@gousteris
gousteris force-pushed the gateway-hmac-auth branch 3 times, most recently from 244b87a to b4539f1 Compare August 4, 2026 14:14
Comment thread internal/gateway/hmac.go Outdated
Adds an optional auth.hmac config block to the gateway input that
authenticates incoming requests by verifying a hex-encoded HMAC
signature (SHA-256 or SHA-512) of the raw request body against a
shared secret, read from a configurable request header. When set it
replaces the platform-managed JWT/RBAC authentication for the
endpoint, supporting webhook-style callers that sign their payloads
instead of presenting a bearer token (e.g. Terraform Cloud Run Tasks).

The auth block is designed as an extension point for additional
authentication mechanisms in the future.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants