curved-oxygen-35290
02/19/2023, 12:41 PMechoing-bird-61980
02/19/2023, 1:05 PM<>
in the tool, but do include it in your configcurved-oxygen-35290
02/19/2023, 1:11 PMcurved-oxygen-35290
02/19/2023, 1:12 PMechoing-bird-61980
02/19/2023, 1:12 PMechoing-bird-61980
02/19/2023, 1:12 PM<https://domain.com/><**.css>
Would match all css files etccurved-oxygen-35290
02/19/2023, 1:13 PMechoing-bird-61980
02/19/2023, 1:15 PMcurved-oxygen-35290
02/19/2023, 1:16 PM"match": {
"url": "https://<*>",
gives
{"error":{"code":404,"status":"Not Found","message":"Requested url does not match any rules"}}
curved-oxygen-35290
02/19/2023, 1:17 PMechoing-bird-61980
02/19/2023, 1:18 PMcurved-oxygen-35290
02/19/2023, 1:18 PMcurved-oxygen-35290
02/19/2023, 1:18 PMechoing-bird-61980
02/19/2023, 1:19 PMcurved-oxygen-35290
02/19/2023, 1:19 PMcurved-oxygen-35290
02/19/2023, 1:19 PMcurved-oxygen-35290
02/19/2023, 1:20 PMechoing-bird-61980
02/19/2023, 1:21 PMhttps://<*>
Second one:
https://<*>/<**>
I thinkcurved-oxygen-35290
02/19/2023, 2:01 PMhttps://<*>/<**>
seems to match the top 2red-machine-69654
02/19/2023, 2:03 PMred-machine-69654
02/19/2023, 2:03 PMcurved-oxygen-35290
02/19/2023, 2:05 PMred-machine-69654
02/19/2023, 2:05 PMechoing-bird-61980
02/19/2023, 2:05 PMechoing-bird-61980
02/19/2023, 2:06 PMred-machine-69654
02/19/2023, 2:07 PMhttps://*.<http://gitpod.io|gitpod.io><,/>
service B:
https://*.<http://gitpod.io/ui|gitpod.io/ui>
service C:
https://*.<http://gitpod.io/<**|gitpod.io/<**>>
echoing-bird-61980
02/19/2023, 2:08 PMred-machine-69654
02/19/2023, 2:08 PMred-machine-69654
02/19/2023, 2:09 PMred-machine-69654
02/19/2023, 2:11 PMcurved-oxygen-35290
02/19/2023, 2:44 PM"url": "https://*.<http://gitpod.io|gitpod.io><,/>",
as the only rule but get 404 on either "" or "/"red-machine-69654
02/19/2023, 3:01 PMcurved-oxygen-35290
02/19/2023, 3:13 PMime=2023-02-19T14:56:01Z level=warning msg=Access request denied audience=application error=map[debug: message:Requested url does not match any rules reason: stack_trace:
<http://github.com/ory/oathkeeper/rule.(*RepositoryMemory).Match|github.com/ory/oathkeeper/rule.(*RepositoryMemory).Match>
/project/rule/repository_memory.go:131
<http://github.com/ory/oathkeeper/proxy.(*Proxy).Director|github.com/ory/oathkeeper/proxy.(*Proxy).Director>
/project/proxy/proxy.go:110
net/http/httputil.(*ReverseProxy).ServeHTTP
/usr/local/go/src/net/http/httputil/reverseproxy.go:263
<http://github.com/urfave/negroni.Wrap.func1|github.com/urfave/negroni.Wrap.func1>
/go/pkg/mod/github.com/urfave/negroni@v1.0.0/negroni.go:46
<http://github.com/urfave/negroni.HandlerFunc.ServeHTTP|github.com/urfave/negroni.HandlerFunc.ServeHTTP>
/go/pkg/mod/github.com/urfave/negroni@v1.0.0/negroni.go:29
<http://github.com/urfave/negroni.middleware.ServeHTTP|github.com/urfave/negroni.middleware.ServeHTTP>
/go/pkg/mod/github.com/urfave/negroni@v1.0.0/negroni.go:38
<http://github.com/ory/x/corsx.ContextualizedMiddleware.func1|github.com/ory/x/corsx.ContextualizedMiddleware.func1>
/go/pkg/mod/github.com/ory/x@v0.0.532/corsx/middleware.go:26
<http://github.com/urfave/negroni.HandlerFunc.ServeHTTP|github.com/urfave/negroni.HandlerFunc.ServeHTTP>
/go/pkg/mod/github.com/urfave/negroni@v1.0.0/negroni.go:29
<http://github.com/urfave/negroni.middleware.ServeHTTP|github.com/urfave/negroni.middleware.ServeHTTP>
/go/pkg/mod/github.com/urfave/negroni@v1.0.0/negroni.go:38
<http://github.com/ory/x/reqlog.(*Middleware).ServeHTTP|github.com/ory/x/reqlog.(*Middleware).ServeHTTP>
/go/pkg/mod/github.com/ory/x@v0.0.532/reqlog/middleware.go:142
<http://github.com/urfave/negroni.middleware.ServeHTTP|github.com/urfave/negroni.middleware.ServeHTTP>
/go/pkg/mod/github.com/urfave/negroni@v1.0.0/negroni.go:38
<http://github.com/ory/oathkeeper/metrics.(*Middleware).ServeHTTP|github.com/ory/oathkeeper/metrics.(*Middleware).ServeHTTP>
curved-oxygen-35290
02/19/2023, 3:19 PMechoing-bird-61980
02/19/2023, 3:22 PMcurved-oxygen-35290
02/19/2023, 3:23 PMaccess_rules:
matching_strategy: glob
repositories:
- file:///home/bbs/.config/rules.json
curved-oxygen-35290
02/19/2023, 3:25 PM"url": "<https://8080-jmls-umvikeli-3iteye1cbgt.ws-eu87.gitpod.io><**>",
workscurved-oxygen-35290
02/19/2023, 3:25 PM"url": "https://*.<http://gitpod.io|gitpod.io><**>",
does notcurved-oxygen-35290
02/19/2023, 3:26 PMechoing-bird-61980
02/19/2023, 3:27 PMechoing-bird-61980
02/19/2023, 3:27 PMcurved-oxygen-35290
02/19/2023, 3:27 PMcurved-oxygen-35290
02/19/2023, 3:28 PMechoing-bird-61980
02/19/2023, 3:28 PMcurved-oxygen-35290
02/19/2023, 3:28 PMechoing-bird-61980
02/19/2023, 3:28 PMechoing-bird-61980
02/19/2023, 3:28 PMcurved-oxygen-35290
02/19/2023, 3:28 PM"url": "https://<*>.<http://gitpod.io|gitpod.io><**>",
curved-oxygen-35290
02/19/2023, 3:29 PMechoing-bird-61980
02/19/2023, 3:29 PMhttps://<*.<http://gitpod.io/**|gitpod.io/**>>
echoing-bird-61980
02/19/2023, 3:29 PMcurved-oxygen-35290
02/19/2023, 3:30 PM"url": "https://<*.<http://gitpod.io/**|gitpod.io/**>>",
nopeechoing-bird-61980
02/19/2023, 3:32 PMcurved-oxygen-35290
02/19/2023, 3:32 PMcurved-oxygen-35290
02/19/2023, 3:32 PM"url": "https://<**.<http://gitpod.io/**|gitpod.io/**>>",
works 🤔curved-oxygen-35290
02/19/2023, 3:32 PMcurved-oxygen-35290
02/19/2023, 3:32 PMcurved-oxygen-35290
02/19/2023, 3:33 PMechoing-bird-61980
02/19/2023, 3:33 PMechoing-bird-61980
02/19/2023, 3:36 PMhttps://<*.<http://gitpod.io|gitpod.io>*>
Should match:
<https://8080-jmls-umvikeli-3iteye1cbgt.ws-eu87.gitpod.io>
<https://8080-jmls-umvikeli-3iteye1cbgt.ws-eu87.gitpod.io/>
Then:
https://<*.<http://gitpod.io/ui|gitpod.io/ui>>
Should match:
<https://8080-jmls-umvikeli-3iteye1cbgt.ws-eu87.gitpod.io/ui>
curved-oxygen-35290
02/19/2023, 3:37 PMcurved-oxygen-35290
02/19/2023, 3:39 PMRequested url does not match any rules
curved-oxygen-35290
02/19/2023, 3:40 PMechoing-bird-61980
02/19/2023, 3:40 PMcurved-oxygen-35290
02/19/2023, 3:40 PMcurved-oxygen-35290
02/19/2023, 3:40 PMechoing-bird-61980
02/19/2023, 3:41 PM<https://8080-jmls-umvikeli-3iteye1cbgt.ws-eu87.gitpod.io>
doesn't match a rule?curved-oxygen-35290
02/19/2023, 3:41 PMcurved-oxygen-35290
02/19/2023, 3:41 PM/
nor /ui
echoing-bird-61980
02/19/2023, 3:42 PMcurved-oxygen-35290
02/19/2023, 3:42 PMechoing-bird-61980
02/19/2023, 3:43 PMcurved-oxygen-35290
02/19/2023, 3:48 PMechoing-bird-61980
02/19/2023, 3:49 PMechoing-bird-61980
02/19/2023, 3:51 PMhttps://<**.<http://gitpod.io|gitpod.io>*>
Should match:
<https://8080-jmls-umvikeli-3iteye1cbgt.ws-eu87.gitpod.io>
<https://8080-jmls-umvikeli-3iteye1cbgt.ws-eu87.gitpod.io/>
Then:
https://<**.<http://gitpod.io/ui|gitpod.io/ui>>
Should match:
<https://8080-jmls-umvikeli-3iteye1cbgt.ws-eu87.gitpod.io/ui>
echoing-bird-61980
02/19/2023, 3:51 PMred-machine-69654
02/19/2023, 3:56 PMechoing-bird-61980
02/19/2023, 4:03 PMcurved-oxygen-35290
02/19/2023, 4:26 PMcurved-oxygen-35290
02/19/2023, 4:26 PM[
{
"id": "allow_all",
"version": "v0.40.1",
"upstream": {
"url": "<http://umvikeli:4200>"
},
"match": {
"url": "https://<**.gitpod.io*>",
"methods": [
"GET",
"PUT",
"POST",
"DELETE",
"PATCH"
]
},
"authenticators": [
{
"handler": "anonymous"
}
],
"authorizer": {
"handler": "allow"
},
"mutators": [
{
"handler": "header",
"config": {
"headers": {
"X-User": "{{ print .Subject }}"
}
}
}
]
}
,{
"id": "allow_all",
"version": "v0.40.1",
"upstream": {
"url": "<http://umvikeli:8081>",
"strip_path": "ui"
},
"match": {
"url": "https://<**.gitpod.io/ui>",
"methods": [
"GET",
"PUT",
"POST",
"DELETE",
"PATCH"
]
},
"authenticators": [
{
"handler": "anonymous"
}
],
"authorizer": {
"handler": "allow"
},
"mutators": [
{
"handler": "header",
"config": {
"headers": {
"X-User": "{{ print .Subject }}"
}
}
}
]
}
]
curved-oxygen-35290
02/19/2023, 4:27 PMcurved-oxygen-35290
02/19/2023, 4:27 PMcurved-oxygen-35290
02/19/2023, 4:27 PMtime=2023-02-19T16:24:48Z level=debug msg=Viper detected a configuration change, updating matching strategy audience=application event=matching_strategy_config_change service_name=ORY Oathkeeper service_version=v0.40.1 source=entrypoint
time=2023-02-19T16:24:48Z level=debug msg=One or more access rule repositories changed, reloading access rules. audience=application event=repository_change file=file:///home/bbs/.config/rules.json service_name=ORY Oathkeeper service_version=v0.40.1 source=config_update
time=2023-02-19T16:24:48Z level=debug msg=Fetching access rules from given location because something changed. audience=application location=file:///home/bbs/.config/rules.json service_name=ORY Oathkeeper service_version=v0.40.1
time=2023-02-19T16:24:48Z level=info msg=Software quality assurance features are enabled. Learn more at: <https://www.ory.sh/docs/ecosystem/sqa> audience=application service_name=ORY Oathkeeper service_version=v0.40.1
time=2023-02-19T16:24:48Z level=info msg=TLS has not been configured for api, skipping audience=application service_name=ORY Oathkeeper service_version=v0.40.1
time=2023-02-19T16:24:48Z level=info msg=Listening on http://:3000 audience=application service_name=ORY Oathkeeper service_version=v0.40.1
time=2023-02-19T16:24:48Z level=info msg=TLS has not been configured for proxy, skipping audience=application service_name=ORY Oathkeeper service_version=v0.40.1
time=2023-02-19T16:24:48Z level=info msg=Listening on http://:8080 audience=application service_name=ORY Oathkeeper service_version=v0.40.1
time=2023-02-19T16:24:48Z level=info msg=Listening on http://:9000 audience=application service_name=ORY Oathkeeper service_version=v0.40.1
curved-oxygen-35290
02/19/2023, 4:30 PMechoing-bird-61980
02/19/2023, 4:32 PMcurved-oxygen-35290
02/19/2023, 4:35 PM- id: "api:protected"
upstream:
preserve_host: false
url: "<http://umvikeli:4200>"
match:
url: "https://<**.gitpod.io*>"
methods:
- GET
- DELETE
- PATCH
- POST
- PUT
authenticators:
- handler: anonymous
mutators:
- handler: header
config:
headers:
X-User: "{{ print .Subject }}"
authorizer:
handler: allow
curved-oxygen-35290
02/19/2023, 4:35 PMtime=2023-02-19T16:34:15Z level=debug msg=One or more access rule repositories changed, reloading access rules. audience=application event=repository_change file=file:///home/bbs/.config/access-rules.yml service_name=ORY Oathkeeper service_version=v0.40.1 source=config_update
curved-oxygen-35290
02/19/2023, 4:35 PM<https://8080-jmls-umvikeli-3iteye1cbgt.ws-eu87.gitpod.io>
curved-oxygen-35290
02/19/2023, 4:36 PM{
"error": {
"code": 404,
"status": "Not Found",
"message": "Requested url does not match any rules"
}
}
curved-oxygen-35290
02/19/2023, 4:36 PMcurved-oxygen-35290
02/19/2023, 4:37 PM<https://8080-jmls-umvikeli-3iteye1cbgt.ws-eu87.gitpod.io/?vscodeBrowserReqId=xxxx>
curved-oxygen-35290
02/19/2023, 4:40 PMhttps://<*.<http://gitpod.io/**|gitpod.io/**>>
?echoing-bird-61980
02/19/2023, 4:40 PMhttps://*.<http://domain.com/ui/**|domain.com/ui/**>
After:
https://*.<http://domain.com/**|domain.com/**>
curved-oxygen-35290
02/19/2023, 4:40 PMechoing-bird-61980
02/19/2023, 4:41 PMcurved-oxygen-35290
02/19/2023, 4:42 PMechoing-bird-61980
02/19/2023, 4:43 PMpreserve_query: true
maybe?curved-oxygen-35290
02/19/2023, 4:46 PMcurved-oxygen-35290
02/19/2023, 4:47 PMcurved-oxygen-35290
02/19/2023, 4:48 PMcurved-oxygen-35290
02/19/2023, 4:48 PM/usr/local/go/src/runtime/asm_amd64.s:1594 status:Not Found status_code:404] granted=false http_host=<http://8080-jmls-umvikeli-3iteye1cbgt.ws-eu87.gitpod.io|8080-jmls-umvikeli-3iteye1cbgt.ws-eu87.gitpod.io> http_method=GET http_url=<https://8080-jmls-umvikeli-3iteye1cbgt.ws-eu87.gitpod.io/?vscodeBrowserReqId=1676825263176> http_user_agent=Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36 service_name=ORY Oathkeeper service_version=v0.40.1
time=2023-02-19T16:47:43Z level=info msg=An error occurred while handling a request audience=application error=map[debug: message:Requested url does not match any rules reason: stack_trace:
curved-oxygen-35290
02/19/2023, 4:49 PMaccess_rules:
matching_strategy: glob
curved-oxygen-35290
02/19/2023, 4:51 PMcurved-oxygen-35290
02/19/2023, 4:51 PM[{"id":"api:protected","version":"v0.40.1","description":"","match":{"methods":["GET","DELETE","PATCH","POST","PUT"],"url":"https://\u003c*.<http://gitpod.io/**\u003e%22},%22authenticators%22:[{%22handler%22:%22anonymous%22,%22config%22:null}],%22authorizer%22:{%22handler%22:%22allow%22,%22config%22:null},%22mutators%22:[{%22handler%22:%22header%22,%22config%22:{%22headers%22:{%22X-User%22:%22{{|gitpod.io/**\u003e"},"authenticators":[{"handler":"anonymous","config":null}],"authorizer":{"handler":"allow","config":null},"mutators":[{"handler":"header","config":{"headers":{"X-User":"{{> print .Subject }}"}}}],"errors":null,"upstream":{"preserve_host":false,"strip_path":"","url":"<http://umvikeli:4200>"}}]
curved-oxygen-35290
02/19/2023, 4:51 PMcurved-oxygen-35290
02/19/2023, 4:51 PM\u003e
correct ?echoing-bird-61980
02/19/2023, 4:52 PMechoing-bird-61980
02/19/2023, 4:52 PMcurved-oxygen-35290
02/19/2023, 4:52 PMechoing-bird-61980
02/19/2023, 4:53 PMechoing-bird-61980
02/19/2023, 4:53 PMechoing-bird-61980
02/19/2023, 4:54 PMcurved-oxygen-35290
02/19/2023, 4:54 PMcurved-oxygen-35290
02/19/2023, 4:54 PMechoing-bird-61980
02/19/2023, 4:56 PMechoing-bird-61980
02/19/2023, 4:57 PMhttps://**.<http://gitpod.io/ui/**|gitpod.io/ui/**>
curved-oxygen-35290
02/19/2023, 5:19 PM<https://8080-jmls-umvikeli-3iteye1cbgt.ws-eu87.gitpod.io/ui/welcome>
gives {"error":{"code":500,"status":"Internal Server Error","message":"Expected exactly one rule but found multiple rules"}}
curved-oxygen-35290
02/19/2023, 5:19 PMechoing-bird-61980
02/19/2023, 5:19 PMcurved-oxygen-35290
02/19/2023, 5:20 PM- id: "ui:protected"
upstream:
preserve_host: false
preserve_query: true
strip_path: "/ui/"
url: "<http://umvikeli:8081>"
match:
url: "https://<**.gitpod.io/ui/**>"
methods:
- GET
- DELETE
- PATCH
- POST
- PUT
authenticators:
- handler: anonymous
mutators:
- handler: header
config:
headers:
X-User: "{{ print .Subject }}"
authorizer:
handler: allow
- id: "api:protected"
upstream:
preserve_host: false
preserve_query: true
url: "<http://umvikeli:4200>"
match:
url: "https://<**.gitpod.io/**>"
methods:
- GET
- DELETE
- PATCH
- POST
- PUT
authenticators:
- handler: anonymous
mutators:
- handler: header
config:
headers:
X-User: "{{ print .Subject }}"
authorizer:
handler: allow
echoing-bird-61980
02/19/2023, 5:21 PMhttps://**.<http://gitpod.io|gitpod.io>**
echoing-bird-61980
02/19/2023, 5:23 PMhttps://**.<http://gitpod.io/ui{,/**}|gitpod.io/ui{,/**}>
curved-oxygen-35290
02/19/2023, 5:24 PMechoing-bird-61980
02/19/2023, 5:25 PMhttps://<**.<http://gitpod.io/ui{,/**}|gitpod.io/ui{,/**}>>
echoing-bird-61980
02/19/2023, 5:25 PMcurved-oxygen-35290
02/19/2023, 5:27 PM"https://<**.<http://gitpod.io/ui{,/**}|gitpod.io/ui{,/**}>>"
then "https://<**.<http://gitpod.io|gitpod.io>**>"
?echoing-bird-61980
02/19/2023, 5:27 PMcurved-oxygen-35290
02/19/2023, 5:28 PMcurved-oxygen-35290
02/19/2023, 5:29 PMechoing-bird-61980
02/19/2023, 5:29 PMechoing-bird-61980
02/19/2023, 5:29 PMhttps://**.<http://gitpod.io|gitpod.io>*
just try one *curved-oxygen-35290
02/19/2023, 5:30 PMechoing-bird-61980
02/19/2023, 5:30 PMhttps://<**.<http://gitpod.io/ui{,/**}|gitpod.io/ui{,/**}>>
== https://<**.<http://gitpod.io/{ui,ui/**}|gitpod.io/{ui,ui/**}>>
If you want the more readable oneechoing-bird-61980
02/19/2023, 5:31 PMcurved-oxygen-35290
02/19/2023, 5:32 PMechoing-bird-61980
02/19/2023, 5:32 PMhttps://<**.<http://gitpod.io|gitpod.io>{,/}>
curved-oxygen-35290
02/19/2023, 5:38 PMechoing-bird-61980
02/19/2023, 5:38 PMcurved-oxygen-35290
02/19/2023, 5:38 PMcurved-oxygen-35290
02/19/2023, 5:38 PMechoing-bird-61980
02/19/2023, 5:39 PMcurved-oxygen-35290
02/19/2023, 5:40 PMcurved-oxygen-35290
02/19/2023, 5:40 PM{"error":{"code":500,"status":"Internal Server Error","message":"Expected exactly one rule but found multiple rules"}}
echoing-bird-61980
02/19/2023, 5:41 PMcurved-oxygen-35290
02/19/2023, 5:41 PM/
curved-oxygen-35290
02/19/2023, 5:41 PMechoing-bird-61980
02/19/2023, 5:42 PMcurved-oxygen-35290
02/19/2023, 5:43 PMechoing-bird-61980
02/19/2023, 6:01 PMhttps://<**.<http://gitpod.io/!(ui){,/**}|gitpod.io/!(ui){,/**}>>
echoing-bird-61980
02/19/2023, 6:01 PMcurved-oxygen-35290
02/19/2023, 6:44 PMcurved-oxygen-35290
02/19/2023, 6:44 PMcurved-oxygen-35290
02/19/2023, 6:45 PMurl: "https://<**.<http://gitpod.io/{ui,ui/**}|gitpod.io/{ui,ui/**}>>"
works for <https://8080-jmls-umvikeli-3iteye1cbgt.ws-eu87.gitpod.io/ui/>
but not <https://8080-jmls-umvikeli-3iteye1cbgt.ws-eu87.gitpod.io/ui>
(404)echoing-bird-61980
02/19/2023, 6:47 PMechoing-bird-61980
02/19/2023, 6:48 PMcurved-oxygen-35290
02/19/2023, 6:50 PMcurved-oxygen-35290
02/19/2023, 6:50 PMlevel=warning msg=Access request denied audience=application error=map[debug: message:Requested url does not match any rules reason: stack_trace:
echoing-bird-61980
02/19/2023, 6:52 PMechoing-bird-61980
02/19/2023, 6:53 PMhttps://<**.<http://gitpod.io/ui{,/**}|gitpod.io/ui{,/**}>>
does this one work?curved-oxygen-35290
02/19/2023, 6:56 PMcurved-oxygen-35290
02/19/2023, 6:57 PMechoing-bird-61980
02/19/2023, 6:57 PMcurved-oxygen-35290
02/19/2023, 6:58 PMechoing-bird-61980
02/19/2023, 6:58 PM{ui,ui**,ui/**}
echoing-bird-61980
02/19/2023, 6:59 PM{ui**,ui/**}
actuallyechoing-bird-61980
02/19/2023, 7:03 PMcurved-oxygen-35290
02/19/2023, 7:03 PMcurved-oxygen-35290
02/19/2023, 7:03 PMechoing-bird-61980
02/19/2023, 7:03 PMcurved-oxygen-35290
02/19/2023, 7:06 PMechoing-bird-61980
02/19/2023, 7:06 PMred-machine-69654
02/19/2023, 7:40 PMred-machine-69654
02/19/2023, 7:40 PMechoing-bird-61980
02/19/2023, 7:41 PMcurved-oxygen-35290
02/19/2023, 8:01 PMechoing-bird-61980
02/19/2023, 9:03 PM{ui**,ui/**}
& {ui,ui/**}
should workred-machine-69654
02/19/2023, 9:23 PMechoing-bird-61980
02/19/2023, 9:24 PMred-machine-69654
02/19/2023, 9:24 PMred-machine-69654
02/19/2023, 9:25 PMechoing-bird-61980
02/19/2023, 9:26 PMred-machine-69654
02/19/2023, 9:27 PM- id: ory:runway:protected-api
upstream:
preserve_host: false
url: <http://controller:8000>
match:
url: <http://api.runway.127.0.0.1.nip.io/><{,apps,apps/**,certs,certs/**,keys/**,users,admin/**,auth/whoami/}>
methods:
- GET
- POST
- DELETE
- OPTIONS
so essentially this allows all the methods on the host (with trailing slash) and then for /apps*, /certs* etc.red-machine-69654
02/19/2023, 9:27 PMechoing-bird-61980
02/19/2023, 9:29 PMechoing-bird-61980
02/19/2023, 9:31 PMechoing-bird-61980
02/19/2023, 9:32 PMred-machine-69654
02/19/2023, 9:32 PMred-machine-69654
02/19/2023, 9:33 PMechoing-bird-61980
02/19/2023, 9:33 PMechoing-bird-61980
02/19/2023, 9:33 PMcurved-oxygen-35290
02/19/2023, 9:42 PMurl: http://<*.<http://nip.io/<{,apps,apps/**,certs,certs/**}|nip.io/<{,apps,apps/**,certs,certs/**}>>
and
url: http://<*.<http://nip.io/<{,keys/**,users,admin/**,auth/whoami/}|nip.io/<{,keys/**,users,admin/**,auth/whoami/}>>
red-machine-69654
02/19/2023, 9:43 PMcurved-oxygen-35290
02/19/2023, 9:44 PMred-machine-69654
02/19/2023, 9:44 PMred-machine-69654
02/19/2023, 9:44 PM,
red-machine-69654
02/19/2023, 9:44 PMcurved-oxygen-35290
02/19/2023, 9:45 PMred-machine-69654
02/19/2023, 9:45 PMred-machine-69654
02/19/2023, 9:45 PMred-machine-69654
02/19/2023, 9:46 PMurl: http://<*.<http://nip.io/<{,apps,apps/**,certs,certs/**}|nip.io/<{,apps,apps/**,certs,certs/**}>>
url: http://<*.<http://nip.io/<{keys/**,users,admin/**,auth/whoami/}|nip.io/<{keys/**,users,admin/**,auth/whoami/}>>
See the difference?
The first will also match http://*.<http://nip.io/|nip.io/>
but the second one won'tred-machine-69654
02/19/2023, 9:48 PM>
but anywaycurved-oxygen-35290
02/19/2023, 10:19 PMurl: "https://<**.<http://gitpod.io/{,ui,ui/**}|gitpod.io/{,ui,ui/**}>>"
matches <https://8080-jmls-umvikeli-3iteye1cbgt.ws-eu87.gitpod.io/ui/>
and <https://8080-jmls-umvikeli-3iteye1cbgt.ws-eu87.gitpod.io/ui/welcome>
but doesn't match <https://8080-jmls-umvikeli-3iteye1cbgt.ws-eu87.gitpod.io/ui>
but not because of oathkeeper 😠 Turns out that the "kratos-selfservice-ui-node" app , even though BASE_PATH=ui
is defined, redirects "/ui" to "/welcome" .. but redirects "/ui/" to "/ui/welcome"
I have strip_path set to "/ui" so need to figure out if it's a strip path problem or an issue with the selfservice app itselfcurved-oxygen-35290
02/19/2023, 10:20 PM{,
matches the root of the url ?echoing-bird-61980
02/19/2023, 10:39 PMcurved-oxygen-35290
02/19/2023, 11:02 PMechoing-bird-61980
02/19/2023, 11:33 PM