Filter secret CI variable values from logs

This commit is contained in:
Matija Čupić 2018-03-17 12:40:57 +01:00
parent 2b4e5c938b
commit ddeefbdd24
No known key found for this signature in database
GPG key ID: 4BAF84FFACD2E5DE

View file

@ -70,6 +70,7 @@ module Gitlab
# - Webhook URLs (:hook)
# - Sentry DSN (:sentry_dsn)
# - Deploy keys (:key)
# - Secret variable values (:secret_value)
config.filter_parameters += [/token$/, /password/, /secret/]
config.filter_parameters += %i(
certificate
@ -81,6 +82,7 @@ module Gitlab
sentry_dsn
trace
variables
secret_value
)
# Enable escaping HTML in JSON.