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

Issue with revoking privileges while droping user #35

Closed
vitoravancini opened this issue Dec 22, 2021 · 1 comment
Closed

Issue with revoking privileges while droping user #35

vitoravancini opened this issue Dec 22, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@vitoravancini
Copy link

vitoravancini commented Dec 22, 2021

Hello,

it seems that when deleting an user there is a query revoking privileges using cascade, which redshift seems to don't accept.
this is the query:

if _, err := tx.Exec(fmt.Sprintf("ALTER DEFAULT PRIVILEGES IN SCHEMA %s REVOKE ALL ON TABLES FROM %s CASCADE", pq.QuoteIdentifier(schemaName), pq.QuoteIdentifier(userName))); err != nil {

which retries until terraform exits successfully without actually droping the users.

removing cascade worked for me.
Id be happy to submit a pull request if thats ok with you.

@winglot winglot added the bug Something isn't working label Feb 3, 2022
@winglot
Copy link
Member

winglot commented Feb 3, 2022

Fixed with #47 and released in v0.5.2

@winglot winglot closed this as completed Feb 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants