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

Feat/add gitleaks #337

Closed
wants to merge 2 commits into from
Closed

Feat/add gitleaks #337

wants to merge 2 commits into from

Conversation

KraMorK
Copy link
Member

@KraMorK KraMorK commented Sep 17, 2024

Description

Why do we need it, and what problem does it solve?

Why do we need it in the patch release (if we do)?

What is the expected result?

Checklist

  • The code is covered by unit tests.
  • e2e tests passed.
  • Documentation updated according to the changes.
  • Changes were tested in the Kubernetes cluster manually.

Changelog entries

section: <kebab-case of a module name> | <1st level dir in the repo>
type: fix | feature | chore
summary: <ONE-LINE of what effectively changes for a user>
impact: <what to expect for users, possibly MULTI-LINE>, required if impact_level is high ↓
impact_level: default | high | low

#!/usr/bin/env bash

url="https://api.github.com"
token="ghp_CTbv1bPL14y0TtwfPveRYS3Cred4oken"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛑 Gitleaks has detected a secret with rule-id generic-api-key in commit 292ff99.
If this secret is a true positive, please rotate the secret ASAP.

If this secret is a false positive, you can add the fingerprint below to your .gitleaksignore file and commit the change to this branch.

echo 292ff99850d78f6a0683263709bd73072b797468:1.sh:generic-api-key:4 >> .gitleaksignore

@@ -0,0 +1,8 @@
# Тестовый ключ для проверки gitleaks
-----BEGIN OPENSSH PRIVATE KEY-----

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛑 Gitleaks has detected a secret with rule-id private-key in commit 292ff99.
If this secret is a true positive, please rotate the secret ASAP.

If this secret is a false positive, you can add the fingerprint below to your .gitleaksignore file and commit the change to this branch.

echo 292ff99850d78f6a0683263709bd73072b797468:id-rsa:private-key:2 >> .gitleaksignore

