Skip to content

Commit 43a37ea

Browse files
Fixes after rebase with main
Signed-off-by: Darshit Chanpura <dchanp@amazon.com>
1 parent 53575d4 commit 43a37ea

File tree

6 files changed

+5
-12
lines changed

6 files changed

+5
-12
lines changed

CHANGELOG.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
77

88
### Features
99
### Added
10-
- [Resource Sharing] Adds a Resource Access Evaluator for standalone Resource access authorization ([#5408](https://github.com/opensearch-project/security/pull/5408))
11-
1210
* Introduced new experimental versioned security configuration management feature ([#5357] (https://github.com/opensearch-project/security/pull/5357))
1311
* [Resource Sharing] Adds migrate API to move resource-sharing info to security plugin ([#5389](https://github.com/opensearch-project/security/pull/5389))
1412
* Introduces support for the Argon2 Password Hashing Algorithm ([#5441] (https://github.com/opensearch-project/security/pull/5441))
@@ -29,6 +27,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
2927
* Handle subject in nested claim for JWT auth backends ([#5467](https://github.com/opensearch-project/security/pull/5467))
3028
* Moved OpenSAML jars to a Shadow Jar configuration to facilitate its use in FIPS enabled environments ([#5400](https://github.com/opensearch-project/security/pull/5404))
3129
* [Resource Sharing] Adds a Resource Access Evaluator for standalone Resource access authorization ([#5408](https://github.com/opensearch-project/security/pull/5408))
30+
* [Resource Sharing] Adds a Share API to fetch and update sharing information ([#5459](https://github.com/opensearch-project/security/pull/5459))
3231

3332
### Bug Fixes
3433

sample-resource-plugin/src/main/java/org/opensearch/sample/resource/actions/rest/revoke/RevokeResourceAccessRequest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919

2020
import static org.opensearch.sample.utils.Constants.RESOURCE_INDEX_NAME;
2121

22-
import static org.opensearch.sample.utils.Constants.RESOURCE_INDEX_NAME;
23-
2422
/**
2523
* Request object for revoking access to a sample resource
2624
*/

sample-resource-plugin/src/main/java/org/opensearch/sample/resource/actions/rest/share/ShareResourceRequest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919

2020
import static org.opensearch.sample.utils.Constants.RESOURCE_INDEX_NAME;
2121

22-
import static org.opensearch.sample.utils.Constants.RESOURCE_INDEX_NAME;
23-
2422
/**
2523
* Request object for sharing sample resource transport action
2624
*/

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,9 +1171,7 @@ public Collection<Object> createComponents(
11711171
settings,
11721172
privilegesInterceptor,
11731173
cih,
1174-
irr,
1175-
resourcePluginInfo.getResourceIndices(),
1176-
rsIndexHandler
1174+
irr
11771175
);
11781176

11791177
dlsFlsBaseContext = new DlsFlsBaseContext(evaluator, threadPool.getThreadContext(), adminDns);

src/main/java/org/opensearch/security/privileges/PrivilegesEvaluator.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626

2727
package org.opensearch.security.privileges;
2828

29-
import java.io.IOException;
3029
import java.util.ArrayList;
3130
import java.util.Arrays;
3231
import java.util.Collections;

src/main/java/org/opensearch/security/resources/ResourceAccessHandler.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
import org.opensearch.security.support.ConfigConstants;
4040
import org.opensearch.security.support.WildcardMatcher;
4141
import org.opensearch.security.user.User;
42+
import org.opensearch.threadpool.ThreadPool;
4243

4344
import reactor.util.annotation.NonNull;
4445

@@ -59,12 +60,12 @@ public class ResourceAccessHandler {
5960

6061
@Inject
6162
public ResourceAccessHandler(
62-
final ThreadContext threadContext,
63+
final ThreadPool threadPool,
6364
final ResourceSharingIndexHandler resourceSharingIndexHandler,
6465
AdminDNs adminDns,
6566
PrivilegesEvaluator evaluator
6667
) {
67-
this.threadContext = threadContext;
68+
this.threadContext = threadPool.getThreadContext();
6869
this.resourceSharingIndexHandler = resourceSharingIndexHandler;
6970
this.adminDNs = adminDns;
7071
this.privilegesEvaluator = evaluator;

0 commit comments

Comments
 (0)