Skip to content

Commit

Permalink
Fixed config so rebac connects to spicedb properly on local.
Browse files Browse the repository at this point in the history
  • Loading branch information
merlante committed Feb 9, 2024
1 parent 805d71b commit 58370e6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
4 changes: 2 additions & 2 deletions configs/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ server:
data:
spiceDb:
useTLS: false
endpoint: localhost:50051
tokenFile: spicedb_pre_shared
endpoint: spicedb:50051
tokenFile: /spicedb_pre_shared
10 changes: 8 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
version: "3"
version: "3.8"

services:
rebac:
image: "quay.io/ciam_authz/insights-rebac:latest"
configs:
- spicedb_pre_shared
build:
dockerfile: Dockerfile
profiles: ["rebac"]
Expand Down Expand Up @@ -42,4 +44,8 @@ services:
- "5432:5432"
environment:
- "POSTGRES_PASSWORD=${POSTGRES_PASSWORD}"
- "POSTGRES_DB=${POSTGRES_DBNAME}"
- "POSTGRES_DB=${POSTGRES_DBNAME}"

configs:
spicedb_pre_shared:
environment: "SPICEDB_GRPC_PRESHARED_KEY"
2 changes: 1 addition & 1 deletion spicedb/teardownrebac.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
set -e
docker-compose --profile rebac -f ./spicedb/docker-compose.yaml down
docker-compose --env-file ./spicedb/.env --profile rebac -f docker-compose.yaml down

0 comments on commit 58370e6

Please sign in to comment.