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

Overridable Role Impersonation #5729

Merged
merged 2 commits into from
Aug 6, 2024

Conversation

labkey-martyp
Copy link
Contributor

@labkey-martyp labkey-martyp commented Aug 1, 2024

Rationale

SND uses non-container based permissions. These are tested, both manually and automated, using role impersonation. The recent change to role impersonation makes that testing not possible. This change allows the role impersonation context to be overridden.

Related Pull Requests

Changes

  • Make RoleImpersonationContext public
  • Make roles available in getter

Copy link
Contributor

@labkey-adam labkey-adam left a comment

Choose a reason for hiding this comment

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

Most of these changes go away if the other PR uses contextual roles

public RoleSet getRoles()
{
return _roles;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is the only change that's necessary. Maybe the class has to be public as well to do the instanceof check.

@labkey-martyp labkey-martyp merged commit a14c1f6 into release24.7-SNAPSHOT Aug 6, 2024
5 checks passed
@labkey-martyp labkey-martyp deleted the 24.7_fb_snd_impersonate_role branch August 6, 2024 14:34
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.

[LK CI] SND Impersonate roles for non-container based permissions
2 participants