https://www.ory.sh/ logo
#talk-oathkeeper
Title
# talk-oathkeeper
a

adorable-byte-96872

04/28/2022, 2:00 PM
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

tall-angle-41306

04/28/2022, 3:58 PM
This should be what you're after
Copy code
url: "<http://mydomain.com:4455/><(?!socket)(.*)>"
a

adorable-byte-96872

04/29/2022, 2:41 AM
think that's regex, but im considering swapping over to this!
t

tall-angle-41306

04/29/2022, 3:03 PM
Ah yes, sorry, I missed your comment about glob. Personally prefer regex given the choice 😄
a

adorable-byte-96872

04/30/2022, 7:29 AM
Np. it defeated my patience and I swapped the entire config over to regex. all good now 😄
2 Views