Skip to content

Commit c20439f

Browse files
committed
Fixed OBO
Signed-off-by: Nils Bandener <[email protected]>
1 parent d83bd0e commit c20439f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/main/java/org/opensearch/security/OpenSearchSecurityPlugin.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1187,16 +1187,16 @@ public Collection<Object> createComponents(
11871187
backendRegistry = new BackendRegistry(settings, adminDns, xffResolver, auditLog, threadPool, cih);
11881188
backendRegistry.registerClusterSettingsChangeListener(clusterService.getClusterSettings());
11891189
cr.subscribeOnChange(configMap -> { backendRegistry.invalidateCache(); });
1190+
RoleMapper roleMapper = new RolesInjector.InjectedRoleMapper(
1191+
new ConfigurableRoleMapper(cr, settings),
1192+
threadPool.getThreadContext()
1193+
);
1194+
this.roleMapper = roleMapper;
11901195
tokenManager = new SecurityTokenManager(cs, threadPool, userService, roleMapper);
11911196

11921197
final CompatConfig compatConfig = new CompatConfig(environment, transportPassiveAuthSetting);
1193-
11941198
rsIndexHandler = new ResourceSharingIndexHandler(localClient, threadPool, resourcePluginInfo);
1195-
RoleMapper roleMapper = new RolesInjector.InjectedRoleMapper(
1196-
new ConfigurableRoleMapper(cr, settings),
1197-
threadPool.getThreadContext()
1198-
);
1199-
this.roleMapper = roleMapper;
1199+
12001200
PrivilegesConfiguration privilegesConfiguration = new PrivilegesConfiguration(
12011201
cr,
12021202
clusterService,

0 commit comments

Comments
 (0)