Files
hasura-backend-plus/examples/simple-hasura-minio/docker-compose.yaml
Johan Eliasson ba9ea54880 Cookie updates, general improvements and bug fixes. SOOOOON! (#218)
* set permission_variables cookie

* use permission variables in storage from cookie

* fix(security): upgrade Hasusa to v1.2.1

* refactor(auth): clear permission_variables cookie on logout

* refactor(auth): clear permission_variables cookie when deleting an account

* refactor: simplify generation of permission variables

reuse the same code for both permission_variables cookie and jwt claims

* fix(storage): change isOwner function according to the new cookie specs

* test(storage): fix the tests so they work with the new way of getting auth info

* style: typo

* fix: send hasura claim values as string

* storage polishing

* updated standard storage rules

* updated storage tests

* remove login on test

* user cookie user vars on delete

* removed unused logs

* specify 'user-id' to return string | number

* formatting

* user id is always string

* use cookie to get user-id

* typo

* fix: clean and fix code so every test passes

* ci: runInBand

* refactor(auth): refactor routes

Co-authored-by: Pierre-Louis Mercereau <24897252+plmercereau@users.noreply.github.com>
2020-05-08 07:08:21 +02:00

31 lines
936 B
YAML

version: '3.6'
services:
postgres:
image: postgres:12
restart: always
volumes:
- db_data:/var/lib/postgresql/data
graphql-engine:
image: hasura/graphql-engine:v1.2.1
ports:
- '8080:8080'
depends_on:
- 'postgres'
restart: always
environment:
HASURA_GRAPHQL_DATABASE_URL: postgres://postgres:postgrespassword@postgres:5432/postgres
HASURA_GRAPHQL_ADMIN_SECRET: '$HASURA_GRAPHQL_ADMIN_SECRET'
HASURA_GRAPHQL_JWT_SECRET: '{"type": "RS256", "jwk_url": "http://hasura-backend-plus:3000/auth/jwks"}'
HASURA_GRAPHQL_ENABLE_CONSOLE: true
hasura-backend-plus:
image: nhost/hasura-backend-plus:latest
ports:
- '3000:3000'
environment:
SERVER_URL: http://localhost:3000
HASURA_ENDPOINT: http://graphql-engine:8080/v1/graphql
HASURA_GRAPHQL_ADMIN_SECRET: '$HASURA_GRAPHQL_ADMIN_SECRET'
JWT_ALGORITHM: RS256
volumes:
db_data: