-
Notifications
You must be signed in to change notification settings - Fork 2
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
fix: if one oidc verifier is failing, do not let the whole API fail #3769
fix: if one oidc verifier is failing, do not let the whole API fail #3769
Conversation
No Jira issue reference found in branch, title, or body of PR. Please add a reference to a Jira issue in the form of CCIE-#### (eg: CCIE-1400) to the branch name, title, or body of your PR. |
continue | ||
} | ||
verifiers = append(verifiers, verifier) | ||
} | ||
if len(verifiers) == 1 { |
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.
fail if zero, and print the number of verifiers otherwise
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.
why should we fail if zero if you initialize it with one already?
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.
hmm yea I guess that is fine. If none of the OIDC providers configure then no one can talk to it except for Github actions. I guess that is fine. Send it!
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.
I kept the == 1 part, but I added an Infof
message to print the # of OIDC verifiers. Hopefully that works!
No Jira issue reference found in branch, title, or body of PR. Please add a reference to a Jira issue in the form of CCIE-#### (eg: CCIE-1400) to the branch name, title, or body of your PR. |
CCIE-3867
Sometimes there's an OIDC configuration that doesn't work, but we shouldn't make the entire Happy API fail because of that. In this change, we spit out a warning and an additional warning if there's only one verifier.
https://czi.atlassian.net/browse/CCIE-3867