Skip to content

Commit a24f1a4

Browse files
authored
SONARTEXT-8 [S6290] FP on example keys (#158)
1 parent e2d2486 commit a24f1a4

File tree

1 file changed

+11
-0
lines changed
  • sonar-text-plugin/src/main/resources/org/sonar/plugins/secrets/configuration

1 file changed

+11
-0
lines changed

sonar-text-plugin/src/main/resources/org/sonar/plugins/secrets/configuration/aws.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ provider:
5555
AWS_FECRET_KEY=kHeUAwnSUizTWpSbyGAz4f+As5LshPIjvtpswqGb'
5656
AWS_SECRET_KEY=EXAMPLEKEYCXCgDCUbJq1h7CKwNqnpA1il4MXL+y
5757
containsSecret: false
58+
- text: |
59+
c.S3SecretAccessKey = c.Get("PRECISE_CODE_INTEL_UPLOAD_AWS_SECRET_ACCESS_KEY", "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY", "An AWS secret key associated with a user with access to S3.")
60+
containsSecret: false
5861
detection:
5962
matching:
6063
pattern: "(?is)aws.{0,30}secret.{0,30}\\b([0-9a-z/+]{40})\\b"
@@ -118,6 +121,14 @@ provider:
118121
public static final String KEY = "AKIAIGKECZXA7AEIJLMQBAC";
119122
secretKey := stellar1.SecretKey("QHYAIWM3PQOEKWICDMLVT7REJ24J26QEYJYGB6FJRPTKDULQX");
120123
containsSecret: false
124+
- text: |
125+
boto3.resource(
126+
"s3",
127+
endpoint_url=common_settings.s3_host,
128+
aws_access_key_id="AKIAIOSFODNN7EXAMPLE",
129+
aws_secret_access_key="wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY",
130+
)
131+
containsSecret: false
121132
detection:
122133
matching:
123134
pattern: "\\b((?:AKIA|ASIA)[A-Z0-9]{16})\\b"

0 commit comments

Comments
 (0)