Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Jetsam Server
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Package Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jetsam
Jetsam Server
Commits
474db874
Verified
Commit
474db874
authored
4 years ago
by
Louis
Browse files
Options
Downloads
Patches
Plain Diff
Add hasura with config for jetsam JWK verification
parent
53dd3e73
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Makefile
+5
-0
5 additions, 0 deletions
Makefile
docker-compose.yml
+12
-1
12 additions, 1 deletion
docker-compose.yml
hasura/claims_config.json
+8
-0
8 additions, 0 deletions
hasura/claims_config.json
with
25 additions
and
1 deletion
Makefile
+
5
−
0
View file @
474db874
...
...
@@ -19,5 +19,10 @@ push: tag
docker
:
build tag push
hasura-claims
:
@
echo
@
envsubst < hasura/claims_config.json | jq
-c
.
@
echo
help
:
@
cat
Makefile
This diff is collapsed.
Click to expand it.
docker-compose.yml
+
12
−
1
View file @
474db874
...
...
@@ -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
This diff is collapsed.
Click to expand it.
hasura/claims_config.json
0 → 100644
+
8
−
0
View file @
474db874
{
"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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment