这是indexloc提供的服务,不要输入任何密码
Skip to content

Fix bug where we revoke cloudsqlsuperuser role from firebasesuperuser #8363

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

Merged
merged 4 commits into from
Mar 25, 2025

Conversation

tammam-g
Copy link
Contributor

Last week we added a change to revoke user roles from firebasesuperuser once database setup is complete. This was an issue because if we assign IAM role to firebasesuperuser and we don't revoke it then cloudsql starts treating firebasesuperuser as IAM role and we can't access it anymore.

However, an edge case we didn't consider is cloudsqlsuperuser owning tables/schem, this will basically remove cloudsqlsuperuser access from firebasesuperuser.

Scenarios tested:

  • Fresh Database Setup
  • Reproduce bug and confirm this fixes it

@tammam-g tammam-g requested a review from joehan March 25, 2025 19:15
@tammam-g tammam-g requested a review from fredzqm March 25, 2025 19:20
Co-authored-by: joehan <joehanley@google.com>
@tammam-g tammam-g enabled auto-merge (squash) March 25, 2025 21:43
@tammam-g tammam-g disabled auto-merge March 25, 2025 21:43
@tammam-g tammam-g removed the request for review from fredzqm March 25, 2025 21:44
@tammam-g tammam-g merged commit 290fab9 into master Mar 25, 2025
48 of 49 checks passed
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