Commit Graph

55 Commits

Author SHA1 Message Date
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
hasura-bot
73ddb0be91 docs: update Azure doc with JWT set up steps (fix #5413)
GITHUB_PR_NUMBER: 5885
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/5885

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3226
Co-authored-by: jay <30862819+fr8in@users.noreply.github.com>
Co-authored-by: Divya Bhushan <11659160+divyabhushan@users.noreply.github.com>
Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
GitOrigin-RevId: 7202ff2c3666138056d6d06e3a270b3c300dde02
2022-02-07 15:02:51 +00:00
hasura-bot
0f0393d6e9 docs: update heroku deploy guide
GITHUB_PR_NUMBER: 8132
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/8132

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3565
Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
GitOrigin-RevId: 304113897046bfd0b85af2b7fe3d0660a0f71d33
2022-02-03 17:12:00 +00:00
hasura-bot
8827ba360f docs: update caddy example to use v2 format in digital ocean guide
GITHUB_PR_NUMBER: 7948
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/7948

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3169
Co-authored-by: Jeremy Moseley <4382100+jmoseley@users.noreply.github.com>
Co-authored-by: Divya Bhushan <11659160+divyabhushan@users.noreply.github.com>
GitOrigin-RevId: e223e63f3f3bae6358db4d0763cac18b94e903b2
2022-02-02 16:33:19 +00:00
hasura-bot
569af7a1e5 docs: Updating port for using HTTPS in NGINX on Enable HTTPS page
GITHUB_PR_NUMBER: 7184
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/7184

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/1730
Co-authored-by: Arman ali <29430838+armanism24@users.noreply.github.com>
GitOrigin-RevId: bd0c524a60460cdc787c10191fc866f73f3602bd
2022-02-02 09:16:08 +00:00
hasura-bot
5e58e6df37 docs: Updating Caddyfile v2 config in Enable HTTPS file
GITHUB_PR_NUMBER: 6529
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/6529

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/489
Co-authored-by: Francis Lavoie <2111701+francislavoie@users.noreply.github.com>
GitOrigin-RevId: 9bc3ff43fbaf0eda8c2cbb2c3dad46ce3a402938
2022-02-01 17:13:33 +00:00
hasura-bot
c25f02ff03 docs: edit the caddy file to exclude websocket on digital-ocean-one-click page
GITHUB_PR_NUMBER: 7179
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/7179

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/1722
Co-authored-by: Julius Francisco <53907+baldrailers@users.noreply.github.com>
GitOrigin-RevId: 34424445352066a9a01a465da8c4805e21cd7bce
2022-02-01 13:50:00 +00:00
Divya Bhushan
149f4b53d5 docs: Add missing image on the Azure container instances page
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3517
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
GitOrigin-RevId: a3b8925cea198a2cf9994062f2741536e4a9ee31
2022-01-31 16:50:08 +00:00
hasura-bot
69ea0e7026 docs: add Koyeb as a deployment option
GITHUB_PR_NUMBER: 6859
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/6859

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/1270
Co-authored-by: Edouard Bonlieu <2520463+edouardb@users.noreply.github.com>
Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
GitOrigin-RevId: c084a60b50b405452e60581e16dc27c1fa0b22fc
2022-01-18 12:34:15 +00:00
hasura-bot
866476ab36 docs: update references, api signatures, image widths
GITHUB_PR_NUMBER: 8011
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/8011

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3317
Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
GitOrigin-RevId: 90c8f75003a07c5153c9e478efa599ab0bfb85d9
2022-01-10 18:40:21 +00:00
hasura-bot
46fe9c605b docs: expose hasura on https on GCP using kubernetes (close #2956)
GITHUB_PR_NUMBER: 5770
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/5770

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3176
Co-authored-by: Vitalii Tverdokhlib <1549046+vitaliytv@users.noreply.github.com>
GitOrigin-RevId: ece332f40261e6b7afec58b81364967935b7ad9c
2021-12-17 08:38:01 +00:00
hasura-bot
169902f88a docs: fix typo in config examples page
GITHUB_PR_NUMBER: 7634
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/7634

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2489
Co-authored-by: thephenix4 <69722745+thephenix4@users.noreply.github.com>
Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
GitOrigin-RevId: 246da4575afa583ce44fc858ac1a1053a730cf26
2021-11-25 13:40:28 +00:00
Rikin Kachhia
536605fb99 docs: add Hasura Cloud caveat in configuring metadata db example
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2954
GitOrigin-RevId: 1ea35da4241b53100cdcdc2631fc6b41cccf8861
2021-11-24 12:29:47 +00:00
Divya Bhushan
7609ae84e1 docs: Fix typo in server config reference page
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2707
GitOrigin-RevId: 1920099e67d48299fa762b36c26c6e627a0694ec
2021-11-02 11:15:15 +00:00
Tirumarai Selvan
a27db0b658 docs: fix docs on debug mode and internal key
There were 2 problems in the docs:

1. Extensions key is always sent in error responses. The `internal` key requires debug mode.

2. Admin role errors have the `internal` key by default

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2550
GitOrigin-RevId: 4121f1ef45290896887be447a73f96b0d4e016b4
2021-10-11 09:30:50 +00:00
Sameer Kolhar
edeb8c98fd server: support for graphql-ws protocol
https://github.com/hasura/graphql-engine-mono/pull/1655

Co-authored-by: Rakesh Emmadi <12475069+rakeshkky@users.noreply.github.com>
Co-authored-by: Vijay Prasanna <11921040+vijayprasanna13@users.noreply.github.com>
Co-authored-by: hasura-bot <30118761+hasura-bot@users.noreply.github.com>
Co-authored-by: Brandon Simmons <210815+jberryman@users.noreply.github.com>
Co-authored-by: Varun Choudhary <68095256+Varun-Choudhary@users.noreply.github.com>
Co-authored-by: Divi <32202683+imperfect-fourth@users.noreply.github.com>
GitOrigin-RevId: 9db3902388fef06b94f9513255e2b5333bd23c3e
2021-08-24 16:26:12 +00:00
Rikin Kachhia
8246bcc9d3 docs: misc fixes
- add config api to default enabled api list
- add source key to pg_dump api ref
- add websocket-compression option to config ref
- add websocket-timeout option to config ref
- document using negative integers to decrement
- update one-to-one nested insert caveat

https://github.com/hasura/graphql-engine-mono/pull/2146

GitOrigin-RevId: d76bcdc136b2a25b9f2589155142f3272aa69c7b
2021-08-24 12:08:36 +00:00
Rikin Kachhia
8af24e9acc docs: update cloud project transfer guide
https://github.com/hasura/graphql-engine-mono/pull/2105

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
GitOrigin-RevId: cd7cf61c1de0c6ba3e4b0c5fbc9f9943d17e2c0c
2021-08-17 09:10:37 +00:00
Rikin Kachhia
1b1e60dba7 docs: add keywords for better search
https://github.com/hasura/graphql-engine-mono/pull/2003

GitOrigin-RevId: 68a5d461c4738a2671b438a009c9df2de471bed9
2021-08-05 16:38:31 +00:00
Karthikeyan Chinnakonda
0a3fd16c35 server: revert the relaxing of unique name constraint in allow-lists
https://github.com/hasura/graphql-engine-mono/pull/1972

GitOrigin-RevId: cb062df7a1ba1c99705f811409e2e4ad42f4b581
2021-08-03 09:23:20 +00:00
Jesse
0ab7844efa docs: add cloud references
https://github.com/hasura/graphql-engine-mono/pull/1688

Co-authored-by: Jesse Martin <174035+martincreative@users.noreply.github.com>
Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
GitOrigin-RevId: 7a585cb8473e0c5572a347926e156b6ce6f4d780
2021-07-22 13:24:31 +00:00
Karthikeyan Chinnakonda
34ccca305d server: relax unique operation name constraint in a query collection
https://github.com/hasura/graphql-engine-mono/pull/1849

GitOrigin-RevId: 56c1737b69511c3f2c4480d22f84828f51d3b543
2021-07-21 12:05:50 +00:00
Rikin Kachhia
f7b379f677 docs: update docker guides with 2.0 changes
- update docker guides
- misc improvements

https://github.com/hasura/graphql-engine-mono/pull/1638

GitOrigin-RevId: 061aaa4f0da2752fe063be97ffce162653f23b8d
2021-06-23 11:21:55 +00:00
Rikin Kachhia
6c4dbe093c docs: update getting started for 2.0
https://github.com/hasura/graphql-engine-mono/pull/1624

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
GitOrigin-RevId: 8507e5520d7fb3548899cac2e7dc497567e0282e
2021-06-23 08:10:12 +00:00
Rikin Kachhia
90f9806c99 docs: add cloud v2 update guide
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
GitOrigin-RevId: 581f08d36caf95d653fe88ee050b11f657614da4
2021-06-10 17:04:44 +00:00
Rikin Kachhia
423f5c6ad5 docs: update v2 docs
- update config availablility/deprecation notes
- add notes on metadata inconsistency during config v3 migrations
- use update instead of upgrade for v2 migration for consistency
- fix external link opening

GitOrigin-RevId: a8ca31948285f55a5fac8d00b93f85007be512cc
2021-05-18 13:37:32 +00:00
Karthikeyan Chinnakonda
ecb4b9d098 server: graceful shutdown for event and cron triggers and async action (II)
GitOrigin-RevId: 2090c3cc34f633c691b4e4ff9ae918a60c37ce26
2021-05-14 09:39:33 +00:00
Rikin Kachhia
1bfa53bb4d docs: update upgrade to v2 guide
- add migrations transactionality behaviour change
- update migrated env var list
- add deprecated msg to env vars
- add order by behaviour change

GitOrigin-RevId: 48c0659ef2d7c69eac1fccba1d883dd9e60f939f
2021-05-13 16:53:12 +00:00
Rikin Kachhia
21215dad1b docs: update docker windows hostname
GitOrigin-RevId: c0d18b985225a3d921e734afe8448c41b820df4f
2021-05-07 13:02:40 +00:00
Lyndon Maydwell
507d3aac2c Change schema sync env var to HASURA_GRAPHQL_SCHEMA_SYNC_POLL_INTERVAL
GitOrigin-RevId: 13ed047c9ff391e212c8a50dd13dd0adad666a9e
2021-04-28 22:27:21 +00:00
Swann Moreau
c834629afb server: fix regression in query-log generation
Co-authored-by: Anon Ray <616387+ecthiender@users.noreply.github.com>
GitOrigin-RevId: 74cc6bad2274dc1587f4d3b38e444857d079a4ac
2021-04-28 17:39:02 +00:00
Karthikeyan Chinnakonda
bc1e131717 server: accept new env var HASURA_GRAPHQL_EVENTS_FETCH_BATCH_SIZE
GitOrigin-RevId: 62c463d3ee754ce9f05ba09afa8cd74ca807a96c
2021-04-27 17:23:46 +00:00
Sandeep Raj Kumar
c5991adbdc docs: move the parameterized_query_hash key
GitOrigin-RevId: 69b41f0640edb01c0093bb7952575faf8d903c6b
2021-04-16 14:18:53 +00:00
Karthikeyan Chinnakonda
ce4794cdcc pro-server: log parameterized query hash for GraphQL queries
GitOrigin-RevId: e804d0b3397a0ae8df05225be43de264babd3de3
2021-04-06 17:53:55 +00:00
Rikin Kachhia
0352e4ae01 docs: misc updates
- master -> primary terminology change in read replica page
- add console flow to add read replica
- add (ci/cd) annotation to migrations
- add config v2 tag for older migrations pages

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
GitOrigin-RevId: 2d2d8e12fbf4f3142d0611f3ab1ce9285a79779f
2021-04-06 17:05:48 +00:00
Rakesh Emmadi
80a5e660b2 docs: add async-actions-fetch-interval option in server command flags
GitOrigin-RevId: 3abc252fa3b98dc7e36fc98ef106cf3244232f1e
2021-03-31 11:03:53 +00:00
Rikin Kachhia
0c2a40c740 docs: misc updates
- update cloud pricing plan names
- add supported from/in notes
- add config.yaml version note for using config v2
- nitpicks

GitOrigin-RevId: 4c06efb15cbec650fd38162f4d3b71d13c6ee56e
2021-03-17 13:45:07 +00:00
Karthikeyan Chinnakonda
067a38f74d docs: document inherited roles
Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
GitOrigin-RevId: b147ed69b90c40d6e1478f028f5d9d7e6f5629f0
2021-03-11 15:21:50 +00:00
Naveen Naidu
266f7315a2 docs: Add metadata db link in index of server configuration use case
GitOrigin-RevId: 1c2c4c7c65c6e01ddbec7e589d8644bdb5e856ed
2021-03-09 13:30:33 +00:00
Rikin Kachhia
fa90e9d004 docs: update feature version support notes
GitOrigin-RevId: 4627c876b2771c84602f4bfaa1ab0646b2650f12
2021-03-04 19:21:21 +00:00
Praveen Durairaju
101d76096f docs: add trailing slash to blog links, update header link
GitOrigin-RevId: e1fb08d1f0123df7e9717e3e56c24ea37f759408
2021-03-02 09:27:14 +00:00
Praveen Durairaju
0ff26100bf update docs link to avoid redirects
GitOrigin-RevId: 1f2a1d21bfb9b2908d56305fa2dfb69270deafdf
2021-03-01 18:51:18 +00:00
Aravind K P
4d74c79fce docs: add cli config v3 docs
Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
GitOrigin-RevId: 646a781999b4ec6af5dfc2350f5c752fdb2a299e
2021-02-23 15:35:43 +00:00
Rikin Kachhia
df45a6f426 docs: add multiple databases and metadata separation docs (#586)
GitOrigin-RevId: 5810a8c2de538c2921a1b749421f4fb1599e7ed0
2021-02-23 12:01:19 +00:00
Naveen Naidu
a80b632568 docs: add env_var/flags spec for metadata-db-url and update PG permission page
Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
GitOrigin-RevId: bb378baee249334f4bc0add43e364dbad6a7284f
2021-02-19 10:14:21 +00:00
hasura-bot
9b9bcf5a44 docs: improve getting started experience
GITHUB_PR_NUMBER: 6143
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/6143

Co-authored-by: Marion Schleifer <5722022+marionschleifer@users.noreply.github.com>
Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
GitOrigin-RevId: 7ad41cb9bc2c461ce04a30546e0214b9faebb085
2021-02-18 11:34:17 +00:00
hasura-bot
736cd7c15e docs: replace outdated images with newer ones (close #3256)
GITHUB_PR_NUMBER: 6176
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/6176

Co-authored-by: Funmilayo E. Olaiya <35759534+codeliezel@users.noreply.github.com>
Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
GitOrigin-RevId: 1fcd69dd876224c4d8e82ef1f2dc8e76242a49ba
2021-02-17 12:41:35 +00:00
hasura-bot
bcb1ae07eb docs: add postgres retries environment variables
GITHUB_PR_NUMBER: 4287
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/4287

Co-authored-by: Toan Nguyen  <1615675+hgiasac@users.noreply.github.com>
GitOrigin-RevId: c93781cebb14255d1e04da669c6bf774738ba96f
2021-02-02 10:40:31 +00:00
Karthikeyan Chinnakonda
10a3f9960d server: new function permissions layer
Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
Co-authored-by: Rakesh Emmadi <12475069+rakeshkky@users.noreply.github.com>
GitOrigin-RevId: 35645121242294cb6bb500ea598e9a1f2ca67fa1
2021-01-29 05:49:09 +00:00
hasura-bot
38fc4cb677 server: consistently log request_id at the same level
GITHUB_PR_NUMBER: 6244
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/6244

Co-authored-by: José Lorenzo Rodríguez <37621+lorenzo@users.noreply.github.com>
GitOrigin-RevId: fef22d98ac7be23ca21a63dc1c696fa7169253a4
2021-01-19 17:26:45 +00:00