Skip to content

Commit f413fd8

Browse files
committed
docs: add README.md
1 parent d1c13c6 commit f413fd8

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

README.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# http-header-authenticator
2+
3+
Go micro-service used to authenticate http requests based on provided fix http headers
4+
5+
## usage
6+
7+
```sh
8+
http-header-authenticator check -H 'X-acme-auth' -V 'SomeSecurePassword'
9+
```
10+
11+
```sh
12+
curl -H 'X-acme-auth: SomeSecurePassword' localhost:8080 # -> 200
13+
curl localhost:8080 # -> 404
14+
```
15+
16+
Can be used with nginx-ingress controller to authenticate requests comming from CDN servers
17+
See https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/#global-auth-url for inspiration
18+
19+
## installation
20+
21+
### using helm
22+
23+
```sh
24+
helm repo add hoverkraft-tech harbor.hoverkraft.cloud/public/charts
25+
helm repo update hoverkraft-tech
26+
helm upgrade http-header-authenticator hoverkraft-tech/http-header-authenticator \
27+
--install --create-namespace --namespace http-header-authenticator
28+
```
29+
30+
### docker
31+
32+
- [Docker Hub](https://hub.docker.com/repository/docker/webofmars/http-header-authenticator)
33+
34+
```shell
35+
docker-compose up -d --build
36+
```
37+
38+
### from sources
39+
40+
```shell
41+
go build -o ./bin/http-header-authenticator ./src/github.com/hoverkraft-tech/http-header-authenticator
42+
```

0 commit comments

Comments
 (0)