graphql-engine/server
Rakesh Emmadi d52bfcda4e
backend only insert permissions (rfc #4120) (#4224)
* move user info related code to Hasura.User module

* the RFC #4120 implementation; insert permissions with admin secret

* revert back to old RoleName based schema maps

An attempt made to avoid duplication of schema contexts in types
if any role doesn't possess any admin secret specific schema

* fix compile errors in haskell test

* keep 'user_vars' for session variables in http-logs

* no-op refacto

* tests for admin only inserts

* update docs for admin only inserts

* updated CHANGELOG.md

* default behaviour when admin secret is not set

* fix x-hasura-role to X-Hasura-Role in pytests

* introduce effective timeout in actions async tests

* update docs for admin-secret not configured case

* Update docs/graphql/manual/api-reference/schema-metadata-api/permission.rst

Co-Authored-By: Marion Schleifer <marion@hasura.io>

* Apply suggestions from code review

Co-Authored-By: Marion Schleifer <marion@hasura.io>

* a complete iteration

backend insert permissions accessable via 'x-hasura-backend-privilege'
session variable

* console changes for backend-only permissions

* provide tooltip id; update labels and tooltips;

* requested changes

* requested changes

- remove className from Toggle component
- use appropriate function name (capitalizeFirstChar -> capitalize)

* use toggle props from definitelyTyped

* fix accidental commit

* Revert "introduce effective timeout in actions async tests"

This reverts commit b7a59c19d6.

* generate complete schema for both 'default' and 'backend' sessions

* Apply suggestions from code review

Co-Authored-By: Marion Schleifer <marion@hasura.io>

* remove unnecessary import, export Toggle as is

* update session variable in tooltip

* 'x-hasura-use-backend-only-permissions' variable to switch

* update help texts

* update docs

* update docs

* update console help text

* regenerate package-lock

* serve no backend schema when backend_only: false and header set to true

- Few type name refactor as suggested by @0x777

* update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* fix a merge bug where a certain entity didn't get removed

Co-authored-by: Marion Schleifer <marion@hasura.io>
Co-authored-by: Rishichandra Wawhal <rishi@hasura.io>
Co-authored-by: rikinsk <rikin.kachhia@gmail.com>
Co-authored-by: Tirumarai Selvan <tiru@hasura.io>
2020-04-24 14:40:53 +05:30
..
packaging Switch from stack to cabal-install for building server code (close #3280) (#3558) 2020-01-17 16:07:15 -06:00
src-bench-cache Initial benchmarks for caching. Closes #3530 2019-12-20 10:10:07 -06:00
src-exec Refactor initialisation and relax tx isolation levels where possible (#3901) 2020-04-09 02:41:24 -05:00
src-lib backend only insert permissions (rfc #4120) (#4224) 2020-04-24 14:40:53 +05:30
src-rsr tag release v1.2.0-beta.4 (#4428) 2020-04-17 13:05:18 +05:30
src-test backend only insert permissions (rfc #4120) (#4224) 2020-04-24 14:40:53 +05:30
tests-py backend only insert permissions (rfc #4120) (#4224) 2020-04-24 14:40:53 +05:30
.dockerignore update packages (#251) 2018-08-08 13:10:13 +05:30
.gitignore Switch from stack to cabal-install for building server code (close #3280) (#3558) 2020-01-17 16:07:15 -06:00
.stylish-haskell.yaml Refactor schema cache construction to avoid imperative updates 2020-01-08 16:43:06 -06:00
cabal.project server: avoid integer overflows (fix #576) (fix #4368) (#4435) 2020-04-21 15:56:15 +02:00
cabal.project.ci Switch from stack to cabal-install for building server code (close #3280) (#3558) 2020-01-17 16:07:15 -06:00
cabal.project.dev More comments in cabal.project files 2020-01-23 18:20:58 -05:00
cabal.project.dev-sh dev.sh: restore code coverage functionality 2020-01-23 18:35:18 -05:00
cabal.project.dev-sh.freeze dev.sh: restore code coverage functionality 2020-01-23 18:35:18 -05:00
cabal.project.dev-sh.local dev.sh: restore code coverage functionality 2020-01-23 18:35:18 -05:00
cabal.project.freeze server: prevent metadata checks in read-only mode (#4250) 2020-04-01 18:22:55 -05:00
CONTRIBUTING.md Add a hint on avoiding recompilation during typical dev workflow (#4427) 2020-04-21 21:03:35 +02:00
graphql-engine.cabal backend only insert permissions (rfc #4120) (#4224) 2020-04-24 14:40:53 +05:30
Makefile persist mix files only when coverage is enabled (#3844) 2020-02-06 20:09:52 -06:00
Setup.hs move raven into graphql-engine repo 2018-06-28 00:32:00 +05:30
STYLE.md server: Add a Haskell style guide (#2175) 2020-04-08 02:31:30 -05:00