Skip to content
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

add reencryption service #50

Merged
merged 8 commits into from
Apr 26, 2024
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ Add the `sda-auth` client by creating a file `configuration/aai-mock/clients/cli
client-name: "auth"
client-id: "XC56EL11xx"
client-secret: "wHPVQaYXmdDHg"
redirect-uris: ["http://localhost:8085/elixir/login"]
redirect-uris: ["http://localhost:8085/oidc/login"]
token-endpoint-auth-method: "client_secret_basic"
scope: ["openid", "profile", "email", "ga4gh_passport_v1", "eduperson_entitlement"]
grant-types: ["authorization_code"]
post-logout-redirect-uris: ["http://localhost:8085/elixir/login"]
post-logout-redirect-uris: ["http://localhost:8085/oidc/login"]
```

Now that everything should be configured properly, from the root folder of the `starter-kit-lsaai-mock` run:
Expand Down
4 changes: 4 additions & 0 deletions config/config.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ app: # this is for download
host: "0.0.0.0"
port: "8443"

auth:
s3Inbox: "http://localhost:8000"
publicFile: "/shared/c4gh.pub.pem"

archive:
type: "s3"
url: "http://s3"
Expand Down
18 changes: 3 additions & 15 deletions docker-compose-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,22 +104,10 @@ services:
volumes:
- cacert:/etc/ssl/certs/


reencrypt:
image: ghcr.io/neicnordic/sensitive-data-archive:v0.3.25
command: [sda-reencrypt]
container_name: reencrypt
depends_on:
credentials:
condition: service_completed_successfully
restart: always
networks:
- secure
volumes:
- ${CONFIG_FILEPATH}:/config.yaml
- ${ISS_FILEPATH}:/iss.json
- shared:/shared
- cacert:/cacert
extends:
file: docker-compose.yml
service: reencrypt


volumes:
Expand Down
39 changes: 29 additions & 10 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,27 +24,28 @@ services:

auth:
container_name: auth
image: ghcr.io/neicnordic/sensitive-data-archive:v0.3.25-auth
command: sda-auth
image: ghcr.io/neicnordic/sensitive-data-archive:v0.3.25
depends_on:
credentials:
condition: service_completed_successfully
environment:
- ELIXIR_ID=${auth_ELIXIR_ID}
- ELIXIR_PROVIDER=http://${DOCKERHOST:-localhost}:8080/oidc/
- ELIXIR_SECRET=${auth_ELIXIR_SECRET}
- ELIXIR_JWKPATH=jwk
- ELIXIR_REDIRECTURL=http://localhost:8085/elixir/login
- LOG_LEVEL=info
- PUBLICFILE=/shared/c4gh.pub.pem
- RESIGNJWT=false
- S3INBOX=http://localhost:8000
- OIDC_ID=${auth_ELIXIR_ID}
- OIDC_PROVIDER=http://${DOCKERHOST:-localhost}:8080/oidc/
- OIDC_SECRET=${auth_ELIXIR_SECRET}
- OIDC_JWKPATH=jwk
- OIDC_REDIRECTURL=http://localhost:8085/oidc/login
- LOG_LEVEL=debug
- RESIGNJWT=false
extra_hosts:
- ${DOCKERHOST:-localhost}:host-gateway
volumes:
- shared:/shared
- ${CONFIG_FILEPATH}:/config.yaml
ports:
- 8085:8080
networks:
- my-app-network
nanjiangshu marked this conversation as resolved.
Show resolved Hide resolved
restart: always

rabbitmq:
Expand Down Expand Up @@ -289,6 +290,22 @@ services:
- ${CONFIG_FILEPATH}:/config.yaml
- shared:/shared

reencrypt:
command: sda-reencrypt
container_name: reencrypt
depends_on:
credentials:
condition: service_completed_successfully
image: ghcr.io/neicnordic/sensitive-data-archive:v0.3.25
networks:
- secure
restart: always
volumes:
- ${CONFIG_FILEPATH}:/config.yaml
- ${ISS_FILEPATH}:/iss.json
MalinAhlberg marked this conversation as resolved.
Show resolved Hide resolved
- shared:/shared
- cacert:/cacert

volumes:
cacert:
pgdata:
Expand All @@ -298,3 +315,5 @@ volumes:
networks:
public:
secure:
my-app-network:
external: true