Stateless multi tenant authentication proxy, that handles authentication and setting X-Scope-OrgID
for Grafana Loki.
Please be nice to me, the project is work in progress :)
To use this, Grafana Loki needs to be configured in multi tenant mode with auth_enabled: true
as described in the official docs.
You will find pre-compiled binaries and packages for the most common OS under the releases.
docker run -v $(pwd)/loki-auth-proxy.yml:/etc/loki-auth-proxy.yml -v $(pwd)/loki-auth.yml:/etc/loki-auth.yml -p 8081:8081 ghcr.io/jpbede/loki-auth-proxy:latest
or via docker-compose.yml
version: "3"
services:
auth-proxy:
image: ghcr.io/jpbede/loki-auth-proxy:latest
ports:
- 8081:8081
volumes:
- "/etc/loki-auth-proxy.yml:/etc/loki-auth-proxy.yaml"
- "/etc/loki-auth.yml:/etc/loki-auth.yml"
Simply use homebrew
(https://brew.sh/)
To install loki-auth-proxy
use following command brew install jpbede/tap/loki-auth-proxy
An example configuration you can find at example/loki-auth-proxy.yaml.