Skip to content

Commit a513fe7

Browse files
authored
for consistency, use ZED_ envs everywhere (#795)
1 parent 5638107 commit a513fe7

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

dev/dapr_run.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ common:
2424
OTEL_EXPORTER_OTLP_ENDPOINT: http://jaeger:4317
2525
OTEL_EXPORTER_OTLP_INSECURE: true
2626

27-
SPICEDB_ENDPOINT: spicedb:50051
28-
SPICEDB_GRPC_PRESHARED_KEY: helpwave
27+
ZED_ENDPOINT: spicedb:50051
28+
ZED_TOKEN: helpwave
2929

3030
apps:
3131
- appID: task-svc

libs/hwauthz/spicedb/spicedb.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import (
1515
)
1616

1717
func SetupSpiceDbByEnv() *authzed.Client {
18-
endpoint := hwutil.MustGetEnv("SPICEDB_ENDPOINT")
19-
token := hwutil.MustGetEnv("SPICEDB_GRPC_PRESHARED_KEY")
18+
endpoint := hwutil.MustGetEnv("ZED_ENDPOINT")
19+
token := hwutil.MustGetEnv("ZED_TOKEN")
2020
return SetupSpiceDb(endpoint, token)
2121
}
2222

services/task-svc/.env.example

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ POSTGRES_PASSWORD=postgres
1717
POSTGRES_DB=task-svc
1818

1919
# SpiceDB
20-
SPICEDB_ENDPOINT=
21-
SPICEDB_GRPC_PRESHARED_KEY=
20+
ZED_ENDPOINT=
21+
ZED_TOKEN=
2222

2323
# For development purposes
2424
INSECURE_FAKE_TOKEN_ENABLE=true

0 commit comments

Comments
 (0)