Integration [main]: 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....
#756
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
name: "Tests: Integration" | |
run-name: "Integration [${{ github.event.workflow_run.head_branch }}]: ${{ github.event.workflow_run.head_commit.message }}" | |
on: | |
workflow_dispatch: | |
workflow_run: | |
workflows: | |
- "Tests" | |
types: | |
- completed | |
jobs: | |
run-integration-tests-cf-env-with-edge-capi: | |
name: Integration tests with EDGE CAPI | |
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }} | |
uses: ./.github/workflows/tests-integration-reusable.yml | |
with: | |
capi-version: edge | |
run-with-client-creds: false | |
os: ubuntu-latest | |
name: Integration EDGE CAPI | |
secrets: inherit | |
run-integration-tests-cf-env-with-edge-capi-with-client-creds: | |
name: EDGE CAPI and client creds | |
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }} | |
uses: ./.github/workflows/tests-integration-reusable.yml | |
with: | |
capi-version: edge | |
run-with-client-creds: true | |
os: ubuntu-latest | |
name: Integration EDGE CAPI client creds | |
secrets: inherit | |
run-integration-tests-cf-env-with-min-capi: | |
name: MIN CAPI | |
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }} | |
uses: ./.github/workflows/tests-integration-reusable.yml | |
with: | |
capi-version: min | |
run-with-client-creds: false | |
os: ubuntu-latest | |
name: Integration MIN CAPI | |
secrets: inherit | |
#run-integration-windows: | |
# name: Windows | |
# if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }} | |
# uses: ./.github/workflows/tests-integration-reusable.yml | |
# with: | |
# capi-version: edge | |
# run-with-client-creds: false | |
# os: windows-latest | |
# name: Integration windows | |
# secrets: inherit | |
#run-integration-windows-client-credentials: | |
# name: Windows with client credentials | |
# if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }} | |
# uses: ./.github/workflows/tests-integration-reusable.yml | |
# with: | |
# capi-version: edge | |
# run-with-client-creds: true | |
# os: windows-latest | |
# name: Integration windows client credentials | |
# secrets: inherit |