-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auth: REST + Webhook Auth operation context missing #8771
Comments
i'll send a sample PR soon i explored and changed the approach from described above and it should enable support
highlight resource= |
If the request body can include the restful URL and params, it will help a lot for the auth server to validate the request from some third-party webhook callbacks. can we reopen this? Right now the body is just like : { headers: {...}, request: null } ideally it looks like this: { headers: {...}, request: { path, params } } |
@robertjdominguez thanks for replying. But I don't think these are the same issues. This one is more related to auth webhook side of things, which is more about missing the request information of payload sent from hasura engine for restified endpoint. |
I have no Haskell knowledge at all, but it seems we could modify this block of code to create and pass the extra request info: graphql-engine/server/src-lib/Hasura/Server/App.hs Lines 371 to 377 in 6c779b1
|
Got it, @axe-me 👍 The team is heads-down on v3 at the moment, but I'll bring this up next week and see if someone has the bandwidth to take a look! |
thanks in advance! I put up a PR, but I'm nothing sure if this gonna work since I have zero knowledge about haskell before. #10049 |
@robertjdominguez Hi Rob, just a kindly reminder here, do you think if you have any time to review my PR above this week? Don't want to be pushy, but this is kinda become a roadblock for our development. |
I totally get it @axe-me, and sorry to hear this is a blocker for you. I've reached out to the team and they're trying to prioritize the review with other work. I'll update you as soon as I know more 👍 |
Is your proposal related to a problem?
Inconsistent behavior of webhook
request
for REST api. #7910I am unable to pass queryParam from ENV variable (secret required by external system)
Solution
Consistent webhook that provides the context for REST & graphql queries
Given:
HASURA_GRAPHQL_AUTH_HOOK=GET
HASURA_GRAPHQL_AUTH_HOOK=POST
When the operation name is available to the auth webhook
I would be able to pass the
x-hasura-external-api-secret
and use it via${session_variables[...]}
in theaction
But only when operationName / path should have access to this
If the feature is approved, would you be willing to submit a PR?
No
The text was updated successfully, but these errors were encountered: