Skip to content

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
@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

3 participants