-
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
Multi-environment encryption key & team member separation #158
base: master
Are you sure you want to change the base?
Conversation
Awesome work, this is becoming a much-needed feature at LC. Trying to piece together how this is implemented. Hard to see the full picture w/o an example or tests, so forgive me if some of these questions are off-base:
|
This could certainly be done (you're correct that I omitted
Yup, this is built in to the PoC, ditto for
Both ways are intended to work, for sure. The flags are there as a consistency measure, and largely for
This is (one of) the reason that I didn't actually use the
Yup, this is the simplest way to handle it. Indeed, I've thought about similar extensions to
I put some messages in already to try and be specific, but they could be improved.
Yeah, my answer here would default to "whatever CI providers give you" to define that variable differently per env. It's not too difficult to support a suffixed key though (APP_CONFIG_SECRETS_KEY_PROD). Think it's worth it?
Yeah naturally, it will only remove that team member for the current environment (set by override or APP_CONFIG_ENV). Normally though, I would assume the use case for untrusting involves untrusting for all environments. Maybe it's as simple as an extra CLI flag for that, or a prompt. |
I agree 100%. If there's no way to fully support
Thoughts on calling this
Yeah, this makes sense.
Good point. I think those are both great options. |
This is already the case, both are distinct and supported in $env and here now. |
Amazing. This PR LGTM pending tests, documentation, etc. |
Codecov Report
@@ Coverage Diff @@
## master #158 +/- ##
==========================================
- Coverage 80.43% 79.16% -1.28%
==========================================
Files 42 42
Lines 2453 2529 +76
Branches 586 608 +22
==========================================
+ Hits 1973 2002 +29
- Misses 480 527 +47
Continue to review full report at Codecov.
|
Provides a backwards compatible model for
teamMembers
andencryptionKeys
that respects and segregates the current environment that's active.Before landing:
environmentOptions
Closes #105