-
Notifications
You must be signed in to change notification settings - Fork 22
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
Configuring the SpiffeProvider in java.security is not adding the Provider #80
Comments
Hey @alwaysastudent, thanks for reporting it. Can you check whether this issue is also happening with later versions of java, i.e, Java 9+ ? |
Yes I tried on java 8 and java 11. It is the same behavior. |
I was looking into it, unfortunately I couldn't figure it out, I suspect that the embedded tomcat used by spring boot is not loading the Spiffe provider classes, thus the need for install the provider through |
Do you think this has something to do with having the right |
Dropping the provider jar in |
Ok, thank you for checking. Meanwhile, I think we should be creating an issue with the spring boot project. |
I am trying to plugin the
SpiffeProvider
using just thejava.security
properties file, but this is not working for some reason. Can you please help me figure this out? I have to also mention that I don't rely on theSpiffeProvider.install()
The java.security content
Please see this commit on my fork alwaysastudent/java-spiffe-examples@805a56d where I am trying to test a spring boot application jar.
The way I am running this example is by
But I am getting the following error
I tried with and without the
java.policy
file and it does not work in both cases. If I run the program from intellij it works, but when I run this as an executable jar it does not. Kindly help understand the problem.The text was updated successfully, but these errors were encountered: