graphql-engine/docs/graphql/core
Swann Moreau 8bd34b4a51 server, pro: add support for per-role allowlists
spec: https://github.com/hasura/graphql-engine-mono/pull/2278

Briefly:
- extend metadata so that allowlist entries get a new scope field
- update `add_collection_to_allowlist` to accept this new scope field,
  and adds `update_scope_of_collection_in_allowlist` to change the scope
- scope can be global or role-based; a collection is available for every
  role if it is global, and available to every listed role if it is role-based
- graphql-engine-oss is aware of role-based allowlist metadata; collections
  with non-global scope are treated as if they weren't in the allowlist

To run the tests:
- `cabal run graphql-engine-tests -- unit --match Allowlist`
- py-tests against pro:
  - launch `graphql-engine-pro` with `HASURA_GRAPHQL_ADMIN_SECRET` and `HASURA_GRAPHQL_ENABLE_ALLOWLIST`
  - `pytest test_allowlist_queries.py --hge-urls=... --pg-urls=... --hge-key=... --test-allowlist-queries --pro-tests`

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2477
Co-authored-by: Anon Ray <616387+ecthiender@users.noreply.github.com>
Co-authored-by: Robert <132113+robx@users.noreply.github.com>
GitOrigin-RevId: 01f8026fbe59d8701e2de30986511a452fce1a99
2022-02-08 16:54:49 +00:00
..
actions rename webhook transforms to REST Connectors 2022-01-17 13:28:04 +00:00
api-reference server, pro: add support for per-role allowlists 2022-02-08 16:54:49 +00:00
auth docs: update Azure doc with JWT set up steps (fix #5413) 2022-02-07 15:02:51 +00:00
business-logic docs: update paths for core and cloud (#5665) 2020-08-25 21:51:21 +05:30
databases docs/mssql: add update and update index 2022-02-08 13:19:46 +00:00
deployment server, pro: add support for per-role allowlists 2022-02-08 16:54:49 +00:00
event-triggers docs: update references, api signatures, image widths 2022-01-10 18:40:21 +00:00
faq docs: move FAQ section to top-level in sidebar + update metadata catalogue details 2022-01-31 18:03:51 +00:00
getting-started docs: update references, api signatures, image widths 2022-01-10 18:40:21 +00:00
guides docs: move FAQ section to top-level in sidebar + update metadata catalogue details 2022-01-31 18:03:51 +00:00
hasura-cli tag release v2.2.0 2022-02-02 12:49:55 +00:00
how-it-works docs: move FAQ section to top-level in sidebar + update metadata catalogue details 2022-01-31 18:03:51 +00:00
integration docs: update paths for core and cloud (#5665) 2020-08-25 21:51:21 +05:30
introduction docs: update paths for core and cloud (#5665) 2020-08-25 21:51:21 +05:30
migrations docs: clarify server console in migrations guide 2022-01-17 08:02:54 +00:00
performance docs: update paths for core and cloud (#5665) 2020-08-25 21:51:21 +05:30
remote-schemas docs: update references, api signatures, image widths 2022-01-10 18:40:21 +00:00
scheduled-triggers docs: update references, api signatures, image widths 2022-01-10 18:40:21 +00:00
security-disclosure docs: update paths for core and cloud (#5665) 2020-08-25 21:51:21 +05:30
troubleshooting docs: move FAQ section to top-level in sidebar + update metadata catalogue details 2022-01-31 18:03:51 +00:00
version-control docs: update paths for core and cloud (#5665) 2020-08-25 21:51:21 +05:30
index.rst docs: move FAQ section to top-level in sidebar + update metadata catalogue details 2022-01-31 18:03:51 +00:00