Skip to content

Commit f4da411

Browse files
committed
Update KeyMode and FileKeySource variables
1 parent 623930f commit f4da411

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/proposals/authentication-filter.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -153,13 +153,13 @@ type BasicAuth struct {
153153
OnFailure *AuthFailureResponse `json:"onFailure,omitempty"`
154154
}
155155

156-
// KeyMode selects where JWT keys come from.
156+
// JWTKeyMode selects where JWT keys come from.
157157
// +kubebuilder:validation:Enum=File;Remote
158-
type KeyMode string
158+
type JWTKeyMode string
159159

160160
const (
161-
KeyModeFile KeyMode = "File"
162-
KeyModeRemote KeyMode = "Remote"
161+
KeyModeFile JWTKeyMode = "File"
162+
KeyModeRemote JWTKeyMode = "Remote"
163163
)
164164

165165
// JWTAuth configures JWT-based authentication (NGINX Plus).
@@ -177,13 +177,13 @@ type JWTAuth struct {
177177
Realm *string `json:"realm,omitempty"`
178178

179179
// Mode selects how JWT keys are provided: local file or remote JWKS.
180-
Mode KeyMode `json:"mode,omitempty"`
180+
Mode JWTKeyMode `json:"mode,omitempty"`
181181

182182
// File specifies local JWKS configuration.
183183
// Required when Mode == File.
184184
//
185185
// +optional
186-
File *FileKeySource `json:"file,omitempty"`
186+
File *JWTFileKeySource `json:"file,omitempty"`
187187

188188
// Remote specifies remote JWKS configuration.
189189
// Required when Mode == Remote.
@@ -224,8 +224,8 @@ type JWTAuth struct {
224224
OnFailure *AuthFailureResponse `json:"onFailure,omitempty"`
225225
}
226226

227-
// FileKeySource specifies local JWKS key configuration.
228-
type FileKeySource struct {
227+
// JWTFileKeySource specifies local JWKS key configuration.
228+
type JWTFileKeySource struct {
229229
// SecretRef references a Secret containing the JWKS.
230230
SecretRef LocalObjectReferenceWithKey `json:"secretRef,omitempty"`
231231

0 commit comments

Comments
 (0)