Adding Support for Infisical Password Vault#1609
Conversation
Accidentally pushed with OED_PRODUCTION set to yes
Added: 1. Banners for the make sure to change this value notifications, also added a notification for the token secret. 2. Fixed spelling error. 3. Added spaces to comments. 4. A variable that checks what the installation type is at the start and is used for all checks.
Added comments in docker-compose.yml to alert users as to the fact passwords are only drawn from this file once. Added something to the .env file to show the code that the password has already been generated. Changed a redundant if statement to an else.
Changes to address feedback on 1/19, added/edited comments, changed changePass.js to changePostgresPass.js
This comment was marked as resolved.
This comment was marked as resolved.
This reverts commit 24e2fb3.
|
I'm noting this PR contains code from PR #1554 as it is necessary. That PR will should be merged first so all those changes go away before this PR merged. |
There was a problem hiding this comment.
Thanks to @Zachary-Squires for looking into this, adding the code and the documentation. Overall, this seems good. I have not yet tried it because it is a draft and I wanted to get my first thoughts back to you. I made a few comments to consider. I also put in a comment on the docs on your GitHub account. Please let me know if anything is not clear or you have any thoughts/questions.
| - OED_MAIL_FROM=mydomain@example.com # The email address that the email will come from | ||
| - OED_MAIL_TO=someone@example.com # Set the destination address here for where to send emails | ||
| - OED_MAIL_ORG=My Organization Name # Org name for mail that is included in the subject | ||
| - PASSWORD_VAULT=no # Set to yes to load DB passwords from Infisical |
There was a problem hiding this comment.
When the design doc is in place for OED, it might be nice to put a link to it here so people can easily find the directions for enabling the vault.
|
This is to document that the current developer will not be continuing this work. It will be done by others per the design doc linked in the description. |
|
I'm working on this |
Description
This PR adds optional support for Infisical, an open source free secrets manager that can be self hosted. This PR allows the POSTGRES_PASSWORD and OED_DB_PASSWORD variables to be stored inside the Infisical password vault instead of the .env for increased security.
I've created a tutorial as to how to do this which is here: https://gist.github.com/Zachary-Squires/b7d673922d251ec4d0edc5aa752ec06fThere is an infisical design doc with this information and some ideas on moving forward for anyone looking at this.Type of change
Checklist
Limitations
Currently Infisical can only host the passwords for the database, in future this could be expanded to also host user passwords.