-
Notifications
You must be signed in to change notification settings - Fork 910
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
Reduce privilege requirement in bgw_security #7758
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7758 +/- ##
==========================================
+ Coverage 80.06% 81.95% +1.88%
==========================================
Files 190 247 +57
Lines 37181 45424 +8243
Branches 9450 11353 +1903
==========================================
+ Hits 29770 37225 +7455
- Misses 2997 3731 +734
- Partials 4414 4468 +54 ☔ View full report in Codecov by Sentry. |
The test `bgw_security` requires escalated privileges to modify `_timescaledb_config.bgw_job` and set the owner, which does not work when running tests on an instance without `SUPERUSER` privileges. Reduce the requirements for the test by switching role before adding the job, and hence avoid the need to update `_timescaledb_config.bgw_job` to set the owner. Commit also clarifies one error message generated on permission errors for a job.
ea6b14a
to
afddde3
Compare
@akuzm, @antekresic: please review this pull request.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
The test
bgw_security
requires escalated privileges to modify_timescaledb_config.bgw_job
and set the owner, which does not work when running tests on an instance withoutSUPERUSER
privileges.Reduce the requirements for the test by switching role before adding the job, and hence avoid the need to update
_timescaledb_config.bgw_job
to set the owner.Disable-check: force-changelog-file