Skip to content

Commit dc16660

Browse files
Adds javadoc and a changelog entry
Signed-off-by: Darshit Chanpura <dchanp@amazon.com>
1 parent 72da7b3 commit dc16660

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)
55

66
## [Unreleased 3.3](https://github.com/opensearch-project/flow-framework/compare/3.2...HEAD)
77
### Features
8+
- Onboards flow-framework plugin to resource-sharing and access control framework ([#1251](https://github.com/opensearch-project/flow-framework/pull/1251))
9+
810
### Enhancements
911
### Bug Fixes
1012
- Pre-create ML Commons indices for Tenant Aware tests ([#1217](https://github.com/opensearch-project/flow-framework/pull/1217))

src/main/java/org/opensearch/flowframework/util/ParseUtils.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,11 @@ public static User getUserContext(Client client) {
252252
return User.parse(userStr);
253253
}
254254

255+
/**
256+
* Checks whether resource authz framework should be used.
257+
* @param resourceType the type to check for resource authz
258+
* @return true if resource-authz should be used, false otherwise
259+
*/
255260
public static boolean shouldUseResourceAuthz(String resourceType) {
256261
var client = ResourceSharingClientAccessor.getInstance().getResourceSharingClient();
257262
return client != null && client.isFeatureEnabledForType(resourceType);

0 commit comments

Comments
 (0)