-
Notifications
You must be signed in to change notification settings - Fork 356
runtime certificates loading for truststore #1434
Comments
You may find the answer in paketo-buildpacks/graalvm#66, please let us know how it goes, happy to improve the documentation if needed. |
@sdeleuze I think @neoludo wants to load the truststore at runtime, as recently added to graalvm: |
Thanks for the link @matthyx, I was missed the fact it was properly documented now. I think such documentation on native image official documentation is good enough so I close this issue. |
@sdeleuze hmm, not sure as it's not clear to me how you can specify One solution is to override the container entrypoint and/or arguments, but it's against the whole buildpack philosophy, isn't it? |
Ok let's discuss that with @scottfrederick and @dmikusa-pivotal then. |
Do you mean in this issue? |
If you want to send additional arguments to the
If you want to supply arguments at runtime, you can do that using these instructions. This will let you pass additional arguments to the default command used to run your application. In terms of In terms of native image builds, I think this advice would apply as well (I'm open to discussing this though as native image is new). The additional trusted certificates should be loaded into the JVM truststore when the JVM and native-image tool are installed. This means that they should be present, which according to the docs should be sufficient:
When I last checked this on paketo-buildpacks/graalvm#66 things just worked. I haven't tried this lately though, so if it's not working. Let's take a look and see what's happening. To do that, please include the full output from your build plus any build config (i.e. env variables, buildpack ordering, that you're customizing). That said, I see no reason why setting the arguments would be a problem. You'd need to use the options above to pass those additional arguments through at run/build time as required by native-image. Please give that a try and let me know how things go. |
please ignore, this was answered too quickly without full context |
@dmikusa-pivotal, after reading on my laptop (rather than my mobile) I see what you mean... apologizes.
@neoludo already played with https://github.com/paketo-buildpacks/ca-certificates and at runtime it can add trusted certificates to the system truststore... So I think we need to modify the buildpack to generate a JKS and inject the required arguments for using it. |
I agree. I added an issue under the native image repo to track this for us. We'll look into this more. |
Thanks @dmikusa-pivotal ! |
Should I close this issue ? |
@sdeleuze I agree this issue is more related to a change in the buildpack... we can close this but let's hope @dmikusa-pivotal work goes to completion. |
HI there,
I've followed instructions at https://paketo.io/docs/howto/configuration/#ca-certificates to add certificates at runtime.
I can see that log at startup :
Added 3 additional CA certificate(s) to system truststore
But when I'm listing certificates from inside my app, I dont see the 3 added certificates...
It seems that build-time truststore is used....
I should have missed a step.
Can anyone help me, plz ?
Thanks
Ludo
The text was updated successfully, but these errors were encountered: