Skip to content

Commit b6ab06b

Browse files
karenyrxreta
andauthored
[GRPC] Add accessUnixDomainSocket permission for transport-grpc (opensearch-project#20463)
* [GRPC] Add security policy for transport-grpc Signed-off-by: Karen X <karenxyr@gmail.com> * more granular Signed-off-by: Karen X <karenxyr@gmail.com> * Update modules/transport-grpc/src/main/plugin-metadata/plugin-security.policy Co-authored-by: Andriy Redko <drreta@gmail.com> Signed-off-by: Karen X <karenxyr@gmail.com> * update changelog Signed-off-by: Karen X <karenxyr@gmail.com> --------- Signed-off-by: Karen X <karenxyr@gmail.com> Co-authored-by: Andriy Redko <drreta@gmail.com>
1 parent 8c2fb2e commit b6ab06b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
77
### Added
88
- Add getWrappedScorer method to ProfileScorer for plugin access to wrapped scorers ([#20548](https://github.com/opensearch-project/OpenSearch/issues/20548))
99
- Support expected cluster name with validation in CCS Sniff mode ([#20532](https://github.com/opensearch-project/OpenSearch/pull/20532))
10+
- Add security policy to allow `accessUnixDomainSocket` in `transport-grpc` module ([#20463](https://github.com/opensearch-project/OpenSearch/pull/20463))
1011

1112
### Changed
1213

modules/transport-grpc/src/main/plugin-metadata/plugin-security.policy

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,7 @@ grant codeBase "${codebase.grpc-netty-shaded}" {
1515

1616
// Netty sets custom classloader for some of its internal threads
1717
permission java.lang.RuntimePermission "*", "setContextClassLoader";
18+
19+
// Netty on Windows uses WEPollSelectorImpl which needs to delete temporary socket files
20+
permission java.net.NetPermission "accessUnixDomainSocket";
1821
};

0 commit comments

Comments
 (0)