From f265cc261f98ffbaccdd98f24f335b8a21cd50fd Mon Sep 17 00:00:00 2001 From: Tiago Silva Date: Wed, 21 May 2025 03:18:46 +0100 Subject: [PATCH] [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 --- constants.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/constants.go b/constants.go index 995cfdcbba0..4ddbea83d30 100644 --- a/constants.go +++ b/constants.go @@ -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.