A sample authentication service used as the companion service in the Kargo book.
This service issues, validates, and revokes bearer tokens. It stores tokens in memory and is designed for demonstrating multi-service Kargo promotion workflows.
| Method | Path | Description |
|---|---|---|
GET |
/healthz |
Liveness probe |
GET |
/readyz |
Readiness probe |
GET |
/version |
Build version and commit SHA |
POST |
/api/v1/auth/token |
Create a token (accepts username and password) |
POST |
/api/v1/auth/validate |
Validate a token (Authorization: Bearer <token>) |
POST |
/api/v1/auth/revoke |
Revoke a token (Authorization: Bearer <token>) |
# Run locally
make run
# Run tests
make test
# Build Docker image
make docker-build VERSION=1.0.0| Variable | Default | Description |
|---|---|---|
PORT |
8081 |
HTTP listen port |
Published to ghcr.io/kargobook/auth-service on every push to main and on semver tags.
docker run -p 8081:8081 ghcr.io/kargobook/auth-service:latest- kargobook/payments-api — Primary example service
- kargobook/demo-gitops — GitOps repo with Kustomize overlays, Argo CD Applications, and Kargo resources
This service is primarily used in:
- Chapter 11 — Multi-Service Promotion (coordinated promotion with payments-api)
- Chapter 12 — Multi-Team and Platform Patterns
MIT