This is an automated email from the ASF dual-hosted git repository. dsmiley pushed a commit to branch branch_9x in repository https://gitbox.apache.org/repos/asf/solr.git
commit 6cf12de11935773fb56c4279a3169b9d81f1cef2 Author: Samuel Verstraete <[email protected]> AuthorDate: Thu Nov 5 16:16:19 2026 +0100 SOLR-18610: S3 backup repository: grant the permissions the AWS SDK's web identity provider needs under the Security Manager (#5264) Co-authored-by: Samuel Verstraete <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> (cherry picked from commit 1fc38d1e40cb12512aba2b1990b22b04111dad2d) (cherry picked from commit 097c8d66bd14abdc74c08eb20925d6aad1d900ca) --- .../unreleased/SOLR-18610-s3-web-identity-security-manager.yml | 9 +++++++++ solr/server/etc/security.policy | 6 ++++++ 2 files changed, 15 insertions(+) diff --git a/changelog/unreleased/SOLR-18610-s3-web-identity-security-manager.yml b/changelog/unreleased/SOLR-18610-s3-web-identity-security-manager.yml new file mode 100644 index 00000000000..fb6019072cb --- /dev/null +++ b/changelog/unreleased/SOLR-18610-s3-web-identity-security-manager.yml @@ -0,0 +1,9 @@ +# See https://github.com/apache/solr/blob/main/dev-docs/changelog.adoc +title: The S3 backup repository uses web identity credentials (such as EKS IAM Roles for Service Accounts) again when the Security Manager is enabled, instead of falling back to the next credentials provider, such as the EC2 instance profile. +type: fixed +authors: + - name: Samuel Verstraete + nick: elangelo +links: + - name: SOLR-18610 + url: https://issues.apache.org/jira/browse/SOLR-18610 diff --git a/solr/server/etc/security.policy b/solr/server/etc/security.policy index 0e95c1edabb..091eda6fdd0 100644 --- a/solr/server/etc/security.policy +++ b/solr/server/etc/security.policy @@ -117,6 +117,12 @@ grant { permission java.lang.RuntimePermission "getProtectionDomain"; // needed by aws s3 sdk (Apache HTTP Client) permission java.lang.RuntimePermission "accessClassInPackage.jdk.internal.reflect"; + permission java.lang.RuntimePermission "accessSystemModules"; + // needed by the aws sdk default http client (Apache HttpClient 5), used for STS by the web identity credentials provider + permission jdk.net.NetworkPermission "setOption.TCP_KEEPIDLE"; + permission jdk.net.NetworkPermission "setOption.TCP_KEEPINTERVAL"; + permission jdk.net.NetworkPermission "setOption.TCP_KEEPCOUNT"; + // These two *have* to be spelled out a separate permission java.lang.management.ManagementPermission "control"; permission java.lang.management.ManagementPermission "monitor";
