Skip to content
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

Storage location of keybox.jceks #248

Closed
tobru opened this issue Sep 28, 2017 · 3 comments
Closed

Storage location of keybox.jceks #248

tobru opened this issue Sep 28, 2017 · 3 comments

Comments

@tobru
Copy link

tobru commented Sep 28, 2017

The key store file keybox.jceks is stored on a place which makes it very hard to persist when deploying KeyBox f.e. on OpenShift.

All persistent data of KeyBox seem to be stored under keybox/jetty/keybox/WEB-INF/classes/keydb/ (afaics) but keybox.jceks under keybox/jetty/keybox/WEB-INF/classes/keybox.jceks. This path is not persistent and everytime the container gets re-deployed it loses it's jceks file. Please make this path either configurable or move the file to the keydb directory.

@skavanagh
Copy link
Collaborator

Ok - I can see that.. What about the KeyBoxConfig.properties and jaas.conf (if you use it)?

@tobru
Copy link
Author

tobru commented Sep 29, 2017

Of course it would be great if the location could be configured of these files, but as I generate the file KeyBoxConfig.properties during container startup (see https://tobru.ch/keybox-on-openshift/ for more information) I don't care much. What would be much more important: Configuration of KeyBox should be possible using environment variables, this would make things much easier. Should I open a new issue for that?

@skavanagh
Copy link
Collaborator

Added a JAVA_OPTION for this.

-DCONFIG_DIR=\<whatever dir\>

it will move the jaas.conf and KeyBoxConfig.properties files there too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants