RHINENG-24787: remove system platform sql objects - #2161
Conversation
Reviewer's GuideRemoves the legacy system_platform SQL view and its triggers, tightens manager DB privileges back to least-privilege on system_inventory and system_patch, updates test data generation to work directly with system_inventory/system_patch and large-table stats, and refreshes docs to describe only the split system_inventory/system_patch design. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
SC Environment Impact AssessmentOverall Impact: ⚪ NONE No SC Environment-specific impacts detected in this PR. What was checkedThis PR was automatically scanned for:
|
9435571 to
48b2802
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2161 +/- ##
=======================================
Coverage 59.13% 59.13%
=======================================
Files 134 134
Lines 8738 8738
=======================================
Hits 5167 5167
Misses 3028 3028
Partials 543 543
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| GRANT UPDATE ON system_patch TO manager; | ||
|
|
||
| REVOKE UPDATE ON system_inventory FROM manager; | ||
| GRANT UPDATE ON system_inventory TO manager; |
There was a problem hiding this comment.
What's the purpose of revoking and granting UPDATE back?
There was a problem hiding this comment.
The column-wide and table-wide privileges are distinct in postgres. So just granting privileges on the table level will leave privileges on the column level. REVOKE on the table level however also removes the column level privileges. So this is done to be consistent - remove all update privileges (column and table) and then assign just table privileges. Same approach is done in the "up" migration.
This PR:
Summary by Sourcery
Remove legacy system_platform SQL objects and restore least-privilege manager access on system tables.
Bug Fixes:
Enhancements:
Documentation:
Chores: