[Feature Request] org.opensearch.bootstrap.Security should support codebase for JAR files with classifiers #12581
Labels
enhancement
Enhancement or improvement to existing feature or request
Other
v2.13.0
Issues and PRs related to version 2.13.0
v3.0.0
Issues and PRs related to version 3.0.0
Is your feature request related to a problem? Please describe
The issue came out while integration OpenSearch test scaffolding with
security
plugin. Theorg.opensearch.bootstrap.Security
analyzes the classpath and injects thecodebase.*
system property for each JAR entry found (so it could be referenced in security policy files), for example:The
codebase.*
suffix is constructed from the JAR file name by stripping the version (and.jar
extension). However, it causes the issues when there same artifacts with classifiers referenced, for example:netty-tcnative-boringssl-static-2.0.61.Final-linux-x86_64.jar
andnetty-tcnative-boringssl-static-2.0.61.Final.jar
kafka-server-common-3.6.1-test.jar
andkafka-server-common-3.6.1.jar
Although different, these artifacts are folded into same codebase suffix, causing the bootstrap process to fail.
Describe the solution you'd like
Add support for artifacts (JARs) with classifiers so they could be distinguished (and also referenced in security policy):
codebase.*@<classifier>
. For example:Related component
Security
Describe alternatives you've considered
N.A
Additional context
opensearch-project/security#4077
The text was updated successfully, but these errors were encountered: