https://github.com/tv42/bearproxy
A very simple HTTP reverse proxy that checks that requests contain a valid secret as a bearer token
https://github.com/tv42/bearproxy
Last synced: 3 months ago
JSON representation
A very simple HTTP reverse proxy that checks that requests contain a valid secret as a bearer token
- Host: GitHub
- URL: https://github.com/tv42/bearproxy
- Owner: tv42
- License: mit
- Created: 2021-11-11T18:56:59.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-11-11T19:39:36.000Z (over 3 years ago)
- Last Synced: 2025-01-30T08:13:55.015Z (5 months ago)
- Language: Go
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bearproxy -- Authorization enforcing HTTP reverse proxy
Bearproxy is a very simple HTTP reverse proxy that checks that requests contain a valid secret as a bearer token.
It is meant to work as a minimal sidecar container, protecting a web service that doesn't have any authorization logic of its own.
```
go build eagain.net/go/bearproxy
echo s3kr1t >secret
./bearproxy -secret-token-file=secret -backend-url=http://localhost:8001/ -listen=:8000
```