Skip to content

Commit c864630

Browse files
committed
Add default Real for basic auth
1 parent 1029c3e commit c864630

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/proposals/authentication-filter.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ type BasicAuth struct {
147147
// Also configures "realm="<realm_value>" in WWW-Authenticate header in error page location.
148148
//
149149
// +optional
150+
// +kubebuilder:default="Restricted"
150151
Realm *string `json:"realm,omitempty"`
151152

152153
// OnFailure customizes the 401 response for failed authentication.
@@ -199,7 +200,7 @@ type JWTAuth struct {
199200
// Example: "auth_jwt_leeway 60s".
200201
//
201202
// +optional
202-
// +kubebuilder:default=60s
203+
// +kubebuilder:default=0s
203204
Leeway *v1alpha1.Duration `json:"leeway,omitempty"`
204205

205206
// Type sets token type: signed | encrypted | nested.

0 commit comments

Comments
 (0)