Skip to content

feat(mysql): auto-regenerate user password on restore and support rotation trigger - #424

Open
ymaniukevich wants to merge 1 commit into
crossplane-contrib:masterfrom
ymaniukevich:master
Open

feat(mysql): auto-regenerate user password on restore and support rotation trigger#424
ymaniukevich wants to merge 1 commit into
crossplane-contrib:masterfrom
ymaniukevich:master

Conversation

@ymaniukevich

Copy link
Copy Markdown
Contributor

Description of your changes

Mirrors PR #348 (auto-regenerate PostgreSQL Role password on restore) for MySQL User resources, in both cluster-scoped and namespaced APIs.

Fixes #395

I have:

  • Read and followed Crossplane's [contribution process].
  • Run make reviewable to ensure this PR is ready for review.

How has this code been tested

make e2e

  1. Normal user creation (non-BYOP)
    Created a new user and verify that the connection secret contains the generated password while status.atProvider.lastPasswordChange is not present.

  2. Existing user restoration (non-BYOP)
    Created a user for an existing user and verify that the provider generates a new password, updates the database user, populates the connection secret, and sets status.atProvider.lastPasswordChange.

  3. Password rotation (non-BYOP)
    triggers new password generation on comparison with status.atProvider.lastPasswordChange.

@ymaniukevich
ymaniukevich force-pushed the master branch 2 times, most recently from 67bae1d to f33363c Compare July 22, 2026 21:01
@ymaniukevich ymaniukevich changed the title feat(mysql): auto-regenerate role password on restore and support rotation trigger feat(mysql): auto-regenerate user password on restore and support rotation trigger Jul 22, 2026
…ation trigger

Signed-off-by: ymaniukevich <yauheni.maniukevich@gmail.com>
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.

MySQL: Support adoption of existing MySQL users when passwordSecretRef is not specified

1 participant