Skip to content

Commit

Permalink
fix(docker-jans-auth): missing permissions on /app/templates (#10641)
Browse files Browse the repository at this point in the history
* fix(docker-jans-auth): fix missing permissions on /app/templates

Signed-off-by: moabu <[email protected]>

* fix(docker): fix missing permissions on /app/templates

Signed-off-by: moabu <[email protected]>

---------

Signed-off-by: moabu <[email protected]>
  • Loading branch information
moabu authored Jan 15, 2025
1 parent db38009 commit f1b3ca2
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 8 deletions.
3 changes: 2 additions & 1 deletion docker-jans-auth-server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,8 @@ RUN chmod -R g=u ${JETTY_BASE}/jans-auth/custom \
&& chown -R 1000:0 /opt/prometheus \
&& chown 1000:0 ${JETTY_BASE}/jans-auth/webapps/jans-auth.xml \
&& chown -R 1000:0 ${JETTY_HOME}/temp \
&& chown -R 1000:0 ${JETTY_BASE}/jans-auth/_libs
&& chown -R 1000:0 ${JETTY_BASE}/jans-auth/_libs \
&& chown -R 1000:0 /app/templates

USER 1000

Expand Down
3 changes: 2 additions & 1 deletion docker-jans-fido2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,8 @@ RUN chmod 664 ${JETTY_BASE}/jans-fido2/resources/log4j2.xml \
&& chown -R 1000:0 /usr/share/java \
&& chown -R 1000:0 /opt/prometheus \
&& chown 1000:0 ${JETTY_BASE}/jans-fido2/webapps/jans-fido2.xml \
&& chown -R 1000:0 ${JETTY_HOME}/temp
&& chown -R 1000:0 ${JETTY_HOME}/temp \
&& chown -R 1000:0 /app/templates

USER 1000

Expand Down
3 changes: 2 additions & 1 deletion docker-jans-kc-scheduler/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ RUN adduser -s /bin/sh -h /home/1000 -D -G root -u 1000 jans
RUN chmod -R g=u /etc/certs \
&& chmod -R g=u /etc/jans \
&& chmod 664 /opt/java/lib/security/cacerts \
&& chown -R 1000:0 /opt/kc-scheduler
&& chown -R 1000:0 /opt/kc-scheduler \
&& chown -R 1000:0 /app/templates

USER 1000

Expand Down
3 changes: 2 additions & 1 deletion docker-jans-keycloak-link/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,8 @@ RUN chmod 664 ${JETTY_BASE}/jans-keycloak-link/resources/log4j2.xml \
&& chown -R 1000:0 /opt/prometheus \
&& chown 1000:0 ${JETTY_BASE}/jans-keycloak-link/webapps/jans-keycloak-link.xml \
&& chown -R 1000:0 /var/jans/cr-snapshots \
&& chown -R 1000:0 ${JETTY_HOME}/temp
&& chown -R 1000:0 ${JETTY_HOME}/temp \
&& chown -R 1000:0 /app/templates

USER 1000

Expand Down
3 changes: 2 additions & 1 deletion docker-jans-link/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,8 @@ RUN chmod 664 ${JETTY_BASE}/jans-link/resources/log4j2.xml \
&& chown -R 1000:0 /opt/prometheus \
&& chown 1000:0 ${JETTY_BASE}/jans-link/webapps/jans-link.xml \
&& chown -R 1000:0 /var/jans/link-snapshots \
&& chown -R 1000:0 ${JETTY_HOME}/temp
&& chown -R 1000:0 ${JETTY_HOME}/temp \
&& chown -R 1000:0 /app/templates

USER 1000

Expand Down
3 changes: 2 additions & 1 deletion docker-jans-persistence-loader/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,8 @@ RUN adduser -s /bin/sh -h /home/1000 -D -G root -u 1000 1000
# adjust ownership and permission
RUN chmod -R g=u /app/custom_ldif \
&& chmod -R g=u /etc/certs \
&& chmod -R g=u /etc/jans
&& chmod -R g=u /etc/jans \
&& chown -R 1000:0 /app/templates

USER 1000

Expand Down
3 changes: 2 additions & 1 deletion docker-jans-saml/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,8 @@ RUN chmod -R g=u /etc/certs \
&& chown -R 1000:0 /opt/idp \
&& chown -R 1000:0 /usr/share/java \
&& chown -R 1000:0 /opt/keycloak/logs \
&& chown -R 1000:0 /opt/keycloak/conf
&& chown -R 1000:0 /opt/keycloak/conf \
&& chown -R 1000:0 /app/templates

USER 1000

Expand Down
3 changes: 2 additions & 1 deletion docker-jans-scim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,8 @@ RUN chmod 664 ${JETTY_BASE}/jans-scim/resources/log4j2.xml \
&& chown -R 1000:0 /usr/share/java \
&& chown -R 1000:0 /opt/prometheus \
&& chown 1000:0 ${JETTY_BASE}/jans-scim/webapps/jans-scim.xml \
&& chown -R 1000:0 ${JETTY_HOME}/temp
&& chown -R 1000:0 ${JETTY_HOME}/temp \
&& chown -R 1000:0 /app/templates

USER 1000

Expand Down

0 comments on commit f1b3ca2

Please sign in to comment.