Request Hook Invoked for All Query/Mutations #7413
Unanswered
browniefed
asked this question in
General
Replies: 1 comment 2 replies
-
This feature doesn't currently work this way, but if the table selector of event triggers behaved in a way that it would trigger the event on all tables and ll columns simulate the behavior you want? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Why
For certain industries it is beneficial / required to track all data requests into the system.
Issue
Currently if a consumer of Hasura wants to track / log every request coming through the system there is no clean way of doing so.
The only current solution is to leverage the AUTH_HOOK however if a user can't or is using a different authentication flow it becomes impossible to track all queries.
Tracking mutations can happen via event triggers but this does not solve the query tracking issue.
Other solutions would also include proxying all requests and logging, but that is also less than ideal as it requires more infrastructure.
Request
A new environment variable that is an HTTP endpoint that gets invoked with every request/mutation but is non-blocking.
A non blocking endpoint that is invoked on every request whether it be a query/mutation, but does not block the flow of the query/mutation like AUTH_HOOK.
Beta Was this translation helpful? Give feedback.
All reactions