Skip to content

Commit

Permalink
CSCTTV-3921 Modify Keycloak Dockerfile (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarkikos authored Dec 18, 2024
1 parent f2e84d0 commit 525c49d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion keycloak/development/Dockerfile-dev
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ FROM --platform=linux/amd64 keycloak/keycloak:26.0.7
# Enable SHA1 to prevent JDBC error with SQL Server: "Algorithm constraints check failed on signature algorithm SHA1withRSA"
# https://github.com/keycloak/keycloak/issues/19185
USER root
RUN sed -i "s|MD2, SHA1, MD5|MD2, MD5 |g" /etc/crypto-policies/back-ends/java.config
# Remove "SHA1" from disabledAlgorithms
RUN sed -i "s|, SHA1,|,|g" /etc/crypto-policies/back-ends/java.config
# Remove "SHA1withRSA" from disabledAlgorithms
RUN sed -i "s|, SHA1withRSA,|,|g" /etc/crypto-policies/back-ends/java.config

COPY --from=builder /opt/keycloak/ /opt/keycloak/
WORKDIR /opt/keycloak
Expand Down
5 changes: 4 additions & 1 deletion keycloak/openshift/rahti2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ FROM keycloak/keycloak:26.0.7
# Enable SHA1 to prevent JDBC error with SQL Server: "Algorithm constraints check failed on signature algorithm SHA1withRSA"
# https://github.com/keycloak/keycloak/issues/19185
USER root
RUN sed -i "s|MD2, SHA1, MD5|MD2, MD5 |g" /etc/crypto-policies/back-ends/java.config
# Remove "SHA1" from disabledAlgorithms
RUN sed -i "s|, SHA1,|,|g" /etc/crypto-policies/back-ends/java.config
# Remove "SHA1withRSA" from disabledAlgorithms
RUN sed -i "s|, SHA1withRSA,|,|g" /etc/crypto-policies/back-ends/java.config

COPY --from=builder /opt/keycloak/ /opt/keycloak/
WORKDIR /opt/keycloak
Expand Down

0 comments on commit 525c49d

Please sign in to comment.