Repository navigation
Support existing or new auth secret in RotateAuth ops editors - #1221
Merged
Merged
Conversation
Signed-off-by: Arnob Kumar Saha <arnob@appscode.com>
ArnobKumarSaha
force-pushed
the
arnob-rotate-auth
branch
from
November 24, 2026 06:25
bb6a643 to
06dbba9
Compare
… DBs Signed-off-by: Arnob Kumar Saha <arnob@appscode.com>
Signed-off-by: Arnob Kumar Saha <arnob@appscode.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
RotateAuth form in the KubeDB ops editors now offers an explicit credential source:
spec.authenticationis removed from the model so the operator generates the password. Fixesspec.authentication.secretRef.name: Required valuewhen the old secret name field was left empty.username+passwordkeys and whose username matches the database's current auth secret (current auth secret excluded).kubernetes.io/basic-authSecret with the database's current username, then auto-selects it inspec.authentication.secretRef. An info line under the password shows the username. Password is never written to the OpsRequest.Username is pinned to the current one because the operator applies the new secret's username, and only some DB webhooks (postgres/mysql/mariadb/mssqlserver/documentdb) reject a username change.
Editors
rootif the current auth secret can't be read (per KubeDB docs).Not changed
authDatakey), qdrant and weaviate (API key): their rotate-auth secrets aren'tusername/password, so they need a different form.