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
Add Regenerate S3 Credentials for OBC to the CLI #857
Add Regenerate S3 Credentials for OBC to the CLI #857
Conversation
9009030
to
200199e
Compare
200199e
to
d767323
Compare
d767323
to
0a3a0b1
Compare
| secret.StringData["AWS_SECRET_ACCESS_KEY"] = accessKeys.SecretKey | ||
|
|
||
| //If we will not be able to update the secret we will print the credentials as they allready been changed by the RPC | ||
| if !util.KubeUpdate(secret) { |
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.
@liranmauda @dannyzaken can we handle this situation better? maybe somehow hang the failure on the OBC/OB or somehow get the bucket into a rejected state and ask the user to regenerate again?
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.
At this point, the account credentials are already changed and we are failing to update the secret.
The apps that are using this secret will also disconnect, and as we cant revert the best way to work around it is to regenerate again, and unless there is a fundamental issue with the secret that prevents us from updating it, it will fix it.
as a middle solution, we just print the new credentials (which can be manually edited into the secret as b64, by us/support/user).
0a3a0b1
to
58af962
Compare
bfbc716
to
05a630e
Compare
05a630e
to
16f6c55
Compare
- Add Regenerate S3 Credentials for OBC to the CLI Signed-off-by: liranmauda <liran.mauda@gmail.com>
16f6c55
to
73527a9
Compare
Explain the changes
Signed-off-by: liranmauda liran.mauda@gmail.com
Testing Instructions: