paketo-buildpacks / libjvm

A library and helper applications that form the basis for building the different Paketo-style JVM-providing buildpacks
Apache License 2.0
19 stars 20 forks source link

Allow configuring the delimiter for `SECURITY_PROVIDERS` #285

Open dmikusa opened 1 year ago

dmikusa commented 1 year ago

Describe the Enhancement

Make 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 SECURITY_PROVIDERS.

Possible Solution

Right now it is a space, make this configurable but default to a space for backward compatibility.

Motivation

A space works well in a lot of cases, but some security providers like bouncy castle require arguments. These are space separated which breaks the buildpack mechanism for setting security providers. If we allow a different delimiter to be set then you could use a comma or pipe and work around this limitation. See #259 for more details.