Skip to content

A simple API wrapper for Authentik, to provide gated access to native login metrics API without exposing secrets to 3rd party integrations

Notifications You must be signed in to change notification settings

TheManchineel/middlesock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Middlesock

Middlesock is a simple, lightweight and secure middleware to monitor an Authentik instance without exposing your admin credentials to native API clients. Written in Rust using the Rocket library.

Intended for use with Homepage: just run Authentik, then use the Middlesock URL as your Authentik instance URL within services.yml without specifying any credentials.

Installation (Docker)

The extremely lightweight Alpine-based Docker image is available on the GitHub Container Registry:

docker run -d \ 
    -p 8013:8013 \ 
    -e AUTHENTIK_BASE_URL="https://authentik.company" \ 
    -e AUTHENTIK_API_KEY="MY_API_KEY" \ 
    --name "Middlesock" \ 
    --restart unless-stopped \ 
    ghcr.io/themanchineel/middlesock:latest

Or using Docker Compose:

version: "3.8"
services:
  middlesock:
    image: ghcr.io/themanchineel/middlesock:latest
    expose:
      - 8013
    environment:
      - AUTHENTIK_BASE_URL="https://authentik.company"
      - AUTHENTIK_API_KEY="MY_API_KEY"
    restart: unless-stopped
  homepage:
    image: ghcr.io/gethomepage/homepage:latest
    ... # See Homepage docs

About

A simple API wrapper for Authentik, to provide gated access to native login metrics API without exposing secrets to 3rd party integrations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages