Skip to content

Instantly share code, notes, and snippets.

@jesuino
Created November 13, 2023 21:19
Show Gist options
  • Save jesuino/7179f147779fed5787a500eff9d886e8 to your computer and use it in GitHub Desktop.
Save jesuino/7179f147779fed5787a500eff9d886e8 to your computer and use it in GitHub Desktop.
2023-11-13T20:45:35.590Z backstage info loaded dynamic backend plugin 'roadiehq-scaffolder-backend-module-utils-dynamic' from 'file:///opt/app-root/src/dynamic-plugins-root/roadiehq-scaffolder-backend-module-utils-dynamic'
Backend failed to start up Error: You must configure at least one key in backend.auth.keys for production.
at ServerTokenManager.fromConfig (/opt/app-root/src/node_modules/@backstage/backend-common/dist/index.cjs.js:4038:13)
at makeCreateEnv (/opt/app-root/src/packages/backend/dist/index.cjs.js:536:57)
at main (/opt/app-root/src/packages/backend/dist/index.cjs.js:613:21)
# ...
upstream:
backstage:
appConfig:
app:
baseUrl: 'https://{{- include "janus-idp.hostname" . }}'
backend:
auth:
keys:
# add a secret
- secret: <my secret>
# ...
@jesuino
Copy link
Author

jesuino commented Nov 16, 2023

A way to generate a key is using node:

node -p 'require("crypto").randomBytes(24).toString("base64")'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment