mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-24 02:04:04 +08:00
read policy options
This commit is contained in:
@@ -52,6 +52,14 @@ class Configuration(object):
|
||||
# Error logging with sentry
|
||||
self.sentry_dsn = kwargs.get('sentry_dsn', None)
|
||||
|
||||
# Security/Policy Compliance
|
||||
self.redact_username_in_logs = False
|
||||
self.redact_email_in_job_name = False
|
||||
self.gdpr_compliance_mode = string_as_bool(kwargs.get("gdpr_compliance_mode", False))
|
||||
if self.gdpr_compliance_mode:
|
||||
self.redact_username_in_logs = True
|
||||
self.redact_email_in_job_name = True
|
||||
|
||||
def get(self, key, default):
|
||||
return self.config_dict.get(key, default)
|
||||
|
||||
|
||||
@@ -142,6 +142,14 @@ class Configuration(object):
|
||||
self.citation_cache_lock_dir = resolve_path(kwargs.get("citation_cache_lock_dir", "database/tool_shed_citations/locks"), self.root)
|
||||
self.password_expiration_period = timedelta(days=int(kwargs.get("password_expiration_period", 0)))
|
||||
|
||||
# Security/Policy Compliance
|
||||
self.redact_username_in_logs = False
|
||||
self.redact_email_in_job_name = False
|
||||
self.gdpr_compliance_mode = string_as_bool(kwargs.get("gdpr_compliance_mode", False))
|
||||
if self.gdpr_compliance_mode:
|
||||
self.redact_username_in_logs = True
|
||||
self.redact_email_in_job_name = True
|
||||
|
||||
@property
|
||||
def shed_tool_data_path(self):
|
||||
return self.tool_data_path
|
||||
|
||||
Reference in New Issue
Block a user