Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions api/v1alpha1/basic_auth_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,13 @@ type BasicAuth struct {
//
// Note: The secret must be in the same namespace as the SecurityPolicy.
Users gwapiv1.SecretObjectReference `json:"users"`

// This field specifies the header name to forward a successfully authenticated user to
// the backend. The header will be added to the request with the username as the value.
//
// If it is not specified, the username will not be forwarded.
//
// +optional
Comment thread
surenraju marked this conversation as resolved.
Outdated
// +notImplementedHide
ForwardUsernameHeader *string `json:"forwardUsernameHeader,omitempty"`
}
5 changes: 5 additions & 0 deletions api/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,13 @@ spec:
description: BasicAuth defines the configuration for the HTTP Basic
Authentication.
properties:
forwardUsernameHeader:
description: |-
This field specifies the header name to forward a successfully authenticated user to
the backend. The header will be added to the request with the username as the value.

If it is not specified, the username will not be forwarded.
type: string
users:
description: |-
The Kubernetes secret which contains the username-password pairs in
Expand Down