Repository navigation
Conversation
|
@gundalow Can you please let me know if these still trip the scanner? |
There was a problem hiding this comment.
You can download the app from https://github.com/zricethezav/gitleaks/releases/tag/v7.5.0
(Will work on getting this added to CI)
gitleaks-linux-amd64 --path=. -v --no-git
Various docs/rst though they will be fixed when plugin docs are rebuilt
{
"line": " sample: \"AIDAIONYVJQNIAEXAMPLE\"",
"lineNumber": 154,
"offender": "AIDAIONYVJQNIAEXAMPL",
"offenderEntropy": -1,
"commit": "",
"repo": "",
"repoURL": "",
"leakURL": "",
"rule": "AWS Access Key",
"commitMessage": "",
"author": "",
"email": "",
"file": "plugins/modules/ec2_eni_info.py",
"date": "0001-01-01T00:00:00Z",
"tags": "key, AWS"
}
{
"line": " self.sts_client.get_caller_identity.side_effect = [{'UserId': 'AIDA1234567890ABCDEFG',",
"lineNumber": 94,
"offender": "AIDA1234567890ABCDEF",
"offenderEntropy": -1,
"commit": "",
"repo": "",
"repoURL": "",
"leakURL": "",
"rule": "AWS Access Key",
"commitMessage": "",
"author": "",
"email": "",
"file": "tests/unit/module_utils/test_iam.py",
"date": "0001-01-01T00:00:00Z",
"tags": "key, AWS"
}
{
"line": " self.sts_client.get_caller_identity.side_effect = [{'UserId': 'AIDA1234567890ABCDEFG',",
"lineNumber": 109,
"offender": "AIDA1234567890ABCDEF",
"offenderEntropy": -1,
"commit": "",
"repo": "",
"repoURL": "",
"leakURL": "",
"rule": "AWS Access Key",
"commitMessage": "",
"author": "",
"email": "",
"file": "tests/unit/module_utils/test_iam.py",
"date": "0001-01-01T00:00:00Z",
"tags": "key, AWS"
}
{
"line": " self.sts_client.get_caller_identity.side_effect = [{'UserId': 'AIDA1234567890ABCDEFG',",
"lineNumber": 124,
"offender": "AIDA1234567890ABCDEF",
"offenderEntropy": -1,
"commit": "",
"repo": "",
"repoURL": "",
"leakURL": "",
"rule": "AWS Access Key",
"commitMessage": "",
"author": "",
"email": "",
"file": "tests/unit/module_utils/test_iam.py",
"date": "0001-01-01T00:00:00Z",
"tags": "key, AWS"
}
{
"line": " self.sts_client.get_caller_identity.side_effect = [{'UserId': 'AIDA1234567890ABCDEFG',",
"lineNumber": 138,
"offender": "AIDA1234567890ABCDEF",
"offenderEntropy": -1,
"commit": "",
"repo": "",
"repoURL": "",
"leakURL": "",
"rule": "AWS Access Key",
"commitMessage": "",
"author": "",
"email": "",
"file": "tests/unit/module_utils/test_iam.py",
"date": "0001-01-01T00:00:00Z",
"tags": "key, AWS"
}
{
"line": " self.sts_client.get_caller_identity.side_effect = [{'UserId': 'AIDA1234567890ABCDEFG',",
"lineNumber": 152,
"offender": "AIDA1234567890ABCDEF",
"offenderEntropy": -1,
"commit": "",
"repo": "",
"repoURL": "",
"leakURL": "",
"rule": "AWS Access Key",
"commitMessage": "",
"author": "",
"email": "",
"file": "tests/unit/module_utils/test_iam.py",
"date": "0001-01-01T00:00:00Z",
"tags": "key, AWS"
}
{
"line": " self.iam_client.get_user.side_effect = [{\"User\": {\"Path\": \"/\", \"UserName\": \"ExampleUser\", \"UserId\": \"AIDA1234567890ABCDEFG\",",
"lineNumber": 169,
"offender": "AIDA1234567890ABCDEF",
"offenderEntropy": -1,
"commit": "",
"repo": "",
"repoURL": "",
"leakURL": "",
"rule": "AWS Access Key",
"commitMessage": "",
"author": "",
"email": "",
"file": "tests/unit/module_utils/test_iam.py",
"date": "0001-01-01T00:00:00Z",
"tags": "key, AWS"
}
{
"line": " self.iam_client.get_user.side_effect = [{\"User\": {\"Path\": \"/\", \"UserName\": \"ExampleUser\", \"UserId\": \"AIDA1234567890ABCDEFG\",",
"lineNumber": 184,
"offender": "AIDA1234567890ABCDEF",
"offenderEntropy": -1,
"commit": "",
"repo": "",
"repoURL": "",
"leakURL": "",
"rule": "AWS Access Key",
"commitMessage": "",
"author": "",
"email": "",
"file": "tests/unit/module_utils/test_iam.py",
"date": "0001-01-01T00:00:00Z",
"tags": "key, AWS"
}
{
"line": " self.iam_client.get_user.side_effect = [{\"User\": {\"Path\": \"/\", \"UserName\": \"ExampleUser\", \"UserId\": \"AIDA1234567890ABCDEFG\",",
"lineNumber": 199,
"offender": "AIDA1234567890ABCDEF",
"offenderEntropy": -1,
"commit": "",
"repo": "",
"repoURL": "",
"leakURL": "",
"rule": "AWS Access Key",
"commitMessage": "",
"author": "",
"email": "",
"file": "tests/unit/module_utils/test_iam.py",
"date": "0001-01-01T00:00:00Z",
"tags": "key, AWS"
}
The community team is looking at adding some key exposure scanning to collection docs, and these are being flaggged as credential leaks. Add a string of EXAMPLE to acess_keys and ssh keys in module docs.
d20f285 to
8e6e37a
Compare
| sample: '-----BEGIN RSA PRIVATE KEY EXAMPLE----- | ||
| MIIEowIBAAKC... | ||
| -----END RSA PRIVATE KEY-----' | ||
| -----END RSA PRIVATE KEY EXAMPLE-----' |
There was a problem hiding this comment.
The wrapper here brings value (more so if it's in the other direction, but still). While adding 'EXAMPLE' to the header deliberately breaks the match, it's kind of a half-job. Those headers are pre-known (in the same way the AIDA etc prefixes are) and aren't themselves 'secret', they just tell you what kind of data to expect.
It would be better if we could do something like:
sample: '-----BEGIN RSA PRIVATE KEY -----
EXAMPLE
-----END RSA PRIVATE KEY EXAMPLE-----'
Hopefully we could convince the team to explicitly whitelist EXAMPLE inside the headers as being 'ok'
|
I'm going to close out this PR for now since it looks like it's very much on the back burner. What would be good would be to get is some advice from the folks pushing for this change as to how we create example 'secrets' where the general shape of the secret can be maintained (so folks know roughly what they're looking at): For things like private RSA keys, we should be able to put the |
…ates (#3099) Bumps the github-actions group with 2 updates in the / directory: dawidd6/action-download-artifact and SonarSource/sonarqube-scan-action. Updates dawidd6/action-download-artifact from 21 to 24 Release notes Sourced from dawidd6/action-download-artifact's releases. v24 What's Changed fix: preserve workflow run ordering by @dawidd6 in dawidd6/action-download-artifact#425 Full Changelog: dawidd6/action-download-artifact@v23...v24 v23 Info This release is rather big. Not gonna lie to you, I've used LLMs to get there. I can't vouch for all the changes but CI confirms there should be no regressions. Please report any issues you encounter with this release. You can always revert to previous working one. What's Changed joint fixes and improvements by @dawidd6 in dawidd6/action-download-artifact#417 build(deps): update brace-expansion by @dawidd6 in dawidd6/action-download-artifact#418 Harden upload workflow token scope with explicit GITHUB_TOKEN permissions by @dawidd6 with @Copilot in dawidd6/action-download-artifact#419 fix: stream GHES artifact downloads by @dawidd6 in dawidd6/action-download-artifact#420 chore: simplify action implementation by @dawidd6 in dawidd6/action-download-artifact#421 chore: remove redundant action code by @dawidd6 in dawidd6/action-download-artifact#422 chore: simplify artifact filtering by @dawidd6 in dawidd6/action-download-artifact#423 Full Changelog: dawidd6/action-download-artifact@v22...v23 v22 What's Changed build(deps): bump fast-xml-builder from 1.1.5 to 1.2.0 by @dependabot[bot] in dawidd6/action-download-artifact#406 build(deps): bump actions/checkout from 6 to 7 by @dependabot[bot] in dawidd6/action-download-artifact#407 build(deps): bump undici from 6.24.0 to 6.27.0 by @dependabot[bot] in dawidd6/action-download-artifact#408 build(deps): bump filesize from 11.0.17 to 11.0.18 by @dependabot[bot] in dawidd6/action-download-artifact#409 build(deps): bump filesize from 11.0.18 to 11.0.19 by @dependabot[bot] in dawidd6/action-download-artifact#410 build(deps): bump adm-zip from 0.5.17 to 0.5.18 by @dependabot[bot] in dawidd6/action-download-artifact#411 build(deps): bump filesize from 11.0.19 to 11.0.22 by @dependabot[bot] in dawidd6/action-download-artifact#412 build(deps): bump adm-zip from 0.5.18 to 0.6.0 by @dependabot[bot] in dawidd6/action-download-artifact#414 build(deps): bump undici from 6.27.0 to 6.28.0 by @dependabot[bot] in dawidd6/action-download-artifact#415 node_modules: update by @dawidd6 in dawidd6/action-download-artifact#416 Continue downloading after expired artifacts in non-fatal modes by @oiahoon in dawidd6/action-download-artifact#413 New Contributors @oiahoon made their first contribution in dawidd6/action-download-artifact#413 Full Changelog: dawidd6/action-download-artifact@v21...v22 Commits d63b86a fix: preserve workflow run ordering (#425) 57aa996 chore: simplify artifact filtering (#423) 7325d46 chore: remove redundant action code (#422) fdd98d5 chore: simplify action implementation (#421) 2156211 fix: stream GHES artifact downloads (#420) a64f37f Harden upload workflow token scope with explicit GITHUB_TOKEN permissions (... b3e5a4c build(deps): update brace-expansion (#418) 01843d9 joint fixes and improvements (#417) 7f871e0 fix: continue after expired artifacts (#413) 0015e1b node_modules: update (#416) Additional commits viewable in compare view Updates SonarSource/sonarqube-scan-action from 8.2.1 to 8.2.2 Release notes Sourced from SonarSource/sonarqube-scan-action's releases. v8.2.2 What's Changed SQSCANGHA-159 Bump undici from 6.24.1 to 6.28.1 by @dependabot[bot] in SonarSource/sonarqube-scan-action#261 Full Changelog: SonarSource/sonarqube-scan-action@v8.2.1...v8.2.2 Commits ba9859e SQSCANGHA-159 Bump undici from 6.24.1 to 6.28.1 (#261) 5bc5285 Rename code-quality teams to code-orchestration in CODEOWNERS ad82103 SQSCANGHA-158 NO-JIRA Bump actions/checkout from 7.0.0 to 7.0.1 (#260) 7451daf SQSCANGHA-157 NO-JIRA Bump actions/setup-node from 6.4.0 to 7.0.0 (#259) See full diff in compare view Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase. Dependabot commands and options You can trigger Dependabot actions by commenting on this PR: @dependabot rebase will rebase this PR @dependabot recreate will recreate this PR, overwriting any edits that have been made to it @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency @dependabot ignore <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself) @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself) @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself) @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions Reviewed-by: Bikouo Aubin Reviewed-by: Don Naro <dnaro@redhat.com> Reviewed-by: Alina Buzachis
Bumps the uv-deps group with 2 updates: tox-uv-bare and tox-ansible. Updates tox-uv-bare from 1.36.0 to 1.37.7 Release notes Sourced from tox-uv-bare's releases. 1.37.7 Bug fixes With uv_resolution and dependency_groups both set, deps lines are now kept as written when combined with the groups, so a -r/-c file, an option or a comment no longer crashes tox with an invalid requirement error. Environments with an older dependency cache are recreated once on upgrade (#424) by @qodelicious and @gaborbernat. package = uv and package = uv-editable now install the project from package_root (setupdir) instead of the tox root (#425) by @qodelicious and @gaborbernat. 🐍 PyPI: tox-uv PyPI: tox-uv-bare 📜 Full Changelog 1.37.6 Bug fixes A package dependency that names a uv workspace member is now matched against tool.uv.sources by its normalized name, so Demo_Foo and demo-foo count as the same member instead of being sent to the index (#417) by @qodelicious and @gaborbernat. Point {env_site_packages_dir} at lib/python3.13t/site-packages for free-threaded environments, instead of a lib/python3.13/site-packages directory that does not exist (#416) by @qodelicious and @gaborbernat. Preserve debug and free-threaded flags when selecting Python for a tox environment. Changing either flag recreates the environment, so py313d and py313td do not reuse an interpreter with different build options (#420) by @gaborbernat. Recreate the environment when system_site_packages changes. uv venv --system-site-packages only applies while the environment is being created, so flipping the setting left the old pyvenv.cfg in place and the change had no effect (#418) by @abhishekcpp007 and @gaborbernat. New Contributors @qodelicious made their first contribution in tox-dev/tox-uv#417 @abhishekcpp007 made their first contribution in tox-dev/tox-uv#418 🐍 PyPI: tox-uv PyPI: tox-uv-bare 📜 Full Changelog 1.37.5 🐍 PyPI: tox-uv PyPI: tox-uv-bare 📜 Full Changelog 1.37.4 Bug fixes ... (truncated) Changelog Sourced from tox-uv-bare's changelog. 1.37.7 (2026-11-07) Fixed With uv_resolution and dependency_groups both set, deps lines are now kept as written when combined with the groups, so a -r/-c file, an option or a comment no longer crashes tox with an invalid requirement error. Environments with an older dependency cache are recreated once on upgrade (#424) by @qodelicious and @gaborbernat. package = uv and package = uv-editable now install the project from package_root (setupdir) instead of the tox root (#425) by @qodelicious and @gaborbernat. 1.37.6 (2026-11-06) Fixed A package dependency that names a uv workspace member is now matched against tool.uv.sources by its normalized name, so Demo_Foo and demo-foo count as the same member instead of being sent to the index (#417) by @qodelicious and @gaborbernat. Point {env_site_packages_dir} at lib/python3.13t/site-packages for free-threaded environments, instead of a lib/python3.13/site-packages directory that does not exist (#416) by @qodelicious and @gaborbernat. Preserve debug and free-threaded flags when selecting Python for a tox environment. Changing either flag recreates the environment, so py313d and py313td do not reuse an interpreter with different build options (#420) by @gaborbernat. Recreate the environment when system_site_packages changes. uv venv --system-site-packages only applies while the environment is being created, so flipping the setting left the old pyvenv.cfg in place and the change had no effect (#418) by @abhishekcpp007 and @gaborbernat. 1.37.5 (2026-11-04) 1.37.4 (2026-11-03) ... (truncated) Commits efb3999 release 1.37.7 0af7c3b 🐛 fix(runner): preserve deps syntax with dependency groups (#424) 0d3a231 🐛 fix(package): install uv packages from package_root (#425) d513c2f 🔧 build(lint): adopt simplint 0.7.1 (#427) 37a229e 🧹 ci: pin shared workflows to 6.7.2 (#426) c5624d6 🧹 ci: pin shared workflows to 6.7.1 (#423) 8244581 👷 ci: run every hook under the cooldown (#422) 3c3714f release 1.37.6 f8e900d ⚡ ci: install only the changelog hook when preparing (#421) 9530aeb 🐛 fix(venv): honor debug Python variants (#420) Additional commits viewable in compare view Updates tox-ansible from 26.9.0 to 26.11.0 Release notes Sourced from tox-ansible's releases. v26.11.0 What's Changed fix(security): update dependencies [SECURITY] by @renovate[bot] in ansible/tox-ansible#610 fix(security): clear Dependabot uv.lock advisories and CodeQL smoke checkout by @sudhirverma in ansible/tox-ansible#611 Full Changelog: ansible/tox-ansible@v26.10.0...v26.11.0 v26.10.0 What's Changed feat(impact_file): add scope-file interface for content-plugin-finder ImpactReport by @shvenkat-rh in ansible/tox-ansible#607 Full Changelog: ansible/tox-ansible@v26.9.0...v26.10.0 Commits df46f6e fix(security): clear Dependabot uv.lock advisories and CodeQL smoke checkout ... 58fd690 fix(security): update dependencies [SECURITY] (#610) 1805ac6 feat(impact_file): add scope-file interface for content-plugin-finder ImpactR... See full diff in compare view Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase. Dependabot commands and options You can trigger Dependabot actions by commenting on this PR: @dependabot rebase will rebase this PR @dependabot recreate will recreate this PR, overwriting any edits that have been made to it @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency @dependabot ignore <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself) @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself) @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself) @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions Reviewed-by: Alina Buzachis Reviewed-by: Rahmanim Benny <brahmani@redhat.com>
SUMMARY
The community team is looking at adding some key exposure scanning to collection docs, and these are being flagged as credential leaks. Add a string of EXAMPLE to access_keys in module docs.
ISSUE TYPE
COMPONENT NAME
ec2_eni, ec2_key