Open gen1us2k opened 2 years ago
That's true, unfortunately, I don't know whether it will be possible to fix this as the glob library does not support capture groups as far as I know. The only alternative would be to use an alternate implementation of glob matching that supports capture groups, but I don't know if such a library exists?
@aeneasr have to check licensing but a reference from pachyderm exists : https://github.com/pachyderm/pachyderm/pull/3834/files
Preflight checklist
Describe the bug
A detailed explanation can be found in this discussion. I assume that oathkeeper has this issue because of missing implementation of FindStringSubmatch and ReplaceAllString methods for globMatchingEngine
Reproducing the bug
set
matchingStrategy: glob
and use these access rules----- Request Start -----> Method: GET Path: /foo/bar
Headers: X-Groups:
X-Header: map[Accept:[/] User-Agent:[curl/7.77.0]] X-Method: GET X-Url: http://localhost:4455/foo/bar
<----- Request End -----
Relevant log output
No response
Relevant configuration
No response
Version
v0.38.23-beta.1
On which operating system are you observing this issue?
No response
In which environment are you deploying?
No response
Additional Context
No response