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
18 stars 19 forks source link

Print warning when certificate import is skipped due to read-only tmp #359

Closed phil9909 closed 5 months ago

phil9909 commented 5 months ago

Summary

For importing certificates into the Java Truststore (at launch time) we currently try two things:

If the tmp dir is also read-only, we skip the process silently.

This PR prints a warning to the user. It also alters the behavior to exit early, if both locations are read-only (the current implementation would continue and try to modify the the existing Truststore and ignore non-write permission problems).

Use Cases

Should help users understand what is going on.

Checklist

phil9909 commented 5 months ago

@paketo-buildpacks/java-maintainers could someone review this please?