Skip to content

Commit

Permalink
fix ssl config map
Browse files Browse the repository at this point in the history
  • Loading branch information
Vruttant1403 authored and rootxakash committed Oct 10, 2024
1 parent c6e4d9b commit c48c97c
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 c48c97c

Please sign in to comment.