-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] repository-gcs java.lang.SecurityException #10509
Comments
Looks like this is similar to #4269? It was fixed then. I'd double check that this is still the case on 2.10 first, then we can try to debug the same way as in that issue. |
Thanks for the reply @dblock. I updated the cluster to 2.10.0 but the same issue was still there. I then tried to, just like in #4269, update the security.policy file with:
in the opensearch-2.10.0.jar file and repack it and this time, I got a new error message slightly different from the previous one:
I then tried to add |
🤔 I don't know - @reta you have some more experience with these maybe you do? |
It seems like we need to wrap it up in the privileged call, I will take care of it |
Describe the bug
Performing REST calls in an existing snapshot gcs repository throws 500 errors with
java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "accessDeclaredMembers")
To Reproduce
Steps to reproduce the behavior:
Unclear, everything snapshot-related used to work fine till it did not anymore.
The repository-gcs plugin should be already correctly installed. Snapshots are stored in a GCS bucket for which authentication is done with workload identity (once again, this used to work fine and nothing was changed about that configuration).
curl -sk -u admin:admin "https://localhost:9200/_cat/snapshots/repo_name"
Stacktrace:
Expected behavior
Listing snapshots in a snapshot repository should be possible without errors.
Plugins
Screenshots
N/A
Host/Environment (please complete the following information):
2.8.0
Additional context
Everything was working till I set up opensearch for TLS with custom CA & cert used on all nodes. Could also be a coincidence, I don't know. API calls with https work fine for other parts of the software but not for snapshots anymore.
I've looked for quite some time for other issues similar to this one but couldn't find anything that worked. I tried restarting the opensearch cluster to no avail, tried to reload secure settings to no avail, I'm out of ideas :(
The text was updated successfully, but these errors were encountered: