stale-queen-97584
07/11/2022, 10:03 PMetc/hosts)
which returns a nice:
{
"error": {
"code": 404,
"status": "Not Found",
"request": "1aefe479992b0a9e839a50ae3fcbc7e2",
"message": "Requested url does not match any rules"
}
}
The accessRule doesn’t give any k8s errors, but the browser returns the previous error. This is the config for our rule:
accessRules: |
[
{
"id": "kratos:api",
"upstream": {
"url": "<https://httpbin.org/anything/header>",
"preserve_host": true
},
"match": {
"url": "<http://dashboard.commondatafactory.nl>",
"methods": ["GET"]
},
"authenticators": [{ "handler": "noop" }],
"authorizer": { "handler": "allow" },
"mutators": [{ "handler": "noop" }],
}
]
proud-plumber-24205
07/13/2022, 8:11 AMetc/hosts
? I don't think you can specify a port in etc/hosts
, so are you running oathkeeper on port 80? or do you add a port to the url in the browser? What does the request URL look like in the browser?stale-queen-97584
07/14/2022, 10:02 AMetc/hosts
sets the ingress host to localhost. I believe we resolved the issue. It was actually working, but since the external browser doesn’t have access to the cluster, it wouldn’t reach 😅proud-plumber-24205
07/14/2022, 10:14 AMstale-queen-97584
07/14/2022, 10:14 AM