-
Notifications
You must be signed in to change notification settings - Fork 363
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 hmac secret #2768
Fix hmac secret #2768
Conversation
Signed-off-by: huabing zhao <[email protected]>
@@ -153,6 +154,11 @@ func GenerateCerts(cfg *config.Server) (*Certificates, error) { | |||
return nil, err | |||
} | |||
|
|||
oidcHMACSecret, err := generateHMACSecret() |
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.
what happens during upgrade if this secret already exists ? do we skip or overwrite ?
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.
relates to
func CreateOrUpdateSecrets(ctx context.Context, client client.Client, secrets []corev1.Secret, update bool) ([]corev1.Secret, error) { |
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.
The creation of HMAC secret will be skipped in CreateOrUpdateSecrets
if it's already there, like the other certs. No changes are needed.
hey @zhaohuabing has this been tested ? are you sure we are reconciling this secret ? I think we may need some more code in
|
Signed-off-by: huabing zhao <[email protected]>
I haven't tested it manually yet. It should be covered by the OIDC e2e test: #2730
Yeah, I missed that :-(. It's fixed. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2768 +/- ##
==========================================
+ Coverage 63.45% 63.46% +0.01%
==========================================
Files 125 125
Lines 20544 20604 +60
==========================================
+ Hits 13036 13077 +41
- Misses 6672 6690 +18
- Partials 836 837 +1 ☔ View full report in Codecov by Sentry. |
Signed-off-by: huabing zhao <[email protected]>
34688b6
to
f331fe0
Compare
/retest |
1 similar comment
/retest |
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.
🚀
This PR does the following: