Skip to content

Commit

Permalink
Require auth for gwen (#71)
Browse files Browse the repository at this point in the history
* Require auth with logserver_openid_client for gwen

* Add comments; cleanup whitespace

* Add ref to docs

* Clarify
  • Loading branch information
ivan-c authored Feb 23, 2022
1 parent a584a03 commit e90c745
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion base/freestanding/logs/docker-compose.ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,16 @@ services:
- "traefik.http.routers.gwen-${COMPOSE_PROJECT_NAME}.entrypoints=websecure"
- "traefik.http.routers.gwen-${COMPOSE_PROJECT_NAME}.tls=true"
- "traefik.http.routers.gwen-${COMPOSE_PROJECT_NAME}.tls.certresolver=letsencrypt"

# traefik forwardauth: require that requests are validated (return 200 OK) by oidc-proxy before forwarding to service
# https://doc.traefik.io/traefik/middlewares/http/forwardauth/
- "traefik.http.routers.gwen-${COMPOSE_PROJECT_NAME}.middlewares=gwen-${COMPOSE_PROJECT_NAME}-forwardauth"
- "traefik.http.middlewares.gwen-${COMPOSE_PROJECT_NAME}-forwardauth.forwardauth.address=http://oidc-proxy-${COMPOSE_PROJECT_NAME}:4181"
- "traefik.http.middlewares.gwen-${COMPOSE_PROJECT_NAME}-forwardauth.forwardauth.authResponseHeaders=X-Forwarded-User"
networks:
- ingress
- internal

postgrest:
labels:
- "traefik.enable=true"
Expand All @@ -21,7 +28,8 @@ services:
- "traefik.http.routers.logserver-${COMPOSE_PROJECT_NAME}.tls=true"
- "traefik.http.routers.logserver-${COMPOSE_PROJECT_NAME}.tls.certresolver=letsencrypt"


# traefik forwardauth: require that requests are validated (return 200 OK) by oidc-proxy before forwarding to service
# https://doc.traefik.io/traefik/middlewares/http/forwardauth/
- "traefik.http.routers.logserver-${COMPOSE_PROJECT_NAME}.middlewares=logserver-${COMPOSE_PROJECT_NAME}-forwardauth"
- "traefik.http.middlewares.logserver-${COMPOSE_PROJECT_NAME}-forwardauth.forwardauth.address=http://oidc-proxy-${COMPOSE_PROJECT_NAME}:4181"
- "traefik.http.middlewares.logserver-${COMPOSE_PROJECT_NAME}-forwardauth.forwardauth.authResponseHeaders=X-Forwarded-User"
Expand Down

0 comments on commit e90c745

Please sign in to comment.