root: when error_reporting is enabled, don't sent pii data by default

This commit is contained in:
Jens Langhammer 2020-08-20 22:19:49 +02:00
parent e2aeb96a6a
commit f7c629ec9b
5 changed files with 6 additions and 1 deletions

View file

@ -20,6 +20,7 @@ config:
# Enable error reporting
error_reporting:
enabled: false
send_pii: false
# Log level used by web and worker
# Can be either debug, info, warning, error
log_level: warning

View file

@ -22,4 +22,5 @@ data:
error_reporting:
enabled: {{ .Values.config.error_reporting.enabled }}
environment: {{ .Values.config.error_reporting.environment }}
send_pii: {{ .Values.config.error_reporting.send_pii }}
log_level: "{{ .Values.config.log_level }}"

View file

@ -13,6 +13,7 @@ config:
error_reporting:
enabled: false
environment: customer
send_pii: false
# Log level used by web and worker
# Can be either debug, info, warning, error
log_level: warning

View file

@ -18,6 +18,7 @@ log_level: warning
error_reporting:
enabled: false
environment: customer
send_pii: false
passbook:
# Optionally add links to the footer on the login page

View file

@ -275,11 +275,12 @@ if not DEBUG and _ERROR_REPORTING:
sentry_init(
dsn="https://33cdbcb23f8b436dbe0ee06847410b67@sentry.beryju.org/3",
integrations=[DjangoIntegration(), CeleryIntegration()],
send_default_pii=True,
before_send=before_send,
release="passbook@%s" % __version__,
traces_sample_rate=1.0,
environment=CONFIG.y("error_reporting.environment", "customer"),
transaction_style="function_name",
send_default_pii=CONFIG.y_bool("error_reporting.send_pii", False),
)