Skip to content
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

V8 add redact option for env block when pushing an app with a manifest.yml #2787

Merged
merged 3 commits into from
Feb 22, 2024

Conversation

nouseforaname
Copy link
Contributor

V8 PR for
#2763

[#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.
[#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.
@moleske
Copy link
Member

moleske commented Feb 22, 2024

as #2763 was approved and merged, merging this for v8

@moleske moleske merged commit b933a3c into cloudfoundry:v8 Feb 22, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants