Skip to content

Commit

Permalink
Use client certificates for Candlepin events
Browse files Browse the repository at this point in the history
Signed-off-by: Eric D. Helms <[email protected]>
  • Loading branch information
ehelms committed Feb 28, 2025
1 parent d8dc262 commit a0de29d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/katello/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,11 @@ class Engine < ::Rails::Engine
Katello::CandlepinEventListener.client_factory = proc do
Katello::Messaging::Connection.create(
connection_class: Katello::Messaging::StompConnection,
settings: SETTINGS[:katello][:candlepin_events]
settings: SETTINGS[:katello][:candlepin_events].deep_merge({
:ssl_key_file => Setting[:ssl_priv_key],

Check failure on line 138 in lib/katello/engine.rb

View workflow job for this annotation

GitHub Actions / Rubocop / Rubocop

Layout/FirstHashElementIndentation: Use 2 spaces for indentation in a hash, relative to the first position after the preceding left parenthesis.
:ssl_cert_file => Setting[:ssl_certificate],
:ssl_ca_file => Setting[:ssl_ca_file],
})

Check failure on line 141 in lib/katello/engine.rb

View workflow job for this annotation

GitHub Actions / Rubocop / Rubocop

Layout/FirstHashElementIndentation: Indent the right brace the same as the first position after the preceding left parenthesis.
)
end

Expand Down

0 comments on commit a0de29d

Please sign in to comment.