Implements a REST API for the SSLA manager module and to manage SSLAs remotely.
Install :
podman build -f ./Containerfile -t localhost/thales-sslamanager-restRun :
touch /tmp/ssla.db
podman run -d \
--name ssla-manager \
-p 8081:80 \
-v /tmp/ssla.db:/data/ssla.db \
localhost/thales-sslamanager-restTry it in your browser at localhost:8081/docs.
You can use the examples in examples/ssla/ to submit security policies.
Read openapi.json for information about this REST API endpoints.
Generate it with :
sslamanagerrest --dump-openapi -c /dev/nullYou need the SSLA Manager as a dependency for this project :
SSLA_MANAGER_VERSION="v0.1.0"
poetry config repositories.sslamanager https://github.com/ThalesGroup/ssla-manager
poetry add git+https://github.com/ThalesGroup/ssla-manager#${SSLA_MANAGER_VERSION}Build the wheel file :
./build.shTo build the container image :
podman build -f ./Containerfile -t localhost/thales-sslamanager-restInstall sslamanagerrest in your python environment :
./install.shVerify :
# manual with poetry
sslamanagerrest --helppoetry run python -m sslamanagerrest -c config.yamlTest with :
curl -L localhost:8080/api/v1/health