Mini Vault
This application serves as a proxy to generate and serve TLS certificates for microservices in the UB-IT architecture.
Development
To run the mini vault locally execute the following commands:
go mod tidy
go run ./cmd/minivault
Add a folder certs
with the following files:
certs/ca.crt
certs/ub-log.ub.unibas.ch.cert.pem
certs/ub-log.ub.unibas.ch.key.pem
Docker
The docker image is built in the GitLab CI pipeline. For testing local:
docker build -t test:latest .
docker run -v ./certs:/certs:ro -v ./config:/config:ro test:latest
Swagger Documentation
The documentation is generated by swaggo. First install the dependencies:
go get github.com/swaggo/swag/gen@v1.16.3
go get github.com/swaggo/swag/cmd/swag@v1.16.3
cd pkg/rest
go run github.com/swaggo/swag/cmd/swag init --instanceName MiniVault --parseDependency --parseInternal -g ./api.go
Documentation