Skip to content
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

fix!: Cleanup of old instance backups. Change role roles/cloudsql.editor to roles/cloudsql.admin #618

Conversation

tjespers
Copy link
Contributor

This commit reverts the change to using the cloudsql.editor role
for the backup service account from the cloudsql.admin role. This was
introduced in #597 but due to this the deletion of old backups on the
instance now receives a 403 error in the workflow. This is due to the
fact that the cloudsql.editor role lacks the cloudsql.backupRuns.delete
permission.

Closes: #617

This commit reverts the change to using the cloudsql.editor role
for the backup service account from the cloudsql.admin role. This was
introduced in terraform-google-modules#597 but due to this the deletion of old backups on the
instance now receives a 403 error in the workflow. This is due to the
fact that the cloudsql.editor role lacks the cloudsql.backupRuns.delete
permission.

Closes: terraform-google-modules#617
@tjespers tjespers requested review from isaurabhuttam, imrannayer and a team as code owners July 15, 2024 12:50
@imrannayer
Copy link
Collaborator

/gcbrun

@imrannayer imrannayer changed the title fix: cleanup of old instance backups broken due to missing permission fix!: cleanup of old instance backups broken due to missing permission Jul 15, 2024
@imrannayer imrannayer changed the title fix!: cleanup of old instance backups broken due to missing permission fix!: Cleanup of old instance backups. Change role roles/cloudsql.editor to roles/cloudsql.admin Jul 15, 2024
@imrannayer imrannayer self-assigned this Jul 16, 2024
@imrannayer
Copy link
Collaborator

/gcbrun

@imrannayer imrannayer merged commit 7310051 into terraform-google-modules:master Jul 16, 2024
4 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.

CloudSQL Editor role insufficient to delete backups
2 participants