authheaders

package
v0.32.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package authheaders contains helpers for stamping the request-header identity headers (X-Remote-User / X-Remote-Group / X-Remote-Extra-*) that kcp proxies use to forward an authenticated identity to a backend shard or virtual workspace. The backend trusts these headers verbatim over the proxy's mutually-authenticated connection, so the stamping must always strip any client-supplied copies first.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetAuthHeaders

func SetAuthHeaders(header http.Header, user userinfo.Info, userHeader, groupHeader, extraHeaderPrefix string)

SetAuthHeaders stamps the given authenticated user's identity onto the request headers, after deleting any inbound copies of the identity headers.

This mirrors k8s.io/client-go/transport.SetAuthProxyHeaders and the upstream requestheader authenticator's ClearAuthenticationHeaders.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL