-
Notifications
You must be signed in to change notification settings - Fork 33
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
Provide a way to configure keria through environment variables #326
Comments
Agree in general. Would the environment variables actually be written to the agent config file when a new agent is provisioned? Just considering the recently added endpoint to get the agent config that I'm using. Re the env variables, I'd actually be in favour of removing |
Yes, the way I implemented it. The
I agree to this as well. Perhaps that could be a separate issue to track. |
Great, in that case I think this change makes sense. Opened #328 for the other issue. |
Make sure KERIA states what the active settings are, so that the user can understand the result of their choices (command line, env, and config) |
Feature request description/rationale
It would be convenient to be able to configure a keria instance through environment variables instead of having to create configuration files and modifying the entrypoint.
The entrypoint and command in the docker image could be:
Then environment variables can control any deviations from the default configuration options. For example:
KERIA_PASSCODE
for setting the passcode for the keystoreKERIA_CURLS
to configure thecurls
entry from the configuration file, e.g.https://mykeriainstance.com:3902
.KERIA_ADMIN_PORT
to configure the admin portKERIA_HTTP_PORT
to configure the "http" portKERIA_BOOT_PORT
to configure the "boot" portThe order of precedence for configuration can be:
This would allow us to configure a KERIA container without having to create a custom config file and without customizing the entrypoint and command.
Current state:
To illustrate the current state, something like the following is currently needed to configure a passcode and agent urls:
Suggested use case
To illustrate the proposed use case, I would like the published keria image to support the following:
This would make it easier to deploy the published KERIA image to container runtimes (like kubernetes, AWS ECS etc.) without modifications.
Notes
KERI_
vsKERIA_
prefix of the environment variable names?The text was updated successfully, but these errors were encountered: