forked from containers/podman
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wave secrets protections on select files/scripts
The baseline gitleaks data is unfortunately commit-locked, meaning small changes to files due to (for example) rebases, can render them useless. Manually go through all findings and where possible mark lines to be ignored directly. In a few cases where secrets are used in tests, mark them to be ignored via a new `.gitleaksignore` file. This will hopefully cut way down on the number of false-positive alerts that require review. Note: I intentionally did not wave checks in the `.cirrus.yml` file as it's currently going through a large number of changes. I'll leave it up to a future followup commit to mark known/approved secret references in this file. [NO NEW TESTS NEEDED] Signed-off-by: Chris Evich <[email protected]>
- Loading branch information
Showing
11 changed files
with
100 additions
and
78 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,15 +18,15 @@ on: | |
# Ref: https://docs.github.com/en/actions/using-workflows/reusing-workflows | ||
workflow_call: | ||
secrets: | ||
SECRET_CIRRUS_API_KEY: | ||
SECRET_CIRRUS_API_KEY: # gitleaks:allow | ||
required : true | ||
ACTION_MAIL_SERVER: | ||
ACTION_MAIL_SERVER: # gitleaks:allow | ||
required: true | ||
ACTION_MAIL_USERNAME: | ||
ACTION_MAIL_USERNAME: # gitleaks:allow | ||
required: true | ||
ACTION_MAIL_PASSWORD: | ||
ACTION_MAIL_PASSWORD: # gitleaks:allow | ||
required: true | ||
ACTION_MAIL_SENDER: | ||
ACTION_MAIL_SENDER: # gitleaks:allow | ||
required: true | ||
|
||
env: | ||
|
@@ -63,13 +63,13 @@ jobs: | |
# Ref: https://github.com/dawidd6/action-send-mail | ||
uses: dawidd6/[email protected] | ||
with: | ||
server_address: ${{secrets.ACTION_MAIL_SERVER}} | ||
server_address: ${{secrets.ACTION_MAIL_SERVER}} # gitleaks:allow | ||
server_port: 465 | ||
username: ${{secrets.ACTION_MAIL_USERNAME}} | ||
password: ${{secrets.ACTION_MAIL_PASSWORD}} | ||
username: ${{secrets.ACTION_MAIL_USERNAME}} # gitleaks:allow | ||
password: ${{secrets.ACTION_MAIL_PASSWORD}} # gitleaks:allow | ||
subject: Cirrus-CI cron build failures on ${{github.repository}} | ||
to: ${{env.RCPTCSV}} | ||
from: ${{secrets.ACTION_MAIL_SENDER}} | ||
from: ${{secrets.ACTION_MAIL_SENDER}} # gitleaks:allow | ||
body: file://./artifacts/email_body.txt | ||
|
||
- if: always() | ||
|
@@ -82,11 +82,11 @@ jobs: | |
name: Send error notification e-mail | ||
uses: dawidd6/[email protected] | ||
with: | ||
server_address: ${{secrets.ACTION_MAIL_SERVER}} | ||
server_address: ${{secrets.ACTION_MAIL_SERVER}} # gitleaks:allow | ||
server_port: 465 | ||
username: ${{secrets.ACTION_MAIL_USERNAME}} | ||
password: ${{secrets.ACTION_MAIL_PASSWORD}} | ||
username: ${{secrets.ACTION_MAIL_USERNAME}} # gitleaks:allow | ||
password: ${{secrets.ACTION_MAIL_PASSWORD}} # gitleaks:allow | ||
subject: Github workflow error on ${{github.repository}} | ||
to: ${{env.RCPTCSV}} | ||
from: ${{secrets.ACTION_MAIL_SENDER}} | ||
from: ${{secrets.ACTION_MAIL_SENDER}} # gitleaks:allow | ||
body: "Job failed: https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,13 +11,13 @@ on: | |
# Ref: https://docs.github.com/en/actions/using-workflows/reusing-workflows | ||
workflow_call: | ||
secrets: | ||
ACTION_MAIL_SERVER: | ||
ACTION_MAIL_SERVER: # gitleaks:allow | ||
required: true | ||
ACTION_MAIL_USERNAME: | ||
ACTION_MAIL_USERNAME: # gitleaks:allow | ||
required: true | ||
ACTION_MAIL_PASSWORD: | ||
ACTION_MAIL_PASSWORD: # gitleaks:allow | ||
required: true | ||
ACTION_MAIL_SENDER: | ||
ACTION_MAIL_SENDER: # gitleaks:allow | ||
required: true | ||
# Debug: Allow triggering job manually in github-actions WebUI | ||
workflow_dispatch: {} | ||
|
@@ -58,11 +58,11 @@ jobs: | |
name: Send job failure notification e-mail | ||
uses: dawidd6/[email protected] | ||
with: | ||
server_address: ${{secrets.ACTION_MAIL_SERVER}} | ||
server_address: ${{secrets.ACTION_MAIL_SERVER}} # gitleaks:allow | ||
server_port: 465 | ||
username: ${{secrets.ACTION_MAIL_USERNAME}} | ||
password: ${{secrets.ACTION_MAIL_PASSWORD}} | ||
username: ${{secrets.ACTION_MAIL_USERNAME}} # gitleaks:allow | ||
password: ${{secrets.ACTION_MAIL_PASSWORD}} # gitleaks:allow | ||
subject: Github workflow error on ${{github.repository}} | ||
to: [email protected] | ||
from: ${{secrets.ACTION_MAIL_SENDER}} | ||
from: ${{secrets.ACTION_MAIL_SENDER}} # gitleaks:allow | ||
body: "Job failed: https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,15 +17,15 @@ on: | |
# Ref: https://docs.github.com/en/actions/using-workflows/reusing-workflows | ||
workflow_call: | ||
secrets: | ||
SECRET_CIRRUS_API_KEY: | ||
SECRET_CIRRUS_API_KEY: # gitleaks:allow | ||
required : true | ||
ACTION_MAIL_SERVER: | ||
ACTION_MAIL_SERVER: # gitleaks:allow | ||
required: true | ||
ACTION_MAIL_USERNAME: | ||
ACTION_MAIL_USERNAME: # gitleaks:allow | ||
required: true | ||
ACTION_MAIL_PASSWORD: | ||
ACTION_MAIL_PASSWORD: # gitleaks:allow | ||
required: true | ||
ACTION_MAIL_SENDER: | ||
ACTION_MAIL_SENDER: # gitleaks:allow | ||
required: true | ||
|
||
env: | ||
|
@@ -56,7 +56,7 @@ jobs: | |
- if: steps.cron.outputs.failures > 0 | ||
shell: bash | ||
env: | ||
SECRET_CIRRUS_API_KEY: ${{ secrets.SECRET_CIRRUS_API_KEY }} | ||
SECRET_CIRRUS_API_KEY: ${{ secrets.SECRET_CIRRUS_API_KEY }} # gitleaks:allow | ||
run: './.github/actions/check_cirrus_cron/rerun_failed_tasks.sh' | ||
|
||
- uses: actions/upload-artifact@v4 | ||
|
@@ -68,11 +68,11 @@ jobs: | |
name: Send error notification e-mail | ||
uses: dawidd6/[email protected] | ||
with: | ||
server_address: ${{secrets.ACTION_MAIL_SERVER}} | ||
server_address: ${{secrets.ACTION_MAIL_SERVER}} # gitleaks:allow | ||
server_port: 465 | ||
username: ${{secrets.ACTION_MAIL_USERNAME}} | ||
password: ${{secrets.ACTION_MAIL_PASSWORD}} | ||
username: ${{secrets.ACTION_MAIL_USERNAME}} # gitleaks:allow | ||
password: ${{secrets.ACTION_MAIL_PASSWORD}} # gitleaks:allow | ||
subject: Github workflow error on ${{github.repository}} | ||
to: ${{env.RCPTCSV}} | ||
from: ${{secrets.ACTION_MAIL_SENDER}} | ||
from: ${{secrets.ACTION_MAIL_SENDER}} # gitleaks:allow | ||
body: "Job failed: https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
36e29a843205e05acedd65b559757a49ffbdd19a:pkg/auth/auth_test.go:generic-api-key:17 | ||
36e29a843205e05acedd65b559757a49ffbdd19a:pkg/auth/auth_test.go:generic-api-key:18 | ||
36e29a843205e05acedd65b559757a49ffbdd19a:pkg/auth/auth_test.go:generic-api-key:19 | ||
36e29a843205e05acedd65b559757a49ffbdd19a:pkg/auth/auth_test.go:generic-api-key:20 | ||
36e29a843205e05acedd65b559757a49ffbdd19a:test/certs/domain.key:private-key:1 | ||
36e29a843205e05acedd65b559757a49ffbdd19a:test/e2e/login_logout_test.go:generic-api-key:525 | ||
36e29a843205e05acedd65b559757a49ffbdd19a:test/e2e/login_logout_test.go:generic-api-key:526 | ||
36e29a843205e05acedd65b559757a49ffbdd19a:test/e2e/login_logout_test.go:generic-api-key:572 | ||
36e29a843205e05acedd65b559757a49ffbdd19a:test/e2e/login_logout_test.go:generic-api-key:573 | ||
36e29a843205e05acedd65b559757a49ffbdd19a:test/e2e/login_logout_test.go:generic-api-key:574 | ||
36e29a843205e05acedd65b559757a49ffbdd19a:test/e2e/testdata/sigstore-key.key:private-key:1 | ||
71b3437a814f7b6252fbfd568e3eaef182dd308a:pkg/auth/auth_test.go:generic-api-key:17 | ||
71b3437a814f7b6252fbfd568e3eaef182dd308a:pkg/auth/auth_test.go:generic-api-key:18 | ||
71b3437a814f7b6252fbfd568e3eaef182dd308a:pkg/auth/auth_test.go:generic-api-key:19 | ||
71b3437a814f7b6252fbfd568e3eaef182dd308a:pkg/auth/auth_test.go:generic-api-key:20 | ||
71b3437a814f7b6252fbfd568e3eaef182dd308a:test/e2e/login_logout_test.go:generic-api-key:525 | ||
71b3437a814f7b6252fbfd568e3eaef182dd308a:test/e2e/login_logout_test.go:generic-api-key:526 | ||
71b3437a814f7b6252fbfd568e3eaef182dd308a:test/e2e/login_logout_test.go:generic-api-key:572 | ||
71b3437a814f7b6252fbfd568e3eaef182dd308a:test/e2e/login_logout_test.go:generic-api-key:573 | ||
71b3437a814f7b6252fbfd568e3eaef182dd308a:test/e2e/login_logout_test.go:generic-api-key:574 | ||
71b3437a814f7b6252fbfd568e3eaef182dd308a:test/e2e/play_kube_test.go:generic-api-key:57 | ||
71b3437a814f7b6252fbfd568e3eaef182dd308a:test/e2e/testdata/sigstore-key.key:private-key:1 |
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