Skip to content

Issue 48499: Use preferred SecurityPolicyManager.savePolicy() variant#178

Merged
labkey-jeckels merged 1 commit intodevelopfrom
fb_48499_savePolicyAudit
Aug 29, 2023
Merged

Issue 48499: Use preferred SecurityPolicyManager.savePolicy() variant#178
labkey-jeckels merged 1 commit intodevelopfrom
fb_48499_savePolicyAudit

Conversation

@labkey-jeckels
Copy link
Copy Markdown

Rationale

We're uneven in terms of the validation and auditing we do for saving SecurityPolicies and related updates, and want to be more consistent.

Related Pull Requests

Changes

  • Let modules register ContainerSecurableResourceProviders instead of having Container know about them all
  • Remove the savePolicy and createContainer methods that don't take a user, check permissions, or log for audit purposes
  • Introduce User.getAdminServiceUser() for sudo like scenarios or when we're doing an operation not initiated by a user, like bootstrapping the server
  • Update callers

@labkey-jeckels labkey-jeckels requested a review from a team August 28, 2023 03:43
@labkey-jeckels labkey-jeckels merged commit 5a27066 into develop Aug 29, 2023
@labkey-jeckels labkey-jeckels deleted the fb_48499_savePolicyAudit branch August 29, 2023 17:44
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.

2 participants