[iac] add Teleport -> Access Graph username header (#54962)

This PR adds the username header used by Teleport proxy to pass the
Teleport username to Access Graph service.

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
This commit is contained in:
Tiago Silva
2025-05-21 02:18:46 +00:00
committed by GitHub
parent 215cb29699
commit f265cc261f
+7
View File
@@ -964,6 +964,13 @@ const (
// HostHeader is the name of the Host header.
HostHeader = "Host"
// XTeleportUsernameHeader is the name of the X-Teleport-Username header
// used to pass the username to the Access Graph service.
// This header is used to identify the user that is making the request
// so that the Access Graph service can store information about the
// user's preferences.
XTeleportUsernameHeader = "X-Teleport-Username"
)
// UserSingleUseCertTTL is a TTL for per-connection user certificates.