{
"credentional": {
"user": "testuser",
"password": "deese0wie2tahph2mooyaiPoorie0Nah"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛑 Gitleaks has detected a secret with rule-id generic-api-key in commit 497aac7.
If this secret is a true positive, please rotate the secret ASAP.

If this secret is a false positive, you can add the fingerprint below to your .gitleaksignore file and commit the change to this branch.

echo 497aac7436a19a6af95dff45a5328402d66bdbcd:1.json:generic-api-key:4 >> .gitleaksignore

{
"credentional": {
"user": "testuser",
"password": "deese0wie2tahph2mooyaiPoorie0Nah"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛑 Gitleaks has detected a secret with rule-id `` in commit 497aac7.
If this secret is a true positive, please rotate the secret ASAP.

If this secret is a false positive, you can add the fingerprint below to your .gitleaksignore file and commit the change to this branch.

echo 497aac7436a19a6af95dff45a5328402d66bdbcd:1.json::4 >> .gitleaksignore

@@ -0,0 +1,4 @@
#!/usr/bin/env bash

var="ewogICJjcmVkZW50aW9uYWwiOiB7CiAgICAidXNlciI6ICJ0ZXN0dXNlciIsCiAgICAicGFzc3dvcmQiOiAiZGVlc2Uwd2llMnRhaHBoMm1vb3lhaVBvb3JpZTBOYWgiCiAgfQp9Cg=="

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛑 Gitleaks has detected a secret with rule-id `` in commit b4414c0.
If this secret is a true positive, please rotate the secret ASAP.

If this secret is a false positive, you can add the fingerprint below to your .gitleaksignore file and commit the change to this branch.

echo b4414c0b3b8bc5968766c45f3861c518bb283dd8:2.sh::3 >> .gitleaksignore

#!/usr/bin/env bash

url="https://api.github.com"
token="ghp_CTbv1bPL14y0TtwfPveRYS3Cred4oken"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛑 Gitleaks has detected a secret with rule-id `` in commit 292ff99.
If this secret is a true positive, please rotate the secret ASAP.

If this secret is a false positive, you can add the fingerprint below to your .gitleaksignore file and commit the change to this branch.

echo 292ff99850d78f6a0683263709bd73072b797468:1.sh::4 >> .gitleaksignore

-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${token}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
${url}/repos/OWNER/REPO/pulls

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛑 Gitleaks has detected a secret with rule-id `` in commit 292ff99.
If this secret is a true positive, please rotate the secret ASAP.

If this secret is a false positive, you can add the fingerprint below to your .gitleaksignore file and commit the change to this branch.

echo 292ff99850d78f6a0683263709bd73072b797468:1.sh::10 >> .gitleaksignore

# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛑 Gitleaks has detected a secret with rule-id `` in commit 4c557ab.
If this secret is a true positive, please rotate the secret ASAP.

If this secret is a false positive, you can add the fingerprint below to your .gitleaksignore file and commit the change to this branch.

echo 4c557ab7aa418e1636a44b2c1f077b5c0bcc8fff:.github/workflow_templates/gitleaks.yml::7 >> .gitleaksignore

@@ -0,0 +1,8 @@
# Тестовый ключ для проверки gitleaks
-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛑 Gitleaks has detected a secret with rule-id `` in commit 292ff99.
If this secret is a true positive, please rotate the secret ASAP.

If this secret is a false positive, you can add the fingerprint below to your .gitleaksignore file and commit the change to this branch.

echo 292ff99850d78f6a0683263709bd73072b797468:id-rsa::3 >> .gitleaksignore

# Тестовый ключ для проверки gitleaks
-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW
QyNTUxOQAAACAv4dpI0AGiD1J2GdUJ0e+tczr2+tbBxe0G8R6wHoJUXgAAAJhdCrO4XQqz

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛑 Gitleaks has detected a secret with rule-id `` in commit 292ff99.
If this secret is a true positive, please rotate the secret ASAP.

If this secret is a false positive, you can add the fingerprint below to your .gitleaksignore file and commit the change to this branch.

echo 292ff99850d78f6a0683263709bd73072b797468:id-rsa::4 >> .gitleaksignore

-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW
QyNTUxOQAAACAv4dpI0AGiD1J2GdUJ0e+tczr2+tbBxe0G8R6wHoJUXgAAAJhdCrO4XQqz
uAAAAAtzc2gtZWQyNTUxOQAAACAv4dpI0AGiD1J2GdUJ0e+tczr2+tbBxe0G8R6wHoJUXg

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛑 Gitleaks has detected a secret with rule-id `` in commit 292ff99.
If this secret is a true positive, please rotate the secret ASAP.

If this secret is a false positive, you can add the fingerprint below to your .gitleaksignore file and commit the change to this branch.

echo 292ff99850d78f6a0683263709bd73072b797468:id-rsa::5 >> .gitleaksignore

b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW
QyNTUxOQAAACAv4dpI0AGiD1J2GdUJ0e+tczr2+tbBxe0G8R6wHoJUXgAAAJhdCrO4XQqz
uAAAAAtzc2gtZWQyNTUxOQAAACAv4dpI0AGiD1J2GdUJ0e+tczr2+tbBxe0G8R6wHoJUXg
AAAECwx4OZhkgo8MhWUhLBr+fobg7Gy93EA3vhkt9iTFxjXi/h2kjQAaIPUnYZ1QnR761z

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛑 Gitleaks has detected a secret with rule-id `` in commit 292ff99.
If this secret is a true positive, please rotate the secret ASAP.

If this secret is a false positive, you can add the fingerprint below to your .gitleaksignore file and commit the change to this branch.

echo 292ff99850d78f6a0683263709bd73072b797468:id-rsa::6 >> .gitleaksignore

QyNTUxOQAAACAv4dpI0AGiD1J2GdUJ0e+tczr2+tbBxe0G8R6wHoJUXgAAAJhdCrO4XQqz
uAAAAAtzc2gtZWQyNTUxOQAAACAv4dpI0AGiD1J2GdUJ0e+tczr2+tbBxe0G8R6wHoJUXg
AAAECwx4OZhkgo8MhWUhLBr+fobg7Gy93EA3vhkt9iTFxjXi/h2kjQAaIPUnYZ1QnR761z
Ovb61sHF7QbxHrAeglReAAAAEXJvb3RAMDY2NTIyNmUxZTRjAQIDBA==

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛑 Gitleaks has detected a secret with rule-id `` in commit 292ff99.
If this secret is a true positive, please rotate the secret ASAP.

If this secret is a false positive, you can add the fingerprint below to your .gitleaksignore file and commit the change to this branch.

echo 292ff99850d78f6a0683263709bd73072b797468:id-rsa::7 >> .gitleaksignore

# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛑 Gitleaks has detected a secret with rule-id `` in commit 4c557ab.
If this secret is a true positive, please rotate the secret ASAP.

If this secret is a false positive, you can add the fingerprint below to your .gitleaksignore file and commit the change to this branch.

echo 4c557ab7aa418e1636a44b2c1f077b5c0bcc8fff:.github/workflows/gitleaks.yml::11 >> .gitleaksignore

dhctl:
fixes:
- summary: Revert ensure required namespaces while resources creation.
pull_request: https://github.com/deckhouse/deckhouse/pull/9715

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛑 Gitleaks has detected a secret with rule-id `` in commit bfe7fef.
If this secret is a true positive, please rotate the secret ASAP.

If this secret is a false positive, you can add the fingerprint below to your .gitleaksignore file and commit the change to this branch.

echo bfe7fefd271b5ab232efba1e3c0a708606202f14:CHANGELOG/CHANGELOG-v1.63.9.yml::4 >> .gitleaksignore

@@ -68,6 +68,7 @@
- **[deckhouse-controller]** Fixed panic when processing terminating deckhouse pod. [#9621](https://github.com/deckhouse/deckhouse/pull/9621)
- **[deckhouse-controller]** Fix panic on invalid module image [#9231](https://github.com/deckhouse/deckhouse/pull/9231)
- **[deckhouse-controller]** Deckhouse update metrics restored. [#9147](https://github.com/deckhouse/deckhouse/pull/9147)
- **[dhctl]** Revert ensure required namespaces while resources creation. [#9715](https://github.com/deckhouse/deckhouse/pull/9715)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛑 Gitleaks has detected a secret with rule-id `` in commit bfe7fef.
If this secret is a true positive, please rotate the secret ASAP.

If this secret is a false positive, you can add the fingerprint below to your .gitleaksignore file and commit the change to this branch.

echo bfe7fefd271b5ab232efba1e3c0a708606202f14:CHANGELOG/CHANGELOG-v1.63.md::71 >> .gitleaksignore

# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛑 Gitleaks has detected a secret with rule-id `` in commit f0cbd9c.
If this secret is a true positive, please rotate the secret ASAP.

If this secret is a false positive, you can add the fingerprint below to your .gitleaksignore file and commit the change to this branch.

echo f0cbd9ca97ee9dff13529f44323a8476cdbb0541:.github/workflows/trufflehog.yml::11 >> .gitleaksignore

# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛑 Gitleaks has detected a secret with rule-id `` in commit f0cbd9c.
If this secret is a true positive, please rotate the secret ASAP.

If this secret is a false positive, you can add the fingerprint below to your .gitleaksignore file and commit the change to this branch.

echo f0cbd9ca97ee9dff13529f44323a8476cdbb0541:.github/workflow_templates/trufflehog.yml::7 >> .gitleaksignore

{
"credentional": {
"user": "testuser",
"password": "deese0wie2tahph2mooyaiPoorie0Nah"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛑 Gitleaks has detected a secret with rule-id generic-api-key in commit b97269e.
If this secret is a true positive, please rotate the secret ASAP.

If this secret is a false positive, you can add the fingerprint below to your .gitleaksignore file and commit the change to this branch.

echo b97269e72c762f870d438dd445c6ad4025bfd38a:1.json:generic-api-key:4 >> .gitleaksignore

#!/usr/bin/env bash

url="https://api.github.com"
token="ghp_CTbv1bPL14y0TtwfPveRYS3Cred4oken"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛑 Gitleaks has detected a secret with rule-id generic-api-key in commit b97269e.
If this secret is a true positive, please rotate the secret ASAP.

If this secret is a false positive, you can add the fingerprint below to your .gitleaksignore file and commit the change to this branch.

echo b97269e72c762f870d438dd445c6ad4025bfd38a:1.sh:generic-api-key:4 >> .gitleaksignore

@@ -0,0 +1,8 @@
# Тестовый ключ для проверки gitleaks
-----BEGIN OPENSSH PRIVATE KEY-----

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛑 Gitleaks has detected a secret with rule-id private-key in commit b97269e.
If this secret is a true positive, please rotate the secret ASAP.

If this secret is a false positive, you can add the fingerprint below to your .gitleaksignore file and commit the change to this branch.

echo b97269e72c762f870d438dd445c6ad4025bfd38a:id-rsa:private-key:2 >> .gitleaksignore

{
"credentional": {
"user": "testuser",
"password": "deese0wie2tahph2mooyaiPoorie0Nah"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛑 Gitleaks has detected a secret with rule-id generic-api-key in commit e81cdf0.
If this secret is a true positive, please rotate the secret ASAP.

If this secret is a false positive, you can add the fingerprint below to your .gitleaksignore file and commit the change to this branch.

echo e81cdf051192833afdd28898cbd1233d2cdc9d92:1-1.json:generic-api-key:4 >> .gitleaksignore

{
"credentional": {
"user": "testuser",
"password": "deese0wie2tahph2mooyaiPoorie0Nah"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛑 Gitleaks has detected a secret with rule-id generic-api-key in commit e81cdf0.
If this secret is a true positive, please rotate the secret ASAP.

If this secret is a false positive, you can add the fingerprint below to your .gitleaksignore file and commit the change to this branch.

echo e81cdf051192833afdd28898cbd1233d2cdc9d92:1.json:generic-api-key:4 >> .gitleaksignore

#!/usr/bin/env bash

url="https://api.github.com"
token="ghp_CTbv1bPL14y0TtwfPveRYS3Cred4oken"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛑 Gitleaks has detected a secret with rule-id generic-api-key in commit e81cdf0.
If this secret is a true positive, please rotate the secret ASAP.

If this secret is a false positive, you can add the fingerprint below to your .gitleaksignore file and commit the change to this branch.

echo e81cdf051192833afdd28898cbd1233d2cdc9d92:1-1.sh:generic-api-key:4 >> .gitleaksignore

#!/usr/bin/env bash

url="https://api.github.com"
token="ghp_CTbv1bPL14y0TtwfPveRYS3Cred4oken"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛑 Gitleaks has detected a secret with rule-id generic-api-key in commit e81cdf0.
If this secret is a true positive, please rotate the secret ASAP.

If this secret is a false positive, you can add the fingerprint below to your .gitleaksignore file and commit the change to this branch.

echo e81cdf051192833afdd28898cbd1233d2cdc9d92:1.sh:generic-api-key:4 >> .gitleaksignore

@@ -0,0 +1,8 @@
# Тестовый ключ для проверки gitleaks
-----BEGIN OPENSSH PRIVATE KEY-----

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛑 Gitleaks has detected a secret with rule-id private-key in commit e81cdf0.
If this secret is a true positive, please rotate the secret ASAP.

If this secret is a false positive, you can add the fingerprint below to your .gitleaksignore file and commit the change to this branch.

echo e81cdf051192833afdd28898cbd1233d2cdc9d92:id-rsa:private-key:2 >> .gitleaksignore

@@ -0,0 +1,8 @@
# Тестовый ключ для проверки gitleaks
-----BEGIN OPENSSH PRIVATE KEY-----

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛑 Gitleaks has detected a secret with rule-id private-key in commit e81cdf0.
If this secret is a true positive, please rotate the secret ASAP.

If this secret is a false positive, you can add the fingerprint below to your .gitleaksignore file and commit the change to this branch.

echo e81cdf051192833afdd28898cbd1233d2cdc9d92:id-rsa-1:private-key:2 >> .gitleaksignore

Signed-off-by: Kirill Kramorov <[email protected]>
Signed-off-by: Kirill Kramorov <[email protected]>
@KraMorK KraMorK closed this Sep 19, 2024
@KraMorK KraMorK deleted the feat/add-gitleaks branch September 19, 2024 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant