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

Support Redshift auto provisioned user deletion #34006

Merged

Conversation

gabrielcorado
Copy link
Contributor

A few differences from the regular PostgreSQL deletion procedure:

Given these differences, the Redshift procedure is slightly simple as it doesn't need to return any state (as it won't be accessible in case of exception). Also, on the application side, we handle the DROP USER as an OK error to happen.

Alternatively, to match assert the procedure error, we could turn the procedure into a NOATOMIC procedure, which does not throw the exception if it is handled. However, that would make the teleport_deactivate_user procedure non-atomic (which might not be desired), called from the delete one.

changelog: Support Redshift auto-provisioned users deletion.

@gabrielcorado gabrielcorado self-assigned this Oct 27, 2023
@github-actions github-actions bot added database-access Database access related issues and PRs size/sm labels Oct 27, 2023
@gabrielcorado gabrielcorado added this pull request to the merge queue Nov 1, 2023
Merged via the queue into master with commit df2bb63 Nov 1, 2023
37 of 38 checks passed
@gabrielcorado gabrielcorado deleted the gabrielcorado/redshift-delete-provisioned-user branch November 1, 2023 17:25
github-merge-queue bot pushed a commit that referenced this pull request Nov 6, 2023
* Database Automatic User Provisioning support for Redshift (#33307)

* Database Automatic User Provisioning support for Redshift

* capitalize sql script

* DeleteUser to fallback to deactivate.

* add TPxxx code to RAISE messages

* fix missing space in scripts

* feat(postgres): support auto-provisioned user deletion Redshift (#34006)

---------

Co-authored-by: Gabriel Corado <gabriel.oliveira@goteleport.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
database-access Database access related issues and PRs size/sm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants