How can I have a hydrator change the path of the r...
# talk-oathkeeper
w
How can I have a hydrator change the path of the request dynamically ? Is that possible ?
i
Can you give an example about what you would like to achieve?
w
im want to use oathkeeper as proxy for https://www.metabase.com/docs/latest/embedding/signed-embedding And that requires you to put a signed JWT in the path. But I dont want client to have the key to sign JWT itself, but client do have kratos session, which is a nice usecase for oathkeeper
i
This is not possible with a hydrator. None of the pipeline handler modify the request url. The only area where that happens in the
upstream
property. That can however strip only a prefix. Nothing else.
IMHO, this is a very bad idea putting a jwt into a path. 1. a JWT may contain sensitive information, which will appear in any audit logs 2. if a JWT is used for authentication purposes, it will leak for the same reasons as well and depending on its ttl, may be misused.
Regardless of my opinion, there is currently no way achieving that with oathkeeper.
w
Yeah, its weird choice by metabase, its not my choice, but thanks for answers!🙌
Will make a custom proxy then, maybe use decision endpoin