Skip to content

jpbede/loki-auth-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Grafana Loki - Stateless multi tenant authentication proxy

PkgGoDev Codacy Badge codecov

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 :)

Requirements

To use this, Grafana Loki needs to be configured in multi tenant mode with auth_enabled: true as described in the official docs.

Installing

Binaries

You will find pre-compiled binaries and packages for the most common OS under the releases.

Docker

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"

macOS

Simply use homebrew (https://brew.sh/)

To install loki-auth-proxy use following command brew install jpbede/tap/loki-auth-proxy

Using it

An example configuration you can find at example/loki-auth-proxy.yaml.