Filter secret CI variable values from logs
This commit is contained in:
parent
2b4e5c938b
commit
ddeefbdd24
1 changed files with 2 additions and 0 deletions
|
@ -70,6 +70,7 @@ module Gitlab
|
||||||
# - Webhook URLs (:hook)
|
# - Webhook URLs (:hook)
|
||||||
# - Sentry DSN (:sentry_dsn)
|
# - Sentry DSN (:sentry_dsn)
|
||||||
# - Deploy keys (:key)
|
# - Deploy keys (:key)
|
||||||
|
# - Secret variable values (:secret_value)
|
||||||
config.filter_parameters += [/token$/, /password/, /secret/]
|
config.filter_parameters += [/token$/, /password/, /secret/]
|
||||||
config.filter_parameters += %i(
|
config.filter_parameters += %i(
|
||||||
certificate
|
certificate
|
||||||
|
@ -81,6 +82,7 @@ module Gitlab
|
||||||
sentry_dsn
|
sentry_dsn
|
||||||
trace
|
trace
|
||||||
variables
|
variables
|
||||||
|
secret_value
|
||||||
)
|
)
|
||||||
|
|
||||||
# Enable escaping HTML in JSON.
|
# Enable escaping HTML in JSON.
|
||||||
|
|
Loading…
Reference in a new issue