mirror of
https://github.com/github/codeql.git
synced 2026-01-29 06:12:58 +01:00
Add SecretInterface as source for cleartext logging query
This commit is contained in:
2
change-notes/2020-12-09-clear-text-logging-source.md
Normal file
2
change-notes/2020-12-09-clear-text-logging-source.md
Normal file
@@ -0,0 +1,2 @@
|
||||
lgtm,codescanning
|
||||
* The query "Clear-text logging of sensitive information" has been improved to recognize `SecretInterface` from `k8s.io/client-go/kubernetes/typed/core/v1` as a source of sensitive data, which may lead to more alerts.
|
||||
@@ -184,6 +184,10 @@ module CleartextLogging {
|
||||
override string describe() { result = "HTTP request headers" }
|
||||
}
|
||||
|
||||
private class KubernetesSecretInterfaceSource extends Source, K8sIoClientGo::SecretInterfaceSource {
|
||||
override string describe() { result = "Kubernetes Secret" }
|
||||
}
|
||||
|
||||
/**
|
||||
* The first element of a split by ' ' or ':', often sanitizing a username/password pair
|
||||
* or the "Method value" syntax used in the HTTP Authorization header.
|
||||
|
||||
Reference in New Issue
Block a user