Remove internal notification caller tokens
This commit is contained in:
1 parent
1fe173397f
commit
caad7a3d5b
27 files changed
+112
-165
No files matched your search
@@ -58,8 +58,8 @@ provision_agents() {
|
||||
directory="$STATE/agents/$service"
|
||||
mkdir -p "$directory"; chmod 755 "$directory"
|
||||
case "$service" in
|
||||
bff) paths='services/bff/jwt services/notifications/callers/bff';;
|
||||
notifications) paths='services/notifications/callers/bff infrastructure/nats/auth services/notifications/email/resend';;
|
||||
bff) paths='services/bff/jwt';;
|
||||
notifications) paths='infrastructure/nats/auth services/notifications/email/resend';;
|
||||
nats) paths=infrastructure/nats/auth;;
|
||||
esac
|
||||
: > "$WORK/policy"
|
||||
@@ -92,7 +92,7 @@ up() {
|
||||
initialize
|
||||
mounts
|
||||
migrate_secrets
|
||||
for path in infrastructure/nats/auth services/notifications/callers/bff services/bff/jwt; do
|
||||
for path in infrastructure/nats/auth services/bff/jwt; do
|
||||
if [ "$(kv "$path")" = null ]; then
|
||||
field=token; [ "$path" != services/bff/jwt ] || field=jwt
|
||||
random | jq -Rs --arg field "$field" '{($field):rtrimstr("\n")}' | put "$path"
|
||||
|
||||
Reference in new issue
Block a user