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

Bugfix/revoke permissions #289

Merged
merged 5 commits into from
Sep 23, 2024
Merged

Conversation

michaeljcollinsuk
Copy link
Contributor

Changes are to ensure that if deleting the table access fails, the users
original permissions are restored, and the database object remains.
Otherwise the state of the DB and LF could get out of sync.
This change allows the revoke_permission method to silently fail if the
permission does not exist. This is useful when revoking permissions that
may have already been revoked, and avoids getting in a state where the
user cannot be granted permissions again.
When creating users, use the UPN, preferred username or email address.
This will only occur on initial login. For existing users, a data
migration has been addeded to update the usernames to their email
address, with the domain lowercase.
This resolves a bug where permissions were not granted to the correct
quicksight user ARN, as it was using the email value and the users
quicksight username used the User Principal Name (UPN).
Copy link
Contributor

@jamesstottmoj jamesstottmoj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@michaeljcollinsuk michaeljcollinsuk merged commit 20d0b4c into main Sep 23, 2024
19 checks passed
@michaeljcollinsuk michaeljcollinsuk deleted the bugfix/revoke-permissions branch September 23, 2024 14:28
Copy link

sentry-io bot commented Sep 24, 2024

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ InvalidInputException: An error occurred (InvalidInputException) when calling the DeleteLakeFormationOptIn operation: La... /database-access/{database_name}/{table_name}/r... View Issue

Did you find this useful? React with a 👍 or 👎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants