Skip to content

Commit

Permalink
Add ca_certs option for sentry client
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Apr 16, 2023
1 parent 629655d commit 0542ebf
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 0 deletions.
12 changes: 12 additions & 0 deletions doc/source/admin/galaxy_options.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2927,6 +2927,18 @@
:Type: float


~~~~~~~~~~~~~~~~~~~
``sentry_ca_certs``
~~~~~~~~~~~~~~~~~~~

:Description:
Use this option to provide the path to location of the CA
(Certificate Authority) certificate file if the sentry server uses
a self-signed certificate.
:Default: ``None``
:Type: str


~~~~~~~~~~~~~~~
``statsd_host``
~~~~~~~~~~~~~~~
Expand Down
1 change: 1 addition & 0 deletions lib/galaxy/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ def configure_sentry_client(self):
release=f"{self.config.version_major}.{self.config.version_minor}",
integrations=[sentry_logging],
traces_sample_rate=self.config.sentry_traces_sample_rate,
ca_certs=self.config.sentry_ca_certs,
)


Expand Down
5 changes: 5 additions & 0 deletions lib/galaxy/config/sample/galaxy.yml.sample
Original file line number Diff line number Diff line change
Expand Up @@ -1675,6 +1675,11 @@ galaxy:
# to Sentry. A value higher than 0 is required to analyze performance.
#sentry_traces_sample_rate: 0.0

# Use this option to provide the path to location of the CA
# (Certificate Authority) certificate file if the sentry server uses a
# self-signed certificate.
#sentry_ca_certs: null

# Log to statsd Statsd is an external statistics aggregator
# (https://github.com/etsy/statsd) Enabling the following options will
# cause galaxy to log request timing and other statistics to the
Expand Down
5 changes: 5 additions & 0 deletions lib/galaxy/config/sample/tool_shed.yml.sample
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,11 @@ tool_shed:
# to Sentry. A value higher than 0 is required to analyze performance.
#sentry_traces_sample_rate: 0.0

# Use this option to provide the path to location of the CA
# (Certificate Authority) certificate file if the sentry server uses a
# self-signed certificate.
#sentry_ca_certs: null

# Galaxy Session Timeout This provides a timeout (in minutes) after
# which a user will have to log back in. A duration of 0 disables this
# feature.
Expand Down
7 changes: 7 additions & 0 deletions lib/galaxy/config/schemas/config_schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2117,6 +2117,13 @@ mapping:
will have that percentage chance of being sent to Sentry. A value higher than 0
is required to analyze performance.
sentry_ca_certs:
type: str
required: False
desc: |
Use this option to provide the path to location of the CA (Certificate Authority)
certificate file if the sentry server uses a self-signed certificate.
statsd_host:
type: str
required: false
Expand Down
7 changes: 7 additions & 0 deletions lib/galaxy/config/schemas/tool_shed_config_schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,13 @@ mapping:
will have that percentage chance of being sent to Sentry. A value higher than 0
is required to analyze performance.
sentry_ca_certs:
type: str
required: False
desc: |
Use this option to provide the path to location of the CA (Certificate Authority)
certificate file if the sentry server uses a self-signed certificate.
session_duration:
type: int
default: 0
Expand Down

0 comments on commit 0542ebf

Please sign in to comment.