Merge pull request #9705 from backstage/optional-backend-auth

backend-common: make backend.auth.keys optional in config schema
This commit is contained in:
MT Lewis
2022-02-22 10:48:48 +00:00
committed by GitHub
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/backend-common': patch
---
Make backend.auth.keys optional in config schema. Previously backend.auth was optional but keys was not, which meant that if another plugin introduced additional properties under backend.auth, it would implicitly make backend.auth.keys mandatory.
+1 -1
View File
@@ -23,7 +23,7 @@ export interface Config {
/** Backend configuration for when request authentication is enabled */
auth?: {
/** Keys shared by all backends for signing and validating backend tokens. */
keys: {
keys?: {
/**
* Secret for generating tokens. Should be a base64 string, recommended
* length is 24 bytes.