Skip to content

Simplify SQL credential store#2955

Merged
weiminyu merged 1 commit intogoogle:masterfrom
weiminyu:sql-cred-store
Feb 12, 2026
Merged

Simplify SQL credential store#2955
weiminyu merged 1 commit intogoogle:masterfrom
weiminyu:sql-cred-store

Conversation

@weiminyu
Copy link
Collaborator

@weiminyu weiminyu commented Feb 10, 2026

The current SQL credential store was designed to support automatic password rotation without any disruption to the applications. For that goal, the credentials are stored with one level of indirection, and the secret name of the actual credential data may change automatically.

The automatic password rotation feature has been dropped. In the meantime, the need arises that we use sidecar SQL proxy to get around the Enterprise Plus edition's post-maintenance reconnection failures by the socket factory library. This is hampered by the indirection in storage.

This PR removes the indirection. This change is transparent to the rest of the code base. We will manually populate the secret manager with the new secrets in all environments after submissiion of this PR.


This change is Reviewable

@weiminyu weiminyu requested review from CydeWeys and ptkach and removed request for ptkach February 10, 2026 18:54
Copy link
Member

@CydeWeys CydeWeys left a comment

Choose a reason for hiding this comment

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

"The automatic password rotation feature has been dropped." -- can you give me more information on this?

@CydeWeys made 1 comment.
Reviewable status: 0 of 2 files reviewed, all discussions resolved.

Copy link
Collaborator Author

@weiminyu weiminyu left a comment

Choose a reason for hiding this comment

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

It was a proposal of mine back in 2020. The SqlCredentialStore class was the first step, but the remaining work is substantial, and we never had the time to complete it. Moreover, based on operational experience since then I don't think this is worth doing.

See go/dr-sql-password-rotation

@weiminyu made 1 comment.
Reviewable status: 0 of 2 files reviewed, all discussions resolved.

Copy link
Member

@CydeWeys CydeWeys left a comment

Choose a reason for hiding this comment

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

:lgtm:

@CydeWeys made 1 comment.
Reviewable status: 0 of 2 files reviewed, all discussions resolved.

The current SQL credential store was designed to support automatic
password rotation without any disruption to the applications. For that
goal, the credentials are stored with one level of indirection, and the
secret name of the actual credential data may change automatically.

The automatic password rotation feature has been dropped. In the
meantime, the need arises that we use sidecar SQL proxy to get around
the Enterprise Plus edition's post-maintenance reconnection failures
by the socket factory library. This is hampered by the indirection in
storage.

This PR removes the indirection. This change is transparent to the rest
of the code base. We will manually populate the secret manager with the
new secrets in all environments after submissiion of this PR.
@weiminyu weiminyu added this pull request to the merge queue Feb 12, 2026
Merged via the queue into google:master with commit 140b19e Feb 12, 2026
9 of 10 checks passed
@weiminyu weiminyu deleted the sql-cred-store branch February 12, 2026 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants