This is a custom .NET 8 web API project to mock a dynamic secrets provider for my AKeyless GitHub Action and my Azure DevOps Task Extension.
- Production Host => https://dynamicsecrets.dvlup.com/swagger/index.html (running on RaspberryPi4 host!)
- Docker Hub => https://hub.docker.com/r/lancemccarthy/secretsmocker
The code has all been written from scratch using AKeyless's Web Target documentation at https://docs.akeyless.io/docs/custom-producer by converting the expected API json requests/results into .NET class objects. Then manually writing each POST request in the controller by following the design of the API workflow. This should work as a Web Target Provider for anyone as I do not enforce authentication using the AKeyless access-id.
If you want to run this in Linux instead of Windows, you have two quick options.
docker run -d -p 8080:80 lancemccarthy/secretsmocker:latest
If you prefer, use docker compose. Create a docker-compose.yml file with the following content
version: '3.8'
services:
app:
image: 'lancemccarthy/secretsmocker:latest'
restart: unless-stopped
ports:
- '8080:8080'
Then, in the same directory as the file, execute the following command:
docker compose up -d
Here's what the swagger page will present you with: