Skip to content

Commit

Permalink
fix ssl config map
Browse files Browse the repository at this point in the history
  • Loading branch information
Vruttant1403 committed Apr 29, 2024
1 parent f9cf9ce commit 61c3418
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/ziggurat/config.clj
Original file line number Diff line number Diff line change
Expand Up @@ -239,16 +239,20 @@
{:enabled true
:ssl-keystore-location <>
:ssl-keystore-password <>
:mechanism <>
:protocol <>
{:jaas {:username <>
:password <>
:mechanism <>
:protocol <>}}}
:login-module <>}}}
"
(let [ssl-configs-enabled (:enabled ssl-config-map)
jaas-config (get ssl-config-map :jaas)]
jaas-config (get ssl-config-map :jaas)
mechanism (get ssl-config-map :mechanism)
protocol (get ssl-config-map :protocol)]
(if (true? ssl-configs-enabled)
(as-> properties pr
(add-jaas-properties pr jaas-config)
(add-sasl-properties pr mechanism protocol)
(reduce-kv set-property-fn pr ssl-config-map))
properties)))

Expand Down

0 comments on commit 61c3418

Please sign in to comment.