-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New docker image, dockerfile and cie integration #55
Merged
Merged
Changes from all commits
Commits
Show all changes
101 commits
Select commit
Hold shift + click to select a range
47d60e1
CIE Auth example
MdreW 4905227
Aggiunto test metadata CIE
MdreW 8a2e1fd
Agginugto backend cie nella configurazione di default
MdreW a2e6b88
Aggiunta descrizione CIE e sostituito br con margine via CSS
MdreW c6bf884
Aggiunto test metadata ficep
MdreW e23ee16
Config with enviroments and added utility script
MdreW aca34eb
added "SATOSA_" prefix for proxy_conf.yaml
MdreW 3ee22b7
Merge branch 'italia:master' into master
MdreW c2fcc5b
Merge branch 'master' of github.com:IDEM-GARR-AAI/Satosa-Saml2Spid
MdreW 00224fa
Fix name variable
MdreW 8e70fd7
Changed delimiter for not skip slash
MdreW 2b9eea4
Aggiunta directory con Satosa-Saml2Spid Docker (Image e Compose) para…
scolagreco 8ee0734
All configuration for public entity from env
MdreW eec4b44
Aggiornato con le ultime modifiche fatte.
scolagreco 3c0ca44
Merge pull request #1 from IDEM-GARR-AAI/docker
MdreW a928ff0
Configurazioni senza ENV
MdreW c3e47b4
installazione yq
MdreW f89ee5d
configurazioni con variabili tramite docker-run
MdreW 60e7772
fix comment
MdreW 156adac
In Satosa-Saml2Spid-Docker: Aggiornato Dockerfile e modificati file i…
scolagreco f7331bf
now update saml2_frontend.yaml with env
MdreW a82072b
now update saml2_frontend.yaml with env
MdreW 36fee25
fixed yaml indentation
MdreW 4c81f65
Merge branch 'master' of github.com:IDEM-GARR-AAI/Satosa-Saml2Spid
MdreW 7800a7c
Aggiornato demo run in compose
MdreW f58049e
default logger su console
MdreW f4508ad
docker su http (nginx farà da proxy)
MdreW c1ec01f
Aggiunte variabili $SATOSA_MONGOBD_USERNAME e $SATOSA_MONGODB_PASSWOR…
MdreW 36ffe33
Unificate le chiavi per encryptio_key e salt tramite variabile
MdreW cec7019
Rimossi file obsoleti, Configurazione spostata in demo-run.sh
MdreW 8b4de2d
demo-run.sh spostato in example e generalizzato per chi non utilizza …
MdreW fbf2914
Aggiunta variabile SATOSA_BY_SOCKER per eseguire soltanto satosa in http
MdreW 3920408
demo configurazione nginx
MdreW 76f7db2
Corretto test per funzione di sostituzione
MdreW a024684
Rinominato demo-run.sh in run.sh. Modificate righe update_yaml per va…
scolagreco 0bcc285
Nel Dockerfile si parte dall'immagine ufficiale e si configura Europe…
scolagreco eb5eb9a
Spostato e rinominato vhost.conf. Usata la struttura di vhost.conf co…
scolagreco 6b0c3c9
Nel Dockerfile messa ENV SATOSA_DISCO_SRV con il solito valore di def…
scolagreco b897fcd
In docker-compose.yml modificata SATOSA_UNKNOW_ERROR_REDIRECT_PAGE e …
scolagreco 05608a1
Riportate nei file della rirectory example le modifiche fatte ai file…
scolagreco 5bdc78a
Aggiornato run.sh in Satosa-Saml2Spid-Docker/example e example con le…
scolagreco 6e30a18
Spostati Dockerfile (agginti i copy dei singoli file), directory exam…
scolagreco f73a96d
Controllata presenza di tutte gli enviroments, reinseriti in ordine a…
MdreW 2da54c7
Nel docker-compose.yml, nel servizio satosa-nginx ho messo come defau…
scolagreco 584aa08
Caricati crt e key di default (Certificato self-signed per localhost.…
scolagreco 3445466
Aggiornate label al nuovo formato.
scolagreco 45fc252
Ripulito da docker-compose e Dockerfile precedenti e non più utilizzati.
scolagreco 1eace38
Removed unused ENV
MdreW 8d29e8e
fixed some example value
MdreW 459ccbc
fixed telephone example value
MdreW 49f32e3
Merge branch 'italia:master' into master
MdreW 7bc22b1
unambiguous telephone_number
MdreW ac2707a
Removed unused fix
MdreW 5cd0699
Corretto errore nel path per sostituzione valori.
scolagreco 47caa9b
Test variabili uniche mongodb e loro effettiva sostituzione.
scolagreco d712c17
add enviroments to readme
MdreW 5814de6
updated enviroments
MdreW e9e8232
fixed default value
MdreW 46ad8b1
Rinominato mongodb.env in .env, in questo modo le varibili vengono ut…
scolagreco 68af8b9
Modificati nomi env generiche di mongo per non incorrere nel seguente…
scolagreco d038c2a
Corretto il link al README di mongo.
scolagreco 9abcf71
Start docker image istruction
MdreW c0db095
Update README
MdreW e5c6b2d
Update README
MdreW 52bbaa5
Modificato init-mongo, cambiato da .js a .sh e modificato per utilizz…
scolagreco 70e2129
Merge branch 'master' of github.com:IDEM-GARR-AAI/Satosa-Saml2Spid
scolagreco 2345768
Utilizzate le variabili MONGO_DBUSER e MONGO_DBPASSWORD anche nell'en…
scolagreco d37af83
Update README.mongo.md
scolagreco 8af63c9
Merge pull request #2 from isprambiente/cie
MdreW d8b1bdf
metadata updated, added TeamSystem S.p.A
MdreW a986948
cie and spid/teamsystem to touting
MdreW 5071c7a
removed ISPRA reference
MdreW 5f2505c
fixed FICEP URL
MdreW a6b3c5a
try to upgrade actions
MdreW 125833b
test with all active python version
MdreW 4bf8886
update button with current spid logos
MdreW da4e130
updated discovery page with new SPID, CIE and IDEM
MdreW 65bab33
Added MDQ server for SAML / IDEM
MdreW d131a52
CIE Updated by ENV
MdreW b51f201
ENV CONFIG for CIE
MdreW 46e5438
fixed mdq syntax
MdreW 620f6c3
realistic example data for test
MdreW e5a8fb8
Rinominato djangosaml2_sp in djangosaml2_sp.xml . Aggiunto .dockerign…
scolagreco 19ba7a9
Corretto errore inserito nell'ultimo commit.
scolagreco ab569d2
Updated cert expired
MdreW 938ff7a
Merge branch 'master' of github.com:italia/Satosa-Saml2Spid
MdreW 961c735
Eliminati file doppioni usati nella composizione. Fatto script per la…
scolagreco 2a6f369
Usato anche per i certificati di nginx il volume creato al primo avvio.
scolagreco ffd8648
Creata funzione per la creazione dei volumi in compose-Satosa-Saml2Sp…
scolagreco e78d015
Tolte le vecchie istruzioni che erano commentate in compose-Satosa-Sa…
scolagreco 5202bf1
Creata funzione per la cancellazione dei volumi in compose-Satosa-Sam…
scolagreco 60a2110
compose-Satosa-Saml2Spid/README.md - Ancora da completare e rivedere.
scolagreco 3ec928c
Update README.md
MdreW 5f5b67c
Update README.md
MdreW 00d432b
impostato indirizzo wayf per IDEM
MdreW b6529a5
Merge branch 'master' of github.com:IDEM-GARR-AAI/Satosa-Saml2Spid
MdreW 6838a99
fix some typo errors
MdreW b70b650
removed duplicated key
MdreW d3db2d6
Modifiche fatte. Ottimizzazione ssl ed aggiornamento immagine Docker.
scolagreco 9b26830
Merge branch 'master' of github.com:italia/Satosa-Saml2Spid into ital…
MdreW 3e224c0
Merge branch 'italia-master'
MdreW File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# By default, ignore everything | ||
* | ||
# Add exception for the directories you actually want to include in the context | ||
!example | ||
!requirements.txt | ||
!oids.conf | ||
!build_spid_certs.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,6 @@ | ||
FROM alpine:3.12.3 | ||
MAINTAINER Giuseppe De Marco <demarcog83@gmail.com> | ||
|
||
RUN apk update | ||
RUN apk add xmlsec libffi-dev libressl-dev python3 py3-pip python3-dev procps git openssl build-base gcc wget bash | ||
FROM alpine:3.13.5 | ||
|
||
ENV BASEDIR="/satosa_proxy" | ||
COPY example/ $BASEDIR/ | ||
COPY requirements.txt $BASEDIR/ | ||
|
||
# demo certificates | ||
RUN mkdir $BASEDIR/pki/ | ||
COPY oids.conf $BASEDIR/pki/ | ||
COPY build_spid_certs.sh $BASEDIR/pki/ | ||
WORKDIR $BASEDIR/pki/ | ||
RUN chmod 755 $BASEDIR/pki/build_spid_certs.sh | ||
|
||
ENV COMMON_NAME="SPID example proxy" | ||
ENV LOCALITY_NAME="Roma" | ||
|
@@ -24,24 +11,51 @@ ENV SPID_SECTOR="public" | |
ENV URI="https://spid.proxy.example.org" | ||
ENV DAYS="7300" | ||
|
||
RUN $BASEDIR/pki/build_spid_certs.sh | ||
ENV SATOSA_DISCO_SRV="https://localhost:9999/disco.html" | ||
|
||
WORKDIR $BASEDIR/ | ||
RUN pip3 install -r requirements.txt --ignore-installed | ||
RUN apk add --update --no-cache tzdata \ | ||
&& cp /usr/share/zoneinfo/Europe/Rome /etc/localtime \ | ||
&& echo "Europe/Rome" > /etc/timezone \ | ||
&& apk del tzdata | ||
|
||
# Metadata | ||
RUN mkdir -p metadata/idp | ||
RUN mkdir -p metadata/sp | ||
COPY example/ $BASEDIR/ | ||
COPY requirements.txt $BASEDIR/ | ||
COPY oids.conf $BASEDIR/pki/ | ||
COPY build_spid_certs.sh $BASEDIR/pki/ | ||
|
||
# COPY Metadata | ||
ARG SP_METADATA_URL | ||
ARG IDP_METADATA_URL | ||
RUN wget $SP_METADATA_URL -O metadata/sp/my-sp.xml --no-check-certificate | ||
RUN wget $IDP_METADATA_URL -O metadata/idp/my-idp.xml --no-check-certificate | ||
RUN wget https://registry.spid.gov.it/metadata/idp/spid-entities-idps.xml -O metadata/idp/spid-entities-idps.xml | ||
RUN apk add --update xmlsec libffi-dev libressl-dev python3 py3-pip python3-dev procps git openssl build-base gcc wget bash jq \ | ||
&& cd $BASEDIR/pki/ \ | ||
&& chmod 755 $BASEDIR/pki/build_spid_certs.sh \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. here spid-compliant-certificates insteadl of build_spid_certs |
||
&& $BASEDIR/pki/build_spid_certs.sh \ | ||
&& cd $BASEDIR/ \ | ||
&& pip3 install --upgrade pip \ | ||
&& pip3 install yq \ | ||
&& pip3 install -r requirements.txt --ignore-installed \ | ||
&& wget https://registry.spid.gov.it/metadata/idp/spid-entities-idps.xml -O metadata/idp/spid-entities-idps.xml \ | ||
&& adduser --disabled-password wert \ | ||
&& chown -R wert . \ | ||
&& chmod +x run.sh | ||
|
||
USER wert | ||
|
||
RUN adduser --disabled-password wert | ||
RUN chown -R wert . | ||
WORKDIR $BASEDIR/ | ||
|
||
COPY demo-run.sh . | ||
CMD bash demo-run.sh | ||
CMD bash run.sh | ||
|
||
# Metadata params | ||
ARG BUILD_DATE | ||
ARG VERSION | ||
ARG VCS_URL="https://github.com/italia/Satosa-Saml2Spid.git" | ||
ARG VCS_REF | ||
ARG AUTHORS | ||
ARG VENDOR | ||
|
||
# Metadata : https://github.com/opencontainers/image-spec/blob/main/annotations.md | ||
LABEL org.opencontainers.image.authors=$AUTHORS \ | ||
org.opencontainers.image.vendor=$VENDOR \ | ||
org.opencontainers.image.title="Satosa-Saml2Spid" \ | ||
org.opencontainers.image.created=$BUILD_DATE \ | ||
org.opencontainers.image.version=$VERSION \ | ||
org.opencontainers.image.source=$VCS_URL \ | ||
org.opencontainers.image.revision=$VCS_REF \ | ||
org.opencontainers.image.description="Docker Image di Satosa-Saml2Spid." |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
deprecated, we should use spid-compliant-certificates for this
build_spid_certs.sh should be removed from this repository