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!: Backup - set IAM conditions conditionally #616

Merged

Conversation

dominikmueller
Copy link
Contributor

@dominikmueller dominikmueller commented Jul 12, 2024

IAM conditions can only be used to restrict access to DatabaseInstances or BackupRuns. They can't be used to restrict access to Database resources.

The export workflow uses the googleapis.sqladmin.v1.databases.list call to gather all database names.

This call fails with the error code 403: unauthorized when the IAM conditions are set.

The client is not authorized to make this request.

image

Supported Resource Type Values in IAM Conditions: docs

IAM conditions can only be used to restrict access to DatabaseInstances
or BackupRuns. They can't be used to restrict access to Database resources.

The export workflow uses the `googleapis.sqladmin.v1.databases.list`
call to gather all database names.

This call fails with the error code 403: unauthorized when the IAM conditions are set.
> The client is not authorized to make this request.
@dominikmueller dominikmueller changed the title Set IAM conditions conditionally fix(backup): set IAM conditions conditionally Jul 12, 2024
@imrannayer
Copy link
Collaborator

/gcbrun

@imrannayer imrannayer self-assigned this Jul 15, 2024
@imrannayer imrannayer changed the title fix(backup): set IAM conditions conditionally fix: Backup - set IAM conditions conditionally Jul 15, 2024
@imrannayer imrannayer merged commit 8780714 into terraform-google-modules:master Jul 15, 2024
4 checks passed
@imrannayer imrannayer changed the title fix: Backup - set IAM conditions conditionally fix!: Backup - set IAM conditions conditionally Jul 15, 2024
@imrannayer imrannayer added the release-please:force-run Force release-please to check for changes. label Jul 15, 2024
@release-please release-please bot removed the release-please:force-run Force release-please to check for changes. label Jul 15, 2024
@imrannayer imrannayer added the release-please:force-run Force release-please to check for changes. label Jul 15, 2024
@release-please release-please bot removed the release-please:force-run Force release-please to check for changes. label Jul 15, 2024
@imrannayer imrannayer added the release-please:force-run Force release-please to check for changes. label Jul 16, 2024
@release-please release-please bot removed the release-please:force-run Force release-please to check for changes. label Jul 16, 2024
@imrannayer imrannayer added the release-please:force-run Force release-please to check for changes. label Jul 16, 2024
@release-please release-please bot removed the release-please:force-run Force release-please to check for changes. label Jul 16, 2024
@imrannayer imrannayer added the release-please:force-run Force release-please to check for changes. label Jul 16, 2024
@release-please release-please bot removed the release-please:force-run Force release-please to check for changes. label Jul 16, 2024
@imrannayer imrannayer added the release-please:force-run Force release-please to check for changes. label Jul 16, 2024
@release-please release-please bot removed the release-please:force-run Force release-please to check for changes. label Jul 16, 2024
@imrannayer imrannayer added the release-please:force-run Force release-please to check for changes. label Jul 16, 2024
@release-please release-please bot removed the release-please:force-run Force release-please to check for changes. label Jul 16, 2024
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