-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from italia/oidcop
identity python OIDCop frontend modules
- Loading branch information
Showing
21 changed files
with
864 additions
and
96 deletions.
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
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
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
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 |
---|---|---|
@@ -0,0 +1,124 @@ | ||
version: "3" | ||
|
||
services: | ||
# if needed | ||
#spid-certs: | ||
#image: psmiraglia/spid-compliant-certificates | ||
#volumes: | ||
#- ./project/pki:/tmp/certs:rw | ||
#entrypoint: | | ||
#spid-compliant-certificates generator | ||
#--key-size 3072 | ||
#--common-name "A.C.M.E" | ||
#--days 365 | ||
#--entity-id https://spid.acme.it | ||
#--locality-name Roma | ||
#--org-id "PA:IT-c_h501" | ||
#--org-name "A Company Making Everything" | ||
#--sector public | ||
#--key-out /tmp/certs/privkey.pem | ||
#--crt-out /tmp/certs/cert.pem | ||
|
||
satosa-mongo: | ||
image: mongo | ||
restart: always | ||
environment: | ||
MONGO_INITDB_ROOT_USERNAME: satosa | ||
MONGO_INITDB_ROOT_PASSWORD: thatpassword | ||
ports: | ||
- 27017:27017 | ||
volumes: | ||
- mongodbdata:/data/db | ||
networks: | ||
- satosa | ||
|
||
satosa-mongo-express: | ||
image: mongo-express | ||
restart: always | ||
ports: | ||
- 8082:8081 | ||
environment: | ||
ME_CONFIG_BASICAUTH_USERNAME: satosa | ||
ME_CONFIG_BASICAUTH_PASSWORD: thatpassword | ||
ME_CONFIG_MONGODB_ADMINUSERNAME: satosa | ||
ME_CONFIG_MONGODB_ADMINPASSWORD: thatpassword | ||
ME_CONFIG_MONGODB_URL: mongodb://satosa:thatpassword@satosa-mongo:27017/ | ||
networks: | ||
- satosa | ||
|
||
# remove if use a nginx frontend | ||
satosa-statics: | ||
build: | ||
context: . | ||
dockerfile: ./docker/satosa-statics/Dockerfile | ||
expose: | ||
- 9999 | ||
ports: | ||
- "9999:9999" | ||
volumes: | ||
- satosa-saml2saml_certs:/satosa_pki | ||
- satosa-saml2saml_statics:/satosa_statics | ||
networks: | ||
- satosa | ||
|
||
satosa-saml2spid: | ||
build: | ||
context: . | ||
dockerfile: ./docker/satosa-saml2spid/Dockerfile | ||
depends_on: | ||
- satosa-mongo | ||
environment: | ||
- THAT=thing | ||
expose: | ||
- 10000 | ||
ports: | ||
- "10000:10000" | ||
networks: | ||
- satosa | ||
volumes: | ||
- satosa-saml2saml_certs:/satosa_pki | ||
- satosa-saml2saml_conf:/satosa_proxy | ||
- satosa-saml2saml_logs:/satosa_logs | ||
|
||
# TODO | ||
#satosa-nginx: | ||
#image: nginx:1.19-alpine | ||
#ports: | ||
#- "80:80" | ||
#- "443:443" | ||
#volumes: | ||
#- ./docker/gateway/satosa.conf:/etc/nginx/conf.d/default.conf | ||
#- satosa-saml2saml_statics:/satosa/static | ||
#- ./docker/gateway/example.key:/etc/nginx/certs/certificate.key | ||
#- ./docker/gateway/example.crt:/etc/nginx/certs/certificate.crt | ||
#depends_on: | ||
#- satosa-front | ||
#- satosa-back | ||
#networks: | ||
#- satosa | ||
|
||
# uncomment if needed | ||
spid-saml-check: | ||
image: italia/spid-saml-check | ||
ports: | ||
- "8080:8080" | ||
networks: | ||
- satosa | ||
#volumes: | ||
#- "./docker/spid-saml-check-config/idp.json:/spid-saml-check/spid-validator/config/idp.json:ro" | ||
#- "./docker/spid-saml-check-config/idp_demo.json:/spid-saml-check/spid-validator/config/idp_demo.json:ro" | ||
#- "./docker/spid-saml-check-config/server.json:/spid-saml-check/spid-validator/config/server.json:ro" | ||
|
||
volumes: | ||
mongodbdata: | ||
satosa-saml2saml_certs: | ||
external: true | ||
satosa-saml2saml_statics: | ||
external: true | ||
satosa-saml2saml_conf: | ||
external: true | ||
satosa-saml2saml_logs: | ||
external: true | ||
|
||
networks: | ||
satosa: |
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,19 @@ | ||
FROM debian:buster-slim | ||
MAINTAINER Giuseppe De Marco <demarcog83@gmail.com> | ||
|
||
# for alpine 13 | ||
#RUN apk update | ||
#RUN apk add xmlsec libffi-dev libressl-dev python3 py3-pip python3-dev procps git openssl build-base gcc wget bash cargo musl-dev | ||
|
||
RUN apt update | ||
RUN apt install -y libffi-dev libssl-dev python3-pip xmlsec1 procps libpcre3 libpcre3-dev git bash | ||
|
||
ENV BASEDIR="/satosa_proxy" | ||
COPY ./requirements.txt . | ||
RUN pip3 install --upgrade pip | ||
RUN pip3 install -r requirements.txt --ignore-installed | ||
|
||
WORKDIR $BASEDIR/ | ||
# COPY ./project $BASEDIR | ||
RUN ls . | ||
ENTRYPOINT uwsgi --wsgi satosa.wsgi --https 0.0.0.0:10000,/satosa_pki/cert.pem,/satosa_pki/privkey.pem --callable app -b 32648 |
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,10 @@ | ||
FROM debian:buster-slim | ||
MAINTAINER Giuseppe De Marco <demarcog83@gmail.com> | ||
|
||
RUN apt update | ||
RUN apt install -y libffi-dev libssl-dev python3-pip libpcre3 libpcre3-dev | ||
|
||
RUN pip3 install uwsgi | ||
ENV BASEDIR=/satosa_statics/ | ||
WORKDIR $BASEDIR | ||
ENTRYPOINT uwsgi --uid 1000 --https 0.0.0.0:9999,/satosa_pki/cert.pem,/satosa_pki/privkey.pem --check-static-docroot --check-static $BASEDIR --static-index disco.html |
Oops, something went wrong.