Skip to content

Commit

Permalink
added auth2-proxy and put storage behind auth2-proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
aali309 committed Jan 18, 2024
1 parent 68a9bcf commit 109c276
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
30 changes: 30 additions & 0 deletions charts/cryostat/templates/auth_proxy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
version: "3"
services:
auth:
depends_on:
cryostat:
condition: service_healthy
deploy:
resources:
limits:
cpus: "0.1"
memory: 1024M
image: ${OAUTH2_PROXY_IMAGE:-quay.io/oauth2-proxy/oauth2-proxy:latest}
command: --alpha-config=./auth_proxy_alpha_config.yaml
ports:
- "8080:8080"
hostname: auth
labels:
kompose.service.expose: "auth"
environment:
OAUTH2_PROXY_HTPASSWD_FILE: ./auth_proxy_htpasswd
OAUTH2_PROXY_HTPASSWD_USER_GROUP: write
OAUTH2_PROXY_REDIRECT_URL: http://localhost:8080/oauth2/callback
OAUTH2_PROXY_COOKIE_SECRET: __24_BYTE_COOKIE_SECRET_
restart: unless-stopped
healthcheck:
test: wget -q --spider http://localhost:8080/ping || exit 1
interval: 10s
retries: 3
start_period: 30s
timeout: 5s
17 changes: 17 additions & 0 deletions charts/cryostat/templates/auth_proxy_alpha_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
server:
BindAddress: http://0.0.0.0:8080
upstreamConfig:
proxyRawPath: true
upstreams:
- id: storage
path: ^/storage/(.*)$
rewriteTarget: /$1
uri: http://s3:${STORAGE_PORT}
passHostHeader: false
proxyWebSockets: false
providers:
- id: dummy
name: Unused - Sign In Below
clientId: CLIENT_ID
clientSecret: CLIENT_SECRET
provider: google
1 change: 1 addition & 0 deletions charts/cryostat/templates/auth_proxy_htpasswd
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
user:$apr1$XXso02zP$SMduzjhNkMVNp2CgTDSND1

0 comments on commit 109c276

Please sign in to comment.