-
Notifications
You must be signed in to change notification settings - Fork 20
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
Supply a custom Java Security File #259
Comments
Sorry for the delay. I had to look some of this up because we don't have it documented. Apologizes for that.
My initial thought is to not allow generically modifying the security file, at least not having a way in the buildpack to do it, but that we could enable specific use cases like disabling DNS, adding security providers, or whatever other concrete use cases come up. My rationale is a.) it's easy to mess things up in this file and that can result in extra support burden for buildpacks b.) it's nice to have this capability as a developer, but if you switch perspective to a sysadmin/infosec point of view, maybe it's not so great, and having controlled/limited access is more appealing. Anyway, I'm certainly open to hearing more on this topic though. |
Hey, developer here... I'll say that our concrete use case is configuring our workload to run with BouncyCastle on the JCA/JSSE side. Without a facility to hook this up we have a much harder time moving toward FIPS compliance |
@dmikusa since it's not well documented can you point me in the direction of the code responsible for this? I'd like to see how we might accomplish |
You're in luck. The buildpack can do this right now. It is not documented, apologize for that. We've had a story to document for a while and it keeps slipping.
|
super helpful thanks.. I think the code will break for my specific use case because it expects This is under the assumption that a |
It is space-delimited, but it should be For example, if you set security providers: You end up with the following
I think you're right. I was digging through my notes, cause I've set Bouncy Castle up with this before and this is what I had previously done.
I don't think we could change from space to comma as that could break apps out there, but we could accept a PR that makes the delimiter configurable with a space being the default. You could then override that with a comma. I think that would be sufficient to make things work with |
I want to attempt this but just am not sure what filepath I would provide to |
So this is what I'm doing today, and it is HIGHLY dependent on how your deployed environment works. because that path to the |
@tuckeremulls See this note #259 (comment) it's doing exactly that. Step 4.) is where it sets the path. It's using Relative paths would work as well. The working directory for an app is going to be |
I can confirm that this works when using the maven
in the |
Hello team, I am looking for a way to set the
networkaddress.cache.ttl
java security property for a Spring Boot app that we containerize with buidpacks without setting it in application code.Unfortunately this property cannot just be set by passing it as a JVM argument through the
$JAVA_TOOL_OPTIONS
environment variable supplied by bellsoft-liberica. It must be set in thejava.security
file. Is there any way to supply a custom file with properties that can override thejava.security
file of the jdk that bellsoft-liberica builds into the image? Does this functionality already exist or would it be a new feature?Describe the Enhancement
Some method of supplying a file to override certain properties of the jdk's
java.security
file.Possible Solution
Provided through an environment variable possibly for ease of access.
Motivation
This specific property
networkaddress.cache.ttl
can be altered to disable DNS caching, so that if DNS rules change, an application will be able to pick up the new resolutions rather than using an older incorrect one. Beyond just this property, there are many others that can be customized in thejava.security
file that may serve important usage to developers containerizing their apps.The text was updated successfully, but these errors were encountered: