-
Notifications
You must be signed in to change notification settings - Fork 933
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
V8 add redact option for env block when pushing an app with a manifes…
…t.yml (#2787) * implement redact to avoid leaking secrets from `env` [#186767925] IF the app is pushed with a manifest AND the app needs secrets set via environment variables THEN currently there is no way to avoid leaking secrets in the output of cf push commands. technically this could be avoided by not using a manifest and running: ```cf push --no-start cf set-env ... cf set-env ... cf set-env ... ... ` but that escalates quickly if the APP contains many secret things in it's env requirements. We face this in an errand where: - the bosh release renders the application.yml - the application.yml contains secrets in the env block - the errand VM streams it's logs to a logging server This can be remediated by the suggested redacttion. `--redact-env` to indiscriminately change all values to `<redacted>` if they're contained within an apps `env` block. * duplicate test cases to enable testing redact feature [#186767925] IF the app is pushed with a manifest AND the app needs secrets set via environment variables THEN currently there is no way to avoid leaking secrets in the output of cf push commands. technically this could be avoided by not using a manifest and running: ```cf push --no-start cf set-env ... cf set-env ... cf set-env ... ... ` but that escalates quickly if the APP contains many secret things in it's env requirements. We face this in an errand where: - the bosh release renders the application.yml - the application.yml contains secrets in the env block - the errand VM streams it's logs to a logging server This can be remediated by the suggested redacttion. `--redact-env` to indiscriminately change all values to `<redacted>` if they're contained within an apps `env` block. * add integration tests for --redact-env flag [#186767925]
- Loading branch information
1 parent
5bfdbe7
commit b933a3c
Showing
6 changed files
with
480 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.