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

Add permission for report to read the event and user tables #5349

Merged
merged 1 commit into from
May 2, 2023

Conversation

jon-betts
Copy link
Contributor

@jon-betts jon-betts commented May 1, 2023

For:

This works fine in production, but if you follow the correct instructions locally, it doesn't work. This implies we have the wrong user in prod report, but we should fix this regardless.

Testing notes

To see the issues, checkout main here and then follow the instructions in: hypothesis/report#211

You should get permission errors: in this branch you should not.

This works fine in production, but if you follow the correct instructions
locally, it doesn't work. This implies we have the wrong user in prod report,
but we should fix this regardless.
GRANT SELECT ON report.groups TO "{{fdw_user}}";
GRANT SELECT ON report.group_map TO "{{fdw_user}}";
GRANT SELECT ON report.group_bubbled_activity TO "{{fdw_user}}";
GRANT SELECT ON report.group_bubbled_counts TO "{{fdw_user}}";
GRANT SELECT ON report.group_roles TO "{{fdw_user}}";
GRANT SELECT ON report.organization_activity TO "{{fdw_user}}";
GRANT SELECT ON report.organization_roles TO "{{fdw_user}}";
GRANT SELECT ON report.users TO "{{fdw_user}}";
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've also sorted this alphabetically. The change is the addition of events and users.

@jon-betts jon-betts merged commit e7f3090 into main May 2, 2023
@jon-betts jon-betts deleted the fix-permissions branch May 2, 2023 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants