-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(auth): remove integrated auth, delegate to proxy (#209)
- Loading branch information
1 parent
c1fe902
commit cb0ceb7
Showing
44 changed files
with
219 additions
and
673 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[allowlist] | ||
description = "Global Allowlist" | ||
paths = [ | ||
'''smoketest\/''' | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
version: "3" | ||
services: | ||
cryostat: | ||
environment: | ||
QUARKUS_HTTP_PROXY_PROXY_ADDRESS_FORWARDING: 'true' | ||
QUARKUS_HTTP_PROXY_ALLOW_X_FORWARDED: 'true' | ||
QUARKUS_HTTP_PROXY_ENABLE_FORWARDED_HOST: 'true' | ||
QUARKUS_HTTP_PROXY_ENABLE_FORWARDED_PREFIX: 'true' | ||
QUARKUS_HTTP_PROXY_TRUSTED_PROXIES: localhost:8080,auth:8080 | ||
auth: | ||
# the proxy does not actually depend on cryostat being up, but we use this | ||
# to ensure that when the smoketest tries to open the auth login page in a | ||
# browser tab, it does so only after the upstream cryostat is actually | ||
# available to be proxied to | ||
depends_on: | ||
cryostat: | ||
condition: service_healthy | ||
deploy: | ||
resources: | ||
limits: | ||
cpus: '0.1' | ||
memory: 32m | ||
image: quay.io/oauth2-proxy/oauth2-proxy:latest | ||
command: --alpha-config=/tmp/auth_proxy_alpha_config.yaml | ||
volumes: | ||
- auth_proxy_cfg:/tmp | ||
hostname: auth | ||
ports: | ||
- "8080:8080" | ||
labels: | ||
kompose.service.expose: "auth" | ||
environment: | ||
OAUTH2_PROXY_HTPASSWD_FILE: /tmp/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_ | ||
# OAUTH2_PROXY_SKIP_AUTH_ROUTES: .* | ||
restart: unless-stopped | ||
healthcheck: | ||
test: wget -q --spider http://localhost:8080/ping || exit 1 | ||
interval: 10s | ||
retries: 3 | ||
start_period: 30s | ||
timeout: 5s | ||
|
||
volumes: | ||
auth_proxy_cfg: | ||
external: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
server: | ||
BindAddress: http://0.0.0.0:8080 | ||
upstreamConfig: | ||
proxyRawPath: true | ||
upstreams: | ||
- id: cryostat | ||
path: / | ||
uri: http://cryostat:8181 | ||
providers: | ||
- id: dummy | ||
name: Unused - Sign In Below | ||
clientId: CLIENT_ID | ||
clientSecret: CLIENT_SECRET | ||
provider: google |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
user:$2y$05$.p1/68oBWKX1FhAtZOArYOoNoMqsB4yuUNXGOeSATHPq3geKqEaZS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.