-
Notifications
You must be signed in to change notification settings - Fork 381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add support for optional JWT authentication #3157
Conversation
caedc38
to
122129d
Compare
/retest |
api/v1alpha1/jwt_types.go
Outdated
@@ -8,6 +8,10 @@ package v1alpha1 | |||
// JWT defines the configuration for JSON Web Token (JWT) authentication. | |||
type JWT struct { | |||
|
|||
// AllowMissing determines whether a missing JWT is acceptable, defaulting to false if not specified. | |||
// Note: Even if allowMissing is set to true, JWT authentication will still fail if an invalid JWT is presented. | |||
AllowMissing *bool `json:"allowMissing,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hey @ardikabs, we discussed this in the community meeting last week, and most preferred Optional
over AllowMissing
, can we update this ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@arkodg
can we keep the naming convention AllowMissing
in the IR while using Optional
in the user interface (CRD)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure sgtm
Signed-off-by: Ardika Bagus <[email protected]>
Signed-off-by: Ardika Bagus <[email protected]>
Signed-off-by: Ardika Bagus <[email protected]>
122129d
to
b90ad69
Compare
/retest |
Signed-off-by: Ardika Bagus <[email protected]>
b90ad69
to
f744ddd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM thanks !
What type of PR is this?
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #3081