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:
opaanddockermust be installed locally
opa build -b src/bundle/ -o dsr-fachdienst-policy-bundle.tar.gz./configure.shset 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.jsonopa sign --signing-key sign/bundle_sign_prk.pem --signing-alg ES256 -b src/bundle/opa inspect dsr-fachdienst-policy-bundle.tar.gzopa test -v src -f pretty --explain fullopa test -v src -f pretty --explain full --coverage --format=jsondocker build -t dsr/opa-bundle-server .docker run -p 8787:80 dsr/opa-bundle-servercurl --location 'http://localhost:8787/opa-bundle/dsr-fachdienst-policy-bundle.tar.gz' --header 'Authorization: Basic b3BhLXVzZXI6Tk9fU0VDUkVU' -o dsr-fachdienst-policy-bundle.tar.gzdocker compose -f docker-compose-deployLocal-OPA.yml up