-
Notifications
You must be signed in to change notification settings - Fork 193
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
chore: support to update and delete system accounts #8756
Conversation
7afc8b9
to
74eff1d
Compare
74eff1d
to
791e7a4
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8756 +/- ##
==========================================
+ Coverage 60.06% 60.45% +0.39%
==========================================
Files 382 382
Lines 46123 46303 +180
==========================================
+ Hits 27704 27994 +290
+ Misses 15748 15630 -118
- Partials 2671 2679 +8
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
||
func signatureSystemAccountPassword(secret *corev1.Secret) error { | ||
password := secret.Data[constant.AccountPasswdForSecret] | ||
hashedPassword, err := bcrypt.GenerateFromPassword(password, bcrypt.DefaultCost) |
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.
GenerateFromPassword() can't handle long passwords (>72bytes), should we handle the case?
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.
Add a maximum length limit of 64 bytes for user-specified passwords.
803cc26
to
0e630f9
Compare
/approve |
} | ||
ctrlutil.MergeMetadataMapInplace(secret.Labels, &runningCopy.Labels) | ||
ctrlutil.MergeMetadataMapInplace(secret.Annotations, &runningCopy.Annotations) | ||
if !reflect.DeepEqual(running, runningCopy) { |
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.
It's recommended to add some logs when updating passwords to facilitate debugging or track user changes
/cherry-pick release-1.0-beta |
🤖 says: cherry pick action finished successfully 🎉! |
(cherry picked from commit 2b312c3)
No description provided.