Simple encryption REST API written with Flask framework

Furkan Kalkan c59cb7a649 Base64 format changed to urlsafe 2 lat temu
.github f7758d62ad Update docker-image.yml 3 lat temu
src c59cb7a649 Base64 format changed to urlsafe 2 lat temu
.gitignore 3e7c0de0cb codes added 3 lat temu
Dockerfile 98920d1c59 Update Dockerfile 3 lat temu
LICENSE b6c5d0a2ca Initial commit 3 lat temu
README.md 7d263dd46e Update README.md 3 lat temu
docker-compose.yml c0bd490914 Update docker-compose.yml 3 lat temu
nginx.conf e3d75e4b71 Proxy HTTP instead of wsgi protocol 3 lat temu
requirements.txt 3e7c0de0cb codes added 3 lat temu

README.md

encryption-service

Basic Rest API microservice that encrypt/decrypt text using AES

This project written with Flask web framework. It use flask-smorest for REST API and Pyctuator for actuator endpoint.

Running

Pre-built images are here: https://hub.docker.com/r/mantissoftware/encryption-service

To run pre-built image, run

docker run -p 5000:5000 -e __SERVICE_AES_KEY=<base64_aes_key> -e __SERVICE_AES_IV=<base64_aes_iv>  mantissoftware/encryption-service

and go http://localhost:5000/swagger-ui to access Swagger-UI

Building your own image

Run docker-compose build to build your own image.

⚠️ You have to change __SERVICE_AES_KEY and __SERVICE_AES_IV environment variables before build & deploy your own image

To test your image, run docker-compose run and go http://localhost/swagger-ui to access swagger-ui

Deployment

⚠️ Don't forget to set __SERVICE_ACTUATOR_BASE_URI environment variable (Value: http(s):///)