Skip to content

Commit

Permalink
STOMP collector and output bots code: add security-related comments
Browse files Browse the repository at this point in the history
  • Loading branch information
zuo committed Sep 14, 2023
1 parent 421fcaf commit 25ca767
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions intelmq/bots/collectors/stomp/collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@ def init(self):
raise MissingDependencyError("stomp", version="4.1.8",
installed=stomp.__version__)

# Note: the `ca_certs` SSL parameter must be set, otherwise the
# `stomp.py`'s machinery would disable certificate verification!
ssl_params = dict(ca_certs=self.ssl_ca_certificate)

conn_params = dict()
if self.auth_by_ssl_client_certificate:
ssl_params.update(
Expand Down
3 changes: 3 additions & 0 deletions intelmq/bots/outputs/stomp/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ def init(self):
raise MissingDependencyError("stomp", version="4.1.8",
installed=stomp.__version__)

# Note: the `ca_certs` SSL parameter must be set, otherwise the
# `stomp.py`'s machinery would disable certificate verification!
ssl_params = dict(ca_certs=self.ssl_ca_certificate)

conn_params = dict()
if self.auth_by_ssl_client_certificate:
ssl_params.update(
Expand Down

0 comments on commit 25ca767

Please sign in to comment.