Skip to content

Commit 5bf8a00

Browse files
committed
Update saml-idp image using simplesamlphp 2.2.x
1 parent 167100d commit 5bf8a00

File tree

4 files changed

+14
-9
lines changed

4 files changed

+14
-9
lines changed

misc/build.mk

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,8 @@ misc-bake-test: misc-bake-all ## CI test for Misc images
2424
PHONY += misc-bake-localsolr
2525
misc-bake-localsolr: MISC_BAKE_FLAGS := solr --pull --progress plain --no-cache --push
2626
misc-bake-localsolr: misc-bake-all ## Bake all Misc images locally
27+
28+
PHONY += misc-bake-idp
29+
#misc-bake-idp: MISC_BAKE_FLAGS := saml-idp --pull --progress plain --no-cache --load --set *.platform=linux/$(CURRENT_ARCH)
30+
misc-bake-idp: MISC_BAKE_FLAGS := saml-idp --pull --progress plain --no-cache --push
31+
misc-bake-idp: misc-bake-all ## Bake all Misc images locally

misc/docker-bake.hcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
variable ALPINE_VERSION {}
22
variable SIMPLESAMLPHP_VERSION {
3-
default = "2.1.5"
3+
default = "2.2.1"
44
}
55

66
group "default" {

misc/saml-idp/Dockerfile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
FROM alpine as simplesamlphp
22

33
ARG SIMPLESAMLPHP_VERSION
4-
#ARG SIMPLESAMLPHP_URL=https://github.com/simplesamlphp/simplesamlphp/releases/download/v${SIMPLESAMLPHP_VERSION}/simplesamlphp-${SIMPLESAMLPHP_VERSION}.tar.gz
5-
# After 2.1.0
6-
ARG SIMPLESAMLPHP_URL=https://github.com/simplesamlphp/simplesamlphp/releases/download/v${SIMPLESAMLPHP_VERSION}/simplesamlphp-${SIMPLESAMLPHP_VERSION}.tar.gz
4+
ARG SIMPLESAMLPHP_URL=https://github.com/simplesamlphp/simplesamlphp/releases/download/v${SIMPLESAMLPHP_VERSION}/simplesamlphp-${SIMPLESAMLPHP_VERSION}-slim.tar.gz
75

86
RUN apk --update --no-cache add curl
97
RUN curl -s -L -o /tmp/simplesamlphp.tar.gz ${SIMPLESAMLPHP_URL}
@@ -21,8 +19,6 @@ RUN apk --update --no-cache add nginx && \
2119
# Copy SimpleSAMLphp
2220
COPY --from=simplesamlphp --chown=www-data /home/simplesamlphp /app/simplesamlphp
2321

24-
RUN cd /app/simplesamlphp && php bin/translations translations:update:binary
25-
2622
# Copy configuration files and scripts
2723
COPY --chown=www-data files/ /
2824

misc/saml-idp/files/app/simplesamlphp/config/config.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,19 @@
5858
/*
5959
* The following settings are *filesystem paths* which define where
6060
* SimpleSAMLphp can find or write the following things:
61+
* - 'cachedir': Where SimpleSAMLphp can write its cache.
6162
* - 'loggingdir': Where to write logs. MUST be set to NULL when using a logging
6263
* handler other than `file`.
6364
* - 'datadir': Storage of general data.
6465
* - 'tempdir': Saving temporary files. SimpleSAMLphp will attempt to create
65-
* this directory if it doesn't exist.
66+
* this directory if it doesn't exist. DEPRECATED - replaced by cachedir.
6667
* When specified as a relative path, this is relative to the SimpleSAMLphp
6768
* root directory.
6869
*/
70+
'cachedir' => '/var/cache/simplesamlphp',
6971
//'loggingdir' => '/var/log/',
7072
//'datadir' => '/var/data/',
71-
'tempdir' => '/tmp/simplesaml',
73+
//'tempdir' => '/tmp/simplesamlphp',
7274

7375
/*
7476
* Certificate and key material can be loaded from different possible
@@ -625,8 +627,10 @@
625627
* Set this to TRUE if the user only accesses your service
626628
* through https. If the user can access the service through
627629
* both http and https, this must be set to FALSE.
630+
*
631+
* If unset, SimpleSAMLphp will try to automatically determine the right value
628632
*/
629-
'session.cookie.secure' => true,
633+
//'session.cookie.secure' => true,
630634

631635
/*
632636
* Set the SameSite attribute in the cookie.

0 commit comments

Comments
 (0)