-
Notifications
You must be signed in to change notification settings - Fork 11
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
Encrypt config.yaml #27
Conversation
efc171a
to
212b467
Compare
@audiodude @siddharthvp I could use some help. I updated the exception to include UnicodeError though that seems to fail, works on a minimal example on py3.7 though not through tox? If I put a bare except py37-pytest will succeed but flake will fail on the bare exception. Any thoughts on what I'm doing wrong? |
@vivian-rook Looks like the error thrown is Instead of updating it to catch YAMLError, I think the better solution would be to give a different name to this binary file, say |
Agree with @siddharthvp. I was already confused about the comment:
How is that okay? Won't both development and production be broken? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't you have to tell the code to read from config-prod.yml
instead of config.yml
now?
In the test code it tends towards the |
Right, I see that now, after expanding more lines of the file. It uses What is the plan for deploying the git-crypt key file to the production machines? Just drop it in and do |
Looks like the checks are passing. @Sd0001 @audiodude the decryption key is on the bastion in /opt/ |
Yeah, that's what I usually do. Usually on the bastion system for a given project. Also helps with state files for things like terraform to just have it in one place. Though object storage is nicer if we can set it up. I wonder if object storage would be sufficient for the git-crypt key as well. That has always been an "Ask a maintainer" kind of solution. Perhaps it doesn't have to be. Though that is probably a solution in search of a problem. |
|
Bug: T348476
Ok. I haven't worked with git-crypt at all, but just reading a few articles it sounds to me that it most commonly encrypts files "in place" such that they are decrypted when they are put in the filesystem by git. |
Bug: T348476
I believe that both the worker and web configs can be combine into one file. At which point having it encrypted should simplify deployment as the git clone will have it in place, and then the main purpose of this, having the file stored in git, is achieved.