-
Notifications
You must be signed in to change notification settings - Fork 68
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
specific list of mysql privileges getting revoked during reconciliation #162
Comments
I believe the problem is that this specific set of privileges translates to
Crossplane then revokes
|
Interesting. So if the GRANT has a list of all the privileges, then MySQL just translates that as an |
@Duologic yes. I actually tested that already. At least that's how it worked with mysql 8. |
What happened?
When provider-sql for mysql grants the below specific list of privileges to a user, it revokes all of them and then grants again when reconciling although the grant object has not been changed at all. This causes the user to temporarily lose access to the database.
If you grep for the username on mysql general logs, you'll see the following:
However, if you grant only
SELECT
andINSERT
orALL PRIVILEGES
, for example, this won't happen. In that case crossplane seems to understand there's no diff and doesn't take any action, as expected.I'd say this is an extension of #126, which was fixed by #136, but apparently not fully.
How can we reproduce it?
INSERT
andSELECT
or withALL PRIVILEGES
:What environment did it happen in?
Crossplane version: v1.12.2
provider-sql version: v0.7.0
The text was updated successfully, but these errors were encountered: