Skip to content

Commit

Permalink
Adds ReflectPermissions for DefaultResourceAccessControlPlugin
Browse files Browse the repository at this point in the history
Signed-off-by: Darshit Chanpura <[email protected]>
  • Loading branch information
DarshitChanpura committed Dec 13, 2024
1 parent 193112b commit cbbefa6
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ grant codeBase "${codebase.opensearch}" {
permission org.opensearch.secure_sm.ThreadContextPermission "stashWithOrigin";
};

//// Permission specific to DefaultResourceAccessControlPlugin
grant codeBase "${codebase.opensearch}" {
// ReflectPermission granted only for the DefaultResourceAccessControlPlugin to allow parsing the Resources
permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
};

//// Very special jar permissions:
//// These are dangerous permissions that we don't want to grant to everything.

Expand Down

0 comments on commit cbbefa6

Please sign in to comment.