Note
This software is a proof of concept and is not intended for production use. It will not be maintained or receive updates. Concepts from this project will be used in gematik specifications to standardize Zero Trust in Telematics Infrastructure. Developers are encouraged to use the implementation ideas in their own software.
Note:
opa
anddocker
must be installed locally
opa build -b src/bundle/ -o dsr-fachdienst-policy-bundle.tar.gz
./configure.sh
set your opa-user password in file nginx/.htpasswd overwrite public key (generated by configure.sh in step above) in section "bundle_sign_puk" of file opa/opa-config.yaml
opa build -b src/bundle/ -o dsr-fachdienst-policy-bundle.tar.gz --signing-key sign/bundle_sign_prk.pem --signing-alg ES256 --claims-file sign/claims.json
opa sign --signing-key sign/bundle_sign_prk.pem --signing-alg ES256 -b src/bundle/
opa inspect dsr-fachdienst-policy-bundle.tar.gz
opa test -v src -f pretty --explain full
opa test -v src -f pretty --explain full --coverage --format=json
docker build -t dsr/opa-bundle-server .
docker run -p 8787:80 dsr/opa-bundle-server
curl --location 'http://localhost:8787/opa-bundle/dsr-fachdienst-policy-bundle.tar.gz' --header 'Authorization: Basic b3BhLXVzZXI6Tk9fU0VDUkVU' -o dsr-fachdienst-policy-bundle.tar.gz
docker compose -f docker-compose-deployLocal-OPA.yml up