cinchapi / concourse

Distributed database warehouse for transactions, search and analytics across time.
http://concoursedb.com
Apache License 2.0
315 stars 235 forks source link

Add configuration preference to initialize admin username and password #501

Closed jtnelson closed 4 months ago

jtnelson commented 4 months ago

Add two new configuration options: init_root_username init_root_password

Correspondingly, those values should be possible to set as env vars CONCOURSE_INIT_ROOT_USERNAME CONCOURSE_INIT_ROOT_PASSWORD

The default value for both should be admin/admin

This will help deploy Concourse in containerized environments

jtnelson commented 4 months ago

Places where changes must be made:

https://github.com/cinchapi/concourse/blob/87cf2370b41298f7da02c07389f2a3cbb3c7a502/concourse-server/src/main/java/com/cinchapi/concourse/security/UserService.java#L97 https://github.com/cinchapi/concourse/blob/87cf2370b41298f7da02c07389f2a3cbb3c7a502/concourse-server/src/main/java/com/cinchapi/concourse/security/UserService.java#L90

These should pull in the configuration values