red-machine-69654
07/29/2022, 5:20 PMred-machine-69654
07/29/2022, 5:21 PMserve:
public:
base_url: <http://auth.runway.127.0.0.1.nip.io/|http://auth.runway.127.0.0.1.nip.io/>
cors:
enabled: true
allowed_origins:
◦ <http://*.runway.127.0.0.1.nip.io|http://*.runway.127.0.0.1.nip.io>
allowed_methods:
◦ POST
◦ GET
◦ PUT
◦ PATCH
◦ DELETE
allowed_headers:
◦ Authorization
◦ Cookie
◦ Content-Type
exposed_headers:
◦ Content-Type
◦ Set-Cookie
admin:
base_url: <http://auth-admin.runway.127.0.0.1.nip.io/|http://auth-admin.runway.127.0.0.1.nip.io/>
red-machine-69654
07/29/2022, 5:21 PMred-machine-69654
07/29/2022, 5:21 PMred-machine-69654
07/29/2022, 5:22 PMred-machine-69654
07/29/2022, 5:22 PMplain-lunch-50969
07/29/2022, 5:31 PMplain-lunch-50969
07/29/2022, 5:31 PMplain-lunch-50969
07/29/2022, 5:32 PMplain-lunch-50969
07/29/2022, 5:35 PMcurl -k -H 'Accept: application/json' https://[FQDN]/auth/self-service/login/api
I think I'd at least get a JSON object.plain-lunch-50969
07/29/2022, 5:37 PMred-machine-69654
07/29/2022, 5:43 PMred-machine-69654
07/29/2022, 5:43 PMred-machine-69654
07/29/2022, 5:43 PMplain-lunch-50969
07/29/2022, 5:44 PMplain-lunch-50969
07/29/2022, 5:44 PMred-machine-69654
07/29/2022, 5:44 PMplain-lunch-50969
07/29/2022, 5:44 PMplain-lunch-50969
07/29/2022, 5:44 PMplain-lunch-50969
07/29/2022, 5:45 PMplain-lunch-50969
07/29/2022, 5:45 PMtime=2022-07-29T04:41:39Z level=info msg=started handling request http_request=map[headers:map[accept:application/json user-agent:curl/7.82.0 x-forwarded-for:127.0.0.1 x-forwarded-host:<http://launch.mergetb.example.net|launch.mergetb.example.net> x-forwarded-port:443 x-forwarded-proto:https x-forwarded-scheme:https x-real-ip:127.0.0.1 x-request-id:393fe495f7f51695d1e10dafb109e67f x-scheme:https] host:launch.merget
<http://b.example.net|b.example.net> method:GET path:/auth/self-service/login/browser query:<nil> remote:10.244.0.1:50868 scheme:http]
time=2022-07-29T04:41:39Z level=info msg=completed handling request http_request=map[headers:map[accept:application/json user-agent:curl/7.82.0 x-forwarded-for:127.0.0.1 x-forwarded-host:<http://launch.mergetb.example.net|launch.mergetb.example.net> x-forwarded-port:443 x-forwarded-proto:https x-forwarded-scheme:https x-real-ip:127.0.0.1 x-request-id:393fe495f7f51695d1e10dafb109e67f x-scheme:https] host:launch.merg
<http://etb.example.net|etb.example.net> method:GET path:/auth/self-service/login/browser query:<nil> remote:10.244.0.1:50868 scheme:http] http_response=map[headers:map[content-type:text/plain; charset=utf-8 set-cookie:[csrf_token_09c1eb59a362dd1a2accba844e413e7bc266e5ad2c7405c89264851d0b49d4ec=mj4L+vnj2uyX6rImc+jwYiPS/K1RqWmFrUv+2eSzXis=; Path=/; Max-Age=31536000; HttpOnly; Secure; SameSite=Lax] vary:Co
okie x-content-type-options:nosniff] size:19 status:404 text_status:Not Found took:503.63µs]
red-machine-69654
07/29/2022, 5:46 PMred-machine-69654
07/29/2022, 5:47 PMplain-lunch-50969
07/29/2022, 5:47 PMName: launch-merge-launch
Namespace: merge
Address: 192.168.126.10
Default backend: default-http-backend:80 (<error: endpoints "default-http-backend" not found>)
TLS:
launch-tls terminates <http://launch.mergetb.example.net|launch.mergetb.example.net>
Rules:
Host Path Backends
---- ---- --------
<http://launch.mergetb.example.net|launch.mergetb.example.net>
/ launch-merge-launch:8080 (10.244.0.77:8080)
/auth/ merge-auth-kratos-public:80 (10.244.0.78:4433)
Annotations: <http://meta.helm.sh/release-name|meta.helm.sh/release-name>: launch
<http://meta.helm.sh/release-namespace|meta.helm.sh/release-namespace>: merge
Events: <none>
red-machine-69654
07/29/2022, 5:49 PMplain-lunch-50969
07/29/2022, 5:57 PMplain-lunch-50969
07/29/2022, 5:58 PM/home/ory $ wget <http://0.0.0.0:4433/auth/hello>
Connecting to 0.0.0.0:4433 (0.0.0.0:4433)
wget: server returned error: HTTP/1.1 404 Not Found
/home/ory $ wget <http://0.0.0.0:4433/auth>
Connecting to 0.0.0.0:4433 (0.0.0.0:4433)
wget: server returned error: HTTP/1.1 404 Not Found
/home/ory $ wget <http://0.0.0.0:4433>
Connecting to 0.0.0.0:4433 (0.0.0.0:4433)
wget: server returned error: HTTP/1.1 404 Not Found
/home/ory $
red-machine-69654
07/29/2022, 6:04 PMcurl <http://0.0.0.0:4433/self-service/login/browser>
red-machine-69654
07/29/2022, 6:04 PMlogin_url?flow=etc
red-machine-69654
07/29/2022, 6:05 PM/auth
even worksplain-lunch-50969
07/29/2022, 6:07 PMplain-lunch-50969
07/29/2022, 6:08 PM/home/ory $ wget <http://0.0.0.0:4433/self-service/login/browser>
Connecting to 0.0.0.0:4433 (0.0.0.0:4433)
Connecting to <http://launch.mergetb.example.net|launch.mergetb.example.net> (192.168.126.10:443)
ssl_client: <http://launch.mergetb.example.net|launch.mergetb.example.net>: certificate verification failed: self signed certificate
wget: error getting response: Connection reset by peer
/home/ory $ wget --no-check-certificate <http://0.0.0.0:4433/self-service/login/browser>
Connecting to 0.0.0.0:4433 (0.0.0.0:4433)
Connecting to <http://launch.mergetb.example.net|launch.mergetb.example.net> (192.168.126.10:443)
plain-lunch-50969
07/29/2022, 6:09 PMselfservice.allowed_return_urls
plain-lunch-50969
07/29/2022, 6:09 PMred-machine-69654
07/29/2022, 6:10 PMplain-lunch-50969
07/29/2022, 6:10 PMred-machine-69654
07/29/2022, 6:10 PMred-machine-69654
07/29/2022, 6:10 PMplain-lunch-50969
07/29/2022, 6:11 PMplain-lunch-50969
07/29/2022, 6:13 PMplain-lunch-50969
07/29/2022, 6:14 PMred-machine-69654
07/29/2022, 6:14 PMred-machine-69654
07/29/2022, 6:15 PMplain-lunch-50969
07/29/2022, 6:15 PMred-machine-69654
07/29/2022, 6:15 PMplain-lunch-50969
07/29/2022, 6:15 PM/auth
to talk to kratos?red-machine-69654
07/29/2022, 6:15 PMred-machine-69654
07/29/2022, 6:16 PMplain-lunch-50969
07/29/2022, 6:16 PMplain-lunch-50969
07/29/2022, 6:18 PM/auth/
at the start of the API endpoint. I'll need to rewrite that I guess.plain-lunch-50969
07/29/2022, 7:01 PM/auth
path on the ingress but told nginx to remove the /auth
from the API endpoint when routing it. This made kratos happy.
ingress:
public:
enabled: true
className: nginx
annotations:
<http://nginx.ingress.kubernetes.io/rewrite-target|nginx.ingress.kubernetes.io/rewrite-target>: /$1
hosts:
- host: <http://kratos.public.local.com|kratos.public.local.com>
paths:
- path: /auth/(.*)
pathType: ImplementationSpecific
plain-lunch-50969
07/29/2022, 7:03 PMplain-lunch-50969
07/29/2022, 7:05 PMred-machine-69654
07/29/2022, 7:09 PMplain-lunch-50969
07/29/2022, 7:09 PM