Skip to content

ThalesGroup/ssla-manager-rest

SSLA Manager REST API

Implements a REST API for the SSLA manager module and to manage SSLAs remotely.

Quick start

Install :

podman build -f ./Containerfile -t localhost/thales-sslamanager-rest

Run :

touch /tmp/ssla.db
podman run -d \
  --name ssla-manager \
  -p 8081:80 \
  -v /tmp/ssla.db:/data/ssla.db \
  localhost/thales-sslamanager-rest

Try it in your browser at localhost:8081/docs.
You can use the examples in examples/ssla/ to submit security policies.

OpenAPI specs

Read openapi.json for information about this REST API endpoints.

Generate it with :

sslamanagerrest --dump-openapi -c /dev/null

Development

Dependencies

You 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

Build the wheel file :

./build.sh

To build the container image :

podman build -f ./Containerfile -t localhost/thales-sslamanager-rest

Install

Install sslamanagerrest in your python environment :

./install.sh

Verify :

# manual with poetry
sslamanagerrest --help

Dev run

poetry run python -m sslamanagerrest -c config.yaml

Test with :

curl -L localhost:8080/api/v1/health

About

Implements a REST API for the SSLA manager module and to manage SSLAs remotely.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •