Skip to content

Commit

Permalink
try to avoid secret leak scanning false positive
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores committed Apr 12, 2024
1 parent 701b91d commit 483eacb
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions internal/test/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -877,8 +877,8 @@ func (r *TestResources) NewDatabaseSecret() *corev1.Secret {
Namespace: r.Namespace,
},
StringData: map[string]string{
"CONNECTION_KEY": "credentials_database",
"ENCRYPTION_KEY": "encryption_key",
"CONNECTION_KEY": "credentials_database", // notsecret
"ENCRYPTION_KEY": "encryption_key", // notsecret
},
}
}
Expand All @@ -890,7 +890,7 @@ func (r *TestResources) NewStorageSecret() *corev1.Secret {
Namespace: r.Namespace,
},
StringData: map[string]string{
"SECRET_KEY": "object_storage",
"SECRET_KEY": "object_storage", // notsecret
},
}
}
Expand All @@ -902,8 +902,8 @@ func (r *TestResources) OtherDatabaseSecret() *corev1.Secret {
Namespace: r.Namespace,
},
StringData: map[string]string{
"CONNECTION_KEY": "other-pass",
"ENCRYPTION_KEY": "other-key",
"CONNECTION_KEY": "other-pass", // notsecret
"ENCRYPTION_KEY": "other-key", // notsecret
},
}
}
Expand All @@ -915,7 +915,7 @@ func (r *TestResources) NewKeystoreSecret() *corev1.Secret {
Namespace: r.Namespace,
},
StringData: map[string]string{
"KEYSTORE_PASS": "keystore",
"KEYSTORE_PASS": "keystore", // notsecret
},
}
}
Expand All @@ -927,8 +927,8 @@ func (r *TestResources) OtherJMXSecret() *corev1.Secret {
Namespace: r.Namespace,
},
StringData: map[string]string{
"CRYOSTAT_RJMX_USER": "not-cryostat",
"CRYOSTAT_RJMX_PASS": "other-pass",
"CRYOSTAT_RJMX_USER": "not-cryostat", // notsecret
"CRYOSTAT_RJMX_PASS": "other-pass", // notsecret
},
}
}
Expand Down

0 comments on commit 483eacb

Please sign in to comment.