Skip to content

Commit

Permalink
feat: Add support for custom root certificates in Java keystore
Browse files Browse the repository at this point in the history
  • Loading branch information
patsevanton committed Nov 23, 2024
1 parent a581626 commit e016869
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,12 @@ RUN apk add --no-cache \
tzdata
RUN addgroup -S kafkaui && adduser -S kafkaui -G kafkaui

# creating folder for dynamic config usage (certificates uploads, etc)
RUN mkdir -p /etc/kafkaui/certs

RUN for cert in /etc/kafkaui/certs/*.crt; do \
keytool -import -noprompt -trustcacerts -alias $(basename $cert .crt) -file $cert -keystore $JAVA_HOME/lib/security/cacerts -storepass changeit; \
done

# creating folder for dynamic config usage (certificates uploads, etc)
RUN mkdir /etc/kafkaui/
RUN chown kafkaui /etc/kafkaui

USER kafkaui
Expand Down

0 comments on commit e016869

Please sign in to comment.