Files
backstage/.changeset/lazy-files-check.md
T
2021-12-21 11:19:50 +00:00

774 B

@backstage/backend-common
@backstage/backend-common
minor

Auto-generate secrets for backend-to-backend auth in local development environments.

When NODE_ENV is 'development', the ServerTokenManager will now generate a secret for backend-to-backend auth to make it simpler to work locally on Backstage instances that use backend-to-backend auth. For production deployments, a secret must still be manually configured as described in the backend-to-backend auth tutorial.

After the change, the static fromConfig method on the ServerTokenManager requires a logger.

-  const tokenManager = ServerTokenManager.fromConfig(config);
+  const tokenManager = ServerTokenManager.fromConfig(config, { logger: root });