Skip to content

Commit

Permalink
fix temporal server start up error (#307)
Browse files Browse the repository at this point in the history
  • Loading branch information
coolyrat authored Jan 23, 2024
1 parent 75b5832 commit 107dfa9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions serverjwtauth/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ variables should be set:
* `TEMPORAL_JWT_KEY_SOURCE1=http://host.docker.internal:61884/jwks.json`
* `TEMPORAL_AUTH_AUTHORIZER=default`
* `TEMPORAL_AUTH_CLAIM_MAPPER=default`
* `USE_INTERNAL_FRONTEND=1`
* `SERVICES=frontend:history:matching:worker:internal-frontend`

If using the docker-compose local install, these can be set in `docker-compose.yml`. If using a standalone server
locally, the config is:
Expand Down
2 changes: 1 addition & 1 deletion serverjwtauth/key/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func tctlSystemToken() error {
config := serverjwtauth.JWTConfig{
Key: key,
KeyID: jwk.KeyID,
Permissions: []string{"system:admin"},
Permissions: []string{"temporal-system:admin"},
Expiration: 1 * time.Hour,
}
token, err := config.GenToken()
Expand Down

0 comments on commit 107dfa9

Please sign in to comment.