Skip to content

Commit

Permalink
Update db test secrets
Browse files Browse the repository at this point in the history
This commit will allow the test credentials for the postgress and mysql databases to pass prodsec scanning

Signed-off-by: tonyxrmdavidson <[email protected]>
  • Loading branch information
tonyxrmdavidson committed Jul 1, 2024
1 parent b97384a commit 1a27b39
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 8 deletions.
12 changes: 12 additions & 0 deletions .gitleaks.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[allowlist]
description = "Global Allowlist"

# Ignore based on any subset of the line
regexes = [

# Ignore specific database password
'''database-password\s*:\s*"The BlurstOfTimes"''',

# Ignore specific database user
'''database-user\s*:\s*"mlmduser"'''
]
4 changes: 2 additions & 2 deletions openshift-ci/resources/model-registry-operator/mysql-db.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ items:
name: model-registry-db
stringData:
database-name: "model_registry"
database-password: "TheBlurstOfTimes"
database-user: "mlmduser"
database-password: "TheBlurstOfTimes" # notsecret
database-user: "mlmduser" # notsecret
kind: List
metadata: {}
4 changes: 2 additions & 2 deletions openshift-ci/resources/samples/mysql/mysql-db.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ items:
name: model-registry-db
stringData:
database-name: "model_registry"
database-password: "TheBlurstOfTimes"
database-user: "mlmduser"
database-password: "TheBlurstOfTimes" # notsecret
database-user: "mlmduser" # notsecret
kind: List
metadata: {}
4 changes: 2 additions & 2 deletions openshift-ci/resources/samples/postgres/postgres-db.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ items:
name: model-registry-db
stringData:
database-name: "model-registry"
database-password: "TheBlurstOfTimes"
database-user: "mlmduser"
database-password: "TheBlurstOfTimes" # notsecret
database-user: "mlmduser" # notsecret
kind: List
metadata: {}
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ items:
name: model-registry-db
stringData:
database-name: "model-registry"
database-password: "TheBlurstOfTimes"
database-user: "mlmduser"
database-password: "TheBlurstOfTimes" # notsecret
database-user: "mlmduser" # notsecret
kind: List
metadata: {}

0 comments on commit 1a27b39

Please sign in to comment.