A quick and cheap python server to filter static content based on request headers.
Go to file
Daniel Dayley 4fc48f7722
Updated README
Cleaned unused argument hints
2024-11-07 13:04:20 -07:00
.github Initial Commit 2024-11-06 22:12:46 -07:00
bin Updated README 2024-11-07 13:04:20 -07:00
.gitignore Gitignore 2024-11-06 22:14:32 -07:00
git-readme.md Initial Commit 2024-11-06 22:12:46 -07:00
README.md Updated README 2024-11-07 13:04:20 -07:00
setup.py Initial Commit 2024-11-06 22:12:46 -07:00

headercheckdashboardproxy

A quick and cheap python server to filter static content based on request headers.

Usage

headercheckdashboardproxy

Installation

  1. git clone https://git.cronocide.net/Cronocide/headercheckdashboardproxy.git
  2. pip3 install -e headercheckdashboardproxy
  3. headercheckdashboardproxy

Configuration

INDEX_FILE		The filename to serve up on / (relative to CWD)
GROUPS_HEADER		The header to use to compare group information from
USER_HEADER		The header to use to compare user information from
BIND_PORT		The TCP port to listen on

Justification

This is a quick, crappy, and terribly embarrasing little proxy that filters out a apps on a pre-rendered dashboard (not included) using HTTP request headers passed to it by an upstream authentication proxy. Components in the HTML that don't match the users or groups headers included in the request are removed from the HTML. That's it. That's all this does. A bit stupid, isn't it?