Skip to content
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

Security Plugin cannot startup due to AccessControlException: access denied #3309

Closed
peternied opened this issue Sep 5, 2023 · 10 comments · Fixed by opensearch-project/OpenSearch#9779
Assignees
Labels
bug Something isn't working untriaged Require the attention of the repository maintainers and may need to be prioritized v2.10.0 Issues targeting release v2.10.0 v3.0.0

Comments

@peternied
Copy link
Member

peternied commented Sep 5, 2023

The security plugin cannot be loaded because of an issue with the bouncy castle dependancy coming from OpenSearch core.

 java.lang.IllegalStateException: failed to load plugin class [org.opensearch.security.OpenSearchSecurityPlugin]
�  Likely root cause: java.lang.InternalError: cannot create instance of org.bouncycastle.jcajce.provider.digest.GOST3411$Mappings : java.security.AccessControlException: access denied ("java.security.SecurityPermission" "putProviderProperty.BC")
�  	at org.bouncycastle.jce.provider.BouncyCastleProvider.loadServiceClass(Unknown Source)
�  	at org.bouncycastle.jce.provider.BouncyCastleProvider.loadAlgorithms(Unknown Source)
�  	at org.bouncycastle.jce.provider.BouncyCastleProvider.setup(Unknown Source)
�  	at org.bouncycastle.jce.provider.BouncyCastleProvider.access$000(Unknown Source)
�  	at org.bouncycastle.jce.provider.BouncyCastleProvider$1.run(Unknown Source)
�  	at java.base/java.security.AccessController.doPrivileged(Native Method)
�  	at org.bouncycastle.jce.provider.BouncyCastleProvider.<init>(Unknown Source)
�  	at org.opensearch.security.OpenSearchSecurityPlugin$2.run(OpenSearchSecurityPlugin.java:323)
...

Additional Context

@peternied peternied added bug Something isn't working v3.0.0 v2.10.0 Issues targeting release v2.10.0 labels Sep 5, 2023
@github-actions github-actions bot added the untriaged Require the attention of the repository maintainers and may need to be prioritized label Sep 5, 2023
@peternied
Copy link
Member Author

@peternied
Copy link
Member Author

@cwperks Can you help drive this from the security plugin?

FYI - @reta @willyborankin

@reta
Copy link
Collaborator

reta commented Sep 5, 2023

@cwperks let me know if you need any help

@cwperks
Copy link
Member

cwperks commented Sep 5, 2023

@reta all eyes are appreciated on this issue. This is release blocking for 2.10.0.

@reta
Copy link
Collaborator

reta commented Sep 5, 2023

Sure, I am taking it, @cwperks!

@reta reta assigned reta and unassigned cwperks Sep 5, 2023
@cwperks
Copy link
Member

cwperks commented Sep 5, 2023

@willyborankin opened a related issue a few days ago: #3213

It looks like the plugin-security.policy file in this repo is being ignored.

@peternied
Copy link
Member Author

@cwperks @reta I think we need to remove the opensearch-encryption-sdk from OpenSearch to get unblocked - I am open to other suggestions, but we need to be wary of the impact to the security posture of OpenSearch.

@reta
Copy link
Collaborator

reta commented Sep 5, 2023

@peternied on the same page, I think I found the solution to unblock us, hold on please

@willyborankin
Copy link
Collaborator

willyborankin commented Sep 5, 2023

@peternied im for reverting opensearch-encryption-sdk PR. Im for crypto-sdk but it need t be implemented differently.

@cwperks
Copy link
Member

cwperks commented Sep 5, 2023

I'm on the same page as well. I'm trying a few different things in the security plugin and in core, but reverting would get the release unblocked while a strategic fix is worked on

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working untriaged Require the attention of the repository maintainers and may need to be prioritized v2.10.0 Issues targeting release v2.10.0 v3.0.0
Projects
None yet
4 participants