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

Reassign ownership after destroying an OAuth API key #15162

Merged
merged 2 commits into from
Oct 24, 2019

Conversation

gonzaloriestra
Copy link
Contributor

Related to: #15159

The reassignment was being only applied to regular API keys, but we should also do it for the ones from OAuth.

There was a comment saying that The other type of keys are reassigned in oauth_app_user for example, but in OauthAppUser only the datasets and ownership roles were being reassigned.

Copy link
Contributor

@oleurud oleurud left a comment

Choose a reason for hiding this comment

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

I think doing the REASSIGN OWNED BY xx TO yy always makes sense if we want to remove a role and it is more secure.

@gonzaloriestra
Copy link
Contributor Author

I've already tested it and it's not a dangerous change, so I'm merging!

@gonzaloriestra gonzaloriestra merged commit 1495cdb into master Oct 24, 2019
@gonzaloriestra gonzaloriestra deleted the fix-access-token-destroy branch October 24, 2019 08:55
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.

None yet

2 participants