Skip to content
Snippets Groups Projects
Verified Commit 474db874 authored by Louis's avatar Louis :fire:
Browse files

Add hasura with config for jetsam JWK verification

parent 53dd3e73
No related branches found
No related tags found
No related merge requests found
......@@ -19,5 +19,10 @@ push: tag
docker: build tag push
hasura-claims:
@echo
@envsubst < hasura/claims_config.json | jq -c .
@echo
help:
@cat Makefile
......@@ -17,4 +17,15 @@ services:
volumes:
- ./.dck/rabbit:/data
labels:
tech.jetsam.environment: 'staging'
\ No newline at end of file
tech.jetsam.environment: 'staging'
hsaura:
image: hasura/graphql-engine:v1.3.3
ports:
- "25003:8080"
network_mode: "host"
environment:
HASURA_GRAPHQL_DATABASE_URL: postgres://jetsam:jetsam@localhost:5432/jetsam
HASURA_GRAPHQL_ENABLE_CONSOLE: "true"
HASURA_GRAPHQL_DEV_MODE: "true"
HASURA_GRAPHQL_ADMIN_SECRET: "secret_key"
HASURA_GRAPHQL_JWT_SECRET: '{"jwk_url":"http://localhost:7123/api/.secure/jwks","claims_map":{"x-hasura-user-id":{"path":"$$.session.id"},"x-hasura-allowed-roles":{"path":"$$.session.roles"},"x-hasura-default-role":{"path":"$$.session.roles[0]"}}}'
\ No newline at end of file
{
"jwk_url": "$JETSAM_JWK_URL",
"claims_map": {
"x-hasura-user-id": { "path": "$$.session.id" },
"x-hasura-allowed-roles": { "path": "$$.session.roles" },
"x-hasura-default-role": { "path": "$$.session.roles[0]" }
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment