Skip to content
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

Bugfix reload CA cert in operator-ca-tls secret #1716

Merged

Conversation

pjuarezd
Copy link
Member

@pjuarezd pjuarezd commented Aug 9, 2023

When the CA certificate in the secret operator-ca-tls changes, Operator recreates this secret on the Tenants namespace, but is not using the newly provided cert for healthcheck, a manual operator deployment restart is required.
This fix will force reload the certificates on secret update.

@pjuarezd pjuarezd self-assigned this Aug 9, 2023
@pjuarezd pjuarezd changed the title Bugfix reload CA cert in secret Bugfix reload CA cert in operator-ca-tls secret Aug 9, 2023
pkg/controller/minio.go Outdated Show resolved Hide resolved
@pjuarezd
Copy link
Member Author

pjuarezd commented Aug 9, 2023

This PR needs slices library released in go 1.21, once this PR #1718 is merged it should pass tests

jiuker
jiuker previously approved these changes Aug 10, 2023
Copy link
Contributor

@jiuker jiuker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pjuarezd pjuarezd force-pushed the bugfix-reload-operator-ca-tls-after-update branch from fe69c09 to ca465c4 Compare August 10, 2023 14:11
When the CA certificate in the secret `operator-ca-tls` changes, Operator recreates this secret on the Tenants namespace, but  is not using the newly provided cert for healthcheck, this will force reload the certificates on secret update
@pjuarezd pjuarezd force-pushed the bugfix-reload-operator-ca-tls-after-update branch from ca465c4 to 735dbfa Compare August 10, 2023 14:34
@pjuarezd pjuarezd requested a review from jiuker August 10, 2023 15:45
harshavardhana
harshavardhana previously approved these changes Aug 10, 2023
@harshavardhana
Copy link
Member

PTAL @cesnietor @cniackz @dvaldivia

pkg/controller/minio.go Outdated Show resolved Hide resolved
pkg/controller/minio.go Outdated Show resolved Hide resolved
pkg/controller/operator.go Outdated Show resolved Hide resolved
Signed-off-by: pjuarezd <pjuarezd@users.noreply.github.com>
Signed-off-by: pjuarezd <pjuarezd@users.noreply.github.com>
Copy link
Contributor

@cesnietor cesnietor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for addressing the comments.

Copy link
Contributor

@jiuker jiuker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pjuarezd pjuarezd merged commit af02d1b into minio:master Aug 14, 2023
@pjuarezd pjuarezd deleted the bugfix-reload-operator-ca-tls-after-update branch August 14, 2023 15:55
@bh4t bh4t added the bug fix label Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants