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 # Enable error reporting
error_reporting: error_reporting:
enabled: false enabled: false
send_pii: false
# Log level used by web and worker # Log level used by web and worker
# Can be either debug, info, warning, error # Can be either debug, info, warning, error
log_level: warning log_level: warning

View File

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

View File

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

View File

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

View File

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