hi all. is anyone here a glob master? I cant for t...
# talk-oathkeeper
a
hi all. is anyone here a glob master? I cant for the life of me work out how to get this access rule working in oathkeeper... I want to basically match any path except /socket. This is what I have... it correctly excludes /socket work works for "/" but it fails to work for /anypath
Copy code
id: "app:protected"
  upstream:
    preserve_host: true
    url: "<http://web-app:3000>"
  match:
    url: "<http://mydomain.com:4455><{,/,/([^socket]).*}>"
...
t
This should be what you're after
Copy code
url: "<http://mydomain.com:4455/><(?!socket)(.*)>"
a
think that's regex, but im considering swapping over to this!
t
Ah yes, sorry, I missed your comment about glob. Personally prefer regex given the choice 😄
a
Np. it defeated my patience and I swapped the entire config over to regex. all good now 😄