1
0
mirror of https://github.com/hasura/graphql-engine.git synced 2024-12-17 20:41:49 +03:00
Commit Graph

49 Commits

Author SHA1 Message Date
Anon Ray
8f1e7dbc8d breaking: server logging changes (close , close ) () 2019-07-11 05:37:06 +00:00
matt
f7ac664cc4 update postgres permission documentation (fix ) () 2019-07-02 13:19:29 +05:30
Rikin Kachhia
918e11730c
update server flags docs () 2019-05-28 22:55:47 +05:30
Rikin Kachhia
998acd51dd docs: fix auth links, fix version tags () 2019-05-20 15:12:36 +05:30
Nicolas Azari
f3ff3ba9aa fix typo in server flags reference () 2019-05-20 13:18:43 +05:30
Shahidh K Muhammed
76ceb707f4
bundle console assets into server (close , close , close ) ()
This PR builds console static assets into the server docker image at `/srv/console-assets`. When env var `HASURA_GRAPHQL_CONSOLE_ASSETS_DIR=/srv/console-assets` or flag `--console-assets-dir=/srv/console-assets` is set on the server, the files in this directory are served at `/console/assets/*`.

The console html template will have a variable called `cdnAssets: false` when this flag is set and it loads assets from server itself instead of CDN.

The assets are moved to a new bucket with a new naming scheme:

```
graphql-engine-cdn.hasura.io/console/assets/
   /common/{}
   /versioned/<version/{}
   /channel/<channel>/<version>/{}
```

Console served by CLI will still load assets from CDN - will fix that in the next release.
2019-05-16 13:15:29 +05:30
Rikin Kachhia
8b21ccbb0b add version requirement notes for features in docs () 2019-05-16 11:49:22 +05:30
Rakesh Emmadi
0b210cc245 support allow-list for graphql queries (closes ) () 2019-05-16 11:43:25 +05:30
Anon Ray
a21f6cd648 introduce v1/graphql (fix ) ()
Changes compared to `/v1alpha1/graphql`

* Changed all graphql responses in **/v1/graphql** endpoint to be 200. All graphql clients expect responses to be HTTP 200. Non-200 responses are considered transport layer errors. 

* Errors in http and websocket layer are now consistent and have similar structure.
2019-05-10 11:35:10 +05:30
Vamshi Surabhi
fd85d0ba5b document subscriptions related config parameters () 2019-05-07 17:51:37 +05:30
Shahidh K Muhammed
71cf017197 add an api to dump postgres schema (close ) () 2019-04-30 14:04:08 +05:30
Anon Ray
6e464a1342 pg permission docs: make hasura user owner of system schemas (fix ) ()
There was a postgres permission issue in the docs. The hasura user
  needed to be owner of the system schemas (hdb_catalog), otherwise it
  won't be able to table schema changes during version upgrades.
2019-03-19 10:06:40 +05:30
Rikin Kachhia
6c2f64b68a
update docs ()
* increase roles TOC depth
* update enum docs page
* open external links in docs in new tabs
* update nested object sort docs
2019-03-13 15:34:40 +05:30
Rikin Kachhia
c753426934
add image zoom in docs (close ) () 2019-03-13 15:33:45 +05:30
Rikin Kachhia
c35753932f
update docs () 2019-03-06 14:28:04 +05:30
Anon Ray
02d80c9ac6 read cookie while initialising websocket connection (fix ) ()
* read cookie while initialising websocket connection (fix )

* add tests for cookie on websocket init

* fix logic for tests

* enforce cors, and flag to force read cookie when cors disabled

  - as browsers don't enforce SOP on websockets, we enforce CORS policy
  on websocket handshake
  - if CORS is disabled, by default cookie is not read (because XSS
  risk!). Add special flag to force override this behaviour

* add log and forward origin header to webhook

  - add log notice when cors is disabled, and cookie is not read on
  websocket handshake
  - forward origin header to webhook in POST mode. So that when CORS is
  disabled, webhook can also enforce CORS independently.

* add docs, and forward all client headers to webhook
2019-03-04 13:16:53 +05:30
Rakesh Emmadi
377290a058 breaking: correct (de)serialisation of postgres numeric types in json (fix ) () 2019-03-01 17:15:04 +05:30
nizar-m
1fa66dc622 add option to disable metadata and graphql apis (close ) () 2019-02-28 19:23:03 +05:30
Rikin Kachhia
c90b03dbc7
fix docs content () 2019-02-14 16:44:25 +05:30
nizar-m
f83a8e591f rename access-key to admin-secret (close ) ()
Rename the admin secret key header used to access GraphQL engine from X-Hasura-Access-Key to X-Hasura-Admin-Secret.

Server CLI and console all support the older flag but marks it as deprecated.
2019-02-14 15:07:47 +05:30
Anon Ray
199a24d050 add support for multiple domains in cors config (close ) ()
Support for multiple domains (as CSV) in the `--cors-domain` flag and `HASURA_GRAPHQL_CORS_DOMAIN` env var.

