hasura / hasura/graphql-engine

Support action custom checks

Open
#9,485 2 comments 0 reactions 0 assignees View on GitHub
k/enhancement t/gql-services
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

### Is your proposal related to a problem?

Currently, you can unfortunately only check at the row level. But it would be really practical to check in general if the query is justified.

### Describe the solution you'd like

Add a Action permission custom check (not row based):

![grafik](https://user-images.githubusercontent.com/44057030/223736525-329cc1d7-cfec-4447-8d1c-21bcdd8fcb25.png)
![grafik](https://user-images.githubusercontent.com/44057030/223737649-edd40192-2d95-4016-8ee8-a031cc5b6ffd.png)

Also with iregex

### Describe alternatives you've considered

Currently I have no idea how to work around it. Only to add the text to each row. But with regex check it would be very slow.

Contributor guide

Open the contributing guide

Research direction

The issue names no files, tests, or entry points. Start by locating the action-permission and custom-check implementation, then compare it with row-level checks and the regex path. Done should include a non-row-based action check, including the requested iregex behavior, with coverage for the resulting permission decisions.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql
Domain
api, authorization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.