mirror of
https://github.com/gravitational/teleport.git
synced 2026-09-24 16:17:11 +08:00
[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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user