An application to demonstrate the "Vertrouwde Goederenafgifte" use case.
The software is for demo purposes only! It has not been audited for security flaws and is not suitable as a starting point to develop software. Use at your own risk.
This code simulates the following environments:
Use the following environment variables to configure this demo:
PORT
: the port number to listen for HTTP requests, defaults to8080
STORE_FILE
: the file to store state in, defaults to/tmp/dil-demo.edn
BASE_URL
: base URL this application is reachable from, defaults tohttp://localhost:8080
Authentication:
AUTH_USER_PREFIX
: prefix of user name, defaults todemo
AUTH_PASS_MULTI
: number to multiply user number with for password, defaults to31415
AUTH_MAX_ACCOUNTS
: maximum number of user accounts
Datespace:
DATASPACE_ID
: The dataspace identifier this demo runs inSATELLITE_ID
: EORI of the iSHARE satelliteSATELLITE_ENDPOINT
: URL to the iSHARE satellite
ERP:
ERP_EORI
: EORI used by ERPERP_KEY_FILE
: the file to read the ERP private key fromERP_CHAIN_FILE
: the file to read the ERP certificate chain fromERP_AR_ID
: EORI of the ERP authorization registerERP_AR_ENDPOINT
: URL to the ERP authorization register
WMS:
WMS_EORI
: EORI used by WMSWMS_KEY_FILE
: the file to read the WMS private key fromWMS_CHAIN_FILE
: the file to read the WMS certificate chain from
TMS 1:
TMS1_EORI
: EORITMS1_KEY_FILE
: the file to read the private key fromTMS1_CHAIN_FILE
: the file to read the certificate chain fromTMS1_AR_ID
: EORI of the authorization registerTMS1_AR_ENDPOINT
: URL to the authorization registerTMS1_AR_TYPE
: type of authorization register (ishare or poort8)
TMS 2:
TMS2_EORI
: EORITMS2_KEY_FILE
: the file to read the private key fromTMS2_CHAIN_FILE
: the file to read the certificate chain fromTMS2_AR_ID
: EORI of the authorization registerTMS2_AR_ENDPOINT
: URL to the authorization registerTMS1_AR_TYPE
: type of authorization register (ishare or poort8)
Run the web server with the following:
clojure -M -m dil-demo.core
Point a web browser to http://localhost:8080
and login with user demo1
with password 31415
.
The following creates an uber-jar containing all necessary dependencies to run the demo environments:
make
This jar-file is runnable with:
java -jar target/dil-demo.jar
To build and run a docker image locally, with the configuration
environment vars in a .env
file, and keys and certificates in
./credentials
, do
docker build . -t my-image
docker run --env-file=.env --mount="type=bind,source=${PWD}/credentials,destination=/credentials" -p8080:8080 my-image
See docker-example for a docker-compose configuration that runs the demo locally without dependencies on external services.
Documentation on the architecture of this demo can be found at doc/architecture/architecture-description.md.
Copyright (C) 2024 Jomco B.V.
Copyright (C) 2024 Topsector Logistiek