Following are all valid configurations (must include scheme and optional port):
```shell
HASURA_GRAPHQL_CORS_DOMAIN="https://*.foo.bar.com:8080"
HASURA_GRAPHQL_CORS_DOMAIN="https://*.foo.bar.com, http://*.localhost, https://example.com"
HASURA_GRAPHQL_CORS_DOMAIN="*"
HASURA_GRAPHQL_CORS_DOMAIN="http://example.com, http://*.localhost, http://localhost:3000, https://*.foo.bar.com, https://foo.bar.com"
```

**Note**: top-level domains are not considered as part of wildcard domains. You have to add them separately. E.g - `https://*.foo.com` doesn't include `https://foo.com`.

The default (if the flag or env var is not specified) is `*`. Which means CORS headers are sent for all domains.
2019-02-14 11:28:38 +05:30
Rikin Kachhia
e8e0168da7 docs update () 2019-02-06 12:09:36 +05:30
Rikin Kachhia
29b2922394
update using existing database docs (close ) () 2019-01-29 14:57:15 +05:30
Shahidh K Muhammed
11e7c3f9d6 add anonymous telemetry () 2019-01-28 19:25:28 +05:30
Rikin Kachhia
5b66ca8c42 docs: cli related and syntax fix () 2019-01-24 19:46:34 +05:30
nizar-m
916caf1575 add flag to disable prepared statements (close ) () 2019-01-18 19:50:41 +05:30
Rikin Kachhia
03b5e76cde add db password url encoding note () 2019-01-11 17:08:41 +05:30
Nathan Stitt
1b9540f996 allow specifying network interface with "server-host" option ()
* allow specifying network interface with "server-host" option

* store host value as a HostPreference

* document server-host options
2019-01-11 16:37:13 +05:30
grenadejumper
f21fd41cc5 include documentation for Docker for Windows usage () 2018-12-31 14:16:43 +05:30
Rakesh Emmadi
708a29fc89 refactor server cli code, add more cli options & version command (closes , , , ) () 2018-12-14 08:51:41 +05:30
Rikin Kachhia
8de12d5bcd
add table of contents to docs pages () 2018-12-03 17:42:24 +05:30
Rakesh Emmadi
3ea20bc4d7 allow authentication webhook with POST (close ) () 2018-12-03 16:49:08 +05:30
Rikin Kachhia
a024f2a677 fix table in server flag docs () 2018-11-29 16:00:26 +05:30
Shahidh K Muhammed
6fb24d5bf0 update server dockerfile, install manifests and docs () 2018-11-23 14:47:31 +05:30
Rakesh Emmadi
1539d6b5a6 server port can be set with HASURA_GRAPHQL_SERVER_PORT env variable, closes () 2018-11-15 10:25:39 +05:30
Rikin Kachhia
dada14b1ad update docs ()
* add $ before commands in server flag reference docs

* add deploy to AWS RDS blog link to guides in docs

* fix pagination expressionin reference docs

* update many-to-many relationship docs

* add _not operator + filtering over relationships docs
2018-10-26 08:29:36 +05:30
Rakesh Emmadi
10d8529d28 allow unauthorized role in accesskey and JWT modes (closes ) () 2018-10-25 23:46:25 +05:30
Vamshi Surabhi
199531cbd9
http and websocket logs now correctly have user information, closes () 2018-10-25 15:07:57 +05:30
Rikin Kachhia
92c8ec55b2 docs: fix kubernetes logging page () 2018-10-11 17:10:53 +05:30
Matthew Holman
bf71b17274 add guides/resources section to docs () 2018-10-11 16:59:53 +05:30
Rikin Kachhia
9c2ca7cd54 docs update () 2018-10-10 19:51:43 +05:30
Utsav Bhardwaj
5916b97b86 added digitalocean deployment instructions (fix ) () 2018-10-09 19:38:54 +05:30
Utkarsh Gupta
300684f2dc add docs for jwt_secret & enable_console env () 2018-10-04 20:05:13 +05:30
Hugo
1e8e440bbc docs: fix spelling () 2018-10-04 20:00:01 +05:30
Rikin Kachhia
e265086fa4 docs: update logo + add docker for mac configuration note () 2018-09-27 21:34:21 +05:30
Rikin Kachhia
d0303995e3 explicity mention env variables for heroku with existing database () 2018-09-25 22:29:47 +05:30
Shahidh K Muhammed
5929ec5be3
add installation manifests () 2018-09-13 15:03:13 +05:30
Rikin Kachhia
fffaed7bcb docs update () 2018-09-12 14:58:55 +05:30
Shahidh K Muhammed
d3d9845497
merge docs into main repo (close ) () 2018-09-11 16:41:24 +05:30