@backstage/backend-defaults 0.18.1-next.3 → 0.18.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/config.schema.json +8 -0
- package/dist/backend-defaults/package.json.cjs.js +1 -1
- package/dist/entrypoints/rootLogger/config.cjs.js +5 -1
- package/dist/entrypoints/rootLogger/config.cjs.js.map +1 -1
- package/dist/entrypoints/rootLogger/rootLoggerServiceFactory.cjs.js +14 -2
- package/dist/entrypoints/rootLogger/rootLoggerServiceFactory.cjs.js.map +1 -1
- package/dist/entrypoints/rootLogger/types.cjs.js.map +1 -1
- package/package.json +18 -18
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# @backstage/backend-defaults
|
|
2
2
|
|
|
3
|
+
## 0.18.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- c478470: Added a service-authenticated action registry status endpoint that reports whether a plugin provides actions without exposing action metadata.
|
|
8
|
+
- f6054ac: Backends created with `createBackend` now provide the experimental connections service by default. Custom backends can install `connectionsServiceFactory` from `@backstage/backend-defaults/alpha`.
|
|
9
|
+
- e956084: Added an `instanceId` option to `createBackend`, allowing deployments to use an externally provided backend instance identifier. Each backend instance uses a random UUID by default.
|
|
10
|
+
- 1939ded: Added bounded retries for transient failures while initializing Cloud SQL database connections.
|
|
11
|
+
- a6bc5e4: Stopped issuing periodic per-plugin database keepalive queries by default and changed the default minimum PostgreSQL and MySQL connection pool size to zero. Idle connections can now be retired after the configured timeout, while explicitly configured pool minimums are preserved. Set `backend.database.keepalive: true` to continue issuing the periodic queries.
|
|
12
|
+
- bd1ff39: Fixed AWS RDS IAM authentication tokens being reused after their signing credentials expire, which could cause database connection failures when using temporary AWS credentials.
|
|
13
|
+
- 6887ecc: Updated dependency `infinispan` to `^0.16.0`.
|
|
14
|
+
- 495ef24: Added support for `backend.logger.redactAllowlist` configuration option, which allows specific secret values to pass through log redaction when they are known to be safe to log.
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
- @backstage/cli-node@0.3.5
|
|
17
|
+
- @backstage/integration@2.1.3
|
|
18
|
+
- @backstage/backend-plugin-api@1.11.0
|
|
19
|
+
- @backstage/backend-app-api@1.8.0
|
|
20
|
+
- @backstage/config-loader@1.11.4
|
|
21
|
+
- @backstage/config@1.3.10
|
|
22
|
+
- @backstage/errors@1.3.2
|
|
23
|
+
- @backstage/connections@0.4.1
|
|
24
|
+
- @backstage/plugin-auth-node@0.7.7
|
|
25
|
+
- @backstage/integration-aws-node@0.2.3
|
|
26
|
+
- @backstage/plugin-events-node@0.4.27
|
|
27
|
+
- @backstage/plugin-permission-common@0.9.12
|
|
28
|
+
- @backstage/plugin-permission-node@0.11.5
|
|
29
|
+
|
|
3
30
|
## 0.18.1-next.3
|
|
4
31
|
|
|
5
32
|
### Patch Changes
|
package/config.schema.json
CHANGED
|
@@ -2114,6 +2114,14 @@
|
|
|
2114
2114
|
]
|
|
2115
2115
|
},
|
|
2116
2116
|
"description": "List of logger overrides.\n\nCan be used to configure a different level for logs matching certain criteria. For example, it can be used to ignore 'info' logs of given plugins."
|
|
2117
|
+
},
|
|
2118
|
+
"redactAllowlist": {
|
|
2119
|
+
"type": "array",
|
|
2120
|
+
"items": {
|
|
2121
|
+
"type": "string"
|
|
2122
|
+
},
|
|
2123
|
+
"description": "List of values to allow through redaction.\n\nThis makes it possible to avoid redacting certain values that are known to be safe to log.",
|
|
2124
|
+
"visibility": "backend"
|
|
2117
2125
|
}
|
|
2118
2126
|
},
|
|
2119
2127
|
"description": "Options to configure the default RootLoggerService."
|
|
@@ -21,10 +21,14 @@ const getRootLoggerConfig = (config) => {
|
|
|
21
21
|
level: overrideLevel
|
|
22
22
|
};
|
|
23
23
|
});
|
|
24
|
+
const redactAllowlist = config.getOptionalStringArray(
|
|
25
|
+
"backend.logger.redactAllowlist"
|
|
26
|
+
);
|
|
24
27
|
return {
|
|
25
28
|
meta,
|
|
26
29
|
level,
|
|
27
|
-
overrides
|
|
30
|
+
overrides,
|
|
31
|
+
redactAllowlist
|
|
28
32
|
};
|
|
29
33
|
};
|
|
30
34
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.cjs.js","sources":["../../../src/entrypoints/rootLogger/config.ts"],"sourcesContent":["/*\n * Copyright 2025 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { RootConfigService } from '@backstage/backend-plugin-api';\nimport { JsonObject } from '@backstage/types';\nimport {\n RootLoggerConfig,\n winstonLevels,\n WinstonLoggerLevelOverrideMatchers,\n} from './types';\n\nexport const getRootLoggerConfig = (\n config: RootConfigService,\n): RootLoggerConfig => {\n const level = config.getOptionalString('backend.logger.level');\n const meta = config\n .getOptionalConfig('backend.logger.meta')\n ?.get<JsonObject>();\n\n const overridesConfig = config.getOptionalConfigArray(\n 'backend.logger.overrides',\n );\n const overrides = overridesConfig?.map((override, i) => {\n const overrideLevel = override.getString('level');\n if (winstonLevels[overrideLevel] === undefined) {\n throw new Error(\n `Invalid config at backend.logger.overrides[${i}].level, '${overrideLevel}' is not a valid logging level, must be one of 'error', 'warn', 'info' or 'debug'.`,\n );\n }\n\n const matchers = override\n .getConfig('matchers')\n .get<WinstonLoggerLevelOverrideMatchers>();\n\n return {\n matchers,\n level: overrideLevel,\n };\n });\n\n return {\n meta,\n level,\n overrides,\n };\n};\n"],"names":["winstonLevels"],"mappings":";;;;AAuBO,MAAM,mBAAA,GAAsB,CACjC,MAAA,KACqB;AACrB,EAAA,MAAM,KAAA,GAAQ,MAAA,CAAO,iBAAA,CAAkB,sBAAsB,CAAA;AAC7D,EAAA,MAAM,IAAA,GAAO,MAAA,CACV,iBAAA,CAAkB,qBAAqB,GACtC,GAAA,EAAgB;AAEpB,EAAA,MAAM,kBAAkB,MAAA,CAAO,sBAAA;AAAA,IAC7B;AAAA,GACF;AACA,EAAA,MAAM,SAAA,GAAY,eAAA,EAAiB,GAAA,CAAI,CAAC,UAAU,CAAA,KAAM;AACtD,IAAA,MAAM,aAAA,GAAgB,QAAA,CAAS,SAAA,CAAU,OAAO,CAAA;AAChD,IAAA,IAAIA,mBAAA,CAAc,aAAa,CAAA,KAAM,MAAA,EAAW;AAC9C,MAAA,MAAM,IAAI,KAAA;AAAA,QACR,CAAA,2CAAA,EAA8C,CAAC,CAAA,UAAA,EAAa,aAAa,CAAA,kFAAA;AAAA,OAC3E;AAAA,IACF;AAEA,IAAA,MAAM,QAAA,GAAW,QAAA,CACd,SAAA,CAAU,UAAU,EACpB,GAAA,EAAwC;AAE3C,IAAA,OAAO;AAAA,MACL,QAAA;AAAA,MACA,KAAA,EAAO;AAAA,KACT;AAAA,EACF,CAAC,CAAA;AAED,EAAA,OAAO;AAAA,IACL,IAAA;AAAA,IACA,KAAA;AAAA,IACA;AAAA,GACF;AACF;;"}
|
|
1
|
+
{"version":3,"file":"config.cjs.js","sources":["../../../src/entrypoints/rootLogger/config.ts"],"sourcesContent":["/*\n * Copyright 2025 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { RootConfigService } from '@backstage/backend-plugin-api';\nimport { JsonObject } from '@backstage/types';\nimport {\n RootLoggerConfig,\n winstonLevels,\n WinstonLoggerLevelOverrideMatchers,\n} from './types';\n\nexport const getRootLoggerConfig = (\n config: RootConfigService,\n): RootLoggerConfig => {\n const level = config.getOptionalString('backend.logger.level');\n const meta = config\n .getOptionalConfig('backend.logger.meta')\n ?.get<JsonObject>();\n\n const overridesConfig = config.getOptionalConfigArray(\n 'backend.logger.overrides',\n );\n const overrides = overridesConfig?.map((override, i) => {\n const overrideLevel = override.getString('level');\n if (winstonLevels[overrideLevel] === undefined) {\n throw new Error(\n `Invalid config at backend.logger.overrides[${i}].level, '${overrideLevel}' is not a valid logging level, must be one of 'error', 'warn', 'info' or 'debug'.`,\n );\n }\n\n const matchers = override\n .getConfig('matchers')\n .get<WinstonLoggerLevelOverrideMatchers>();\n\n return {\n matchers,\n level: overrideLevel,\n };\n });\n\n const redactAllowlist = config.getOptionalStringArray(\n 'backend.logger.redactAllowlist',\n );\n\n return {\n meta,\n level,\n overrides,\n redactAllowlist,\n };\n};\n"],"names":["winstonLevels"],"mappings":";;;;AAuBO,MAAM,mBAAA,GAAsB,CACjC,MAAA,KACqB;AACrB,EAAA,MAAM,KAAA,GAAQ,MAAA,CAAO,iBAAA,CAAkB,sBAAsB,CAAA;AAC7D,EAAA,MAAM,IAAA,GAAO,MAAA,CACV,iBAAA,CAAkB,qBAAqB,GACtC,GAAA,EAAgB;AAEpB,EAAA,MAAM,kBAAkB,MAAA,CAAO,sBAAA;AAAA,IAC7B;AAAA,GACF;AACA,EAAA,MAAM,SAAA,GAAY,eAAA,EAAiB,GAAA,CAAI,CAAC,UAAU,CAAA,KAAM;AACtD,IAAA,MAAM,aAAA,GAAgB,QAAA,CAAS,SAAA,CAAU,OAAO,CAAA;AAChD,IAAA,IAAIA,mBAAA,CAAc,aAAa,CAAA,KAAM,MAAA,EAAW;AAC9C,MAAA,MAAM,IAAI,KAAA;AAAA,QACR,CAAA,2CAAA,EAA8C,CAAC,CAAA,UAAA,EAAa,aAAa,CAAA,kFAAA;AAAA,OAC3E;AAAA,IACF;AAEA,IAAA,MAAM,QAAA,GAAW,QAAA,CACd,SAAA,CAAU,UAAU,EACpB,GAAA,EAAwC;AAE3C,IAAA,OAAO;AAAA,MACL,QAAA;AAAA,MACA,KAAA,EAAO;AAAA,KACT;AAAA,EACF,CAAC,CAAA;AAED,EAAA,MAAM,kBAAkB,MAAA,CAAO,sBAAA;AAAA,IAC7B;AAAA,GACF;AAEA,EAAA,OAAO;AAAA,IACL,IAAA;AAAA,IACA,KAAA;AAAA,IACA,SAAA;AAAA,IACA;AAAA,GACF;AACF;;"}
|
|
@@ -23,8 +23,20 @@ const rootLoggerServiceFactory = backendPluginApi.createServiceFactory({
|
|
|
23
23
|
transports: [new winston.transports.Console()]
|
|
24
24
|
});
|
|
25
25
|
const secretEnumerator = await createConfigSecretEnumerator.createConfigSecretEnumerator({ logger });
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
const allowlist = new Set(
|
|
27
|
+
rootLoggerConfig.redactAllowlist?.map((a) => a.trim())
|
|
28
|
+
);
|
|
29
|
+
logger.addRedactions(
|
|
30
|
+
[...secretEnumerator(config$1)].filter((s) => !allowlist.has(s.trim()))
|
|
31
|
+
);
|
|
32
|
+
config$1.subscribe?.(() => {
|
|
33
|
+
const newAllowlist = new Set(
|
|
34
|
+
config.getRootLoggerConfig(config$1).redactAllowlist?.map((a) => a.trim())
|
|
35
|
+
);
|
|
36
|
+
logger.addRedactions(
|
|
37
|
+
[...secretEnumerator(config$1)].filter((s) => !newAllowlist.has(s.trim()))
|
|
38
|
+
);
|
|
39
|
+
});
|
|
28
40
|
logger.setLevelOverrides(rootLoggerConfig.overrides ?? []);
|
|
29
41
|
config$1.subscribe?.(
|
|
30
42
|
() => logger.setLevelOverrides(config.getRootLoggerConfig(config$1).overrides ?? [])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rootLoggerServiceFactory.cjs.js","sources":["../../../src/entrypoints/rootLogger/rootLoggerServiceFactory.ts"],"sourcesContent":["/*\n * Copyright 2022 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n coreServices,\n createServiceFactory,\n} from '@backstage/backend-plugin-api';\nimport { format, transports } from 'winston';\nimport { createConfigSecretEnumerator } from '../rootConfig/createConfigSecretEnumerator';\nimport { WinstonLogger } from '../rootLogger/WinstonLogger';\nimport { getRootLoggerConfig } from './config';\n\n/**\n * Root-level logging.\n *\n * See {@link @backstage/backend-plugin-api#RootLoggerService}\n * and {@link https://backstage.io/docs/backend-system/core-services/root-logger | the service docs}\n * for more information.\n *\n * @public\n */\nexport const rootLoggerServiceFactory = createServiceFactory({\n service: coreServices.rootLogger,\n deps: {\n config: coreServices.rootConfig,\n },\n async factory({ config }) {\n const rootLoggerConfig = getRootLoggerConfig(config);\n\n const logger = WinstonLogger.create({\n meta: {\n service: 'backstage',\n ...rootLoggerConfig.meta,\n },\n level: process.env.LOG_LEVEL || rootLoggerConfig.level || 'info',\n format:\n process.env.NODE_ENV === 'production'\n ? format.json()\n : WinstonLogger.colorFormat(),\n transports: [new transports.Console()],\n });\n\n const secretEnumerator = await createConfigSecretEnumerator({ logger });\n logger.addRedactions(secretEnumerator(config));\n config.subscribe?.(() => logger.addRedactions(secretEnumerator(config)));\n\n logger.setLevelOverrides(rootLoggerConfig.overrides ?? []);\n config.subscribe?.(() =>\n logger.setLevelOverrides(getRootLoggerConfig(config).overrides ?? []),\n );\n\n return logger;\n },\n});\n"],"names":["createServiceFactory","coreServices","config","getRootLoggerConfig","WinstonLogger","format","transports","createConfigSecretEnumerator"],"mappings":";;;;;;;;AAkCO,MAAM,2BAA2BA,qCAAA,CAAqB;AAAA,EAC3D,SAASC,6BAAA,CAAa,UAAA;AAAA,EACtB,IAAA,EAAM;AAAA,IACJ,QAAQA,6BAAA,CAAa;AAAA,GACvB;AAAA,EACA,MAAM,OAAA,CAAQ,UAAEC,QAAA,EAAO,EAAG;AACxB,IAAA,MAAM,gBAAA,GAAmBC,2BAAoBD,QAAM,CAAA;AAEnD,IAAA,MAAM,MAAA,GAASE,4BAAc,MAAA,CAAO;AAAA,MAClC,IAAA,EAAM;AAAA,QACJ,OAAA,EAAS,WAAA;AAAA,QACT,GAAG,gBAAA,CAAiB;AAAA,OACtB;AAAA,MACA,KAAA,EAAO,OAAA,CAAQ,GAAA,CAAI,SAAA,IAAa,iBAAiB,KAAA,IAAS,MAAA;AAAA,MAC1D,MAAA,EACE,QAAQ,GAAA,CAAI,QAAA,KAAa,eACrBC,cAAA,CAAO,IAAA,EAAK,GACZD,2BAAA,CAAc,WAAA,EAAY;AAAA,MAChC,UAAA,EAAY,CAAC,IAAIE,kBAAA,CAAW,SAAS;AAAA,KACtC,CAAA;AAED,IAAA,MAAM,gBAAA,GAAmB,MAAMC,yDAAA,CAA6B,EAAE,QAAQ,CAAA;AACtE,IAAA,MAAA,CAAO,aAAA,
|
|
1
|
+
{"version":3,"file":"rootLoggerServiceFactory.cjs.js","sources":["../../../src/entrypoints/rootLogger/rootLoggerServiceFactory.ts"],"sourcesContent":["/*\n * Copyright 2022 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n coreServices,\n createServiceFactory,\n} from '@backstage/backend-plugin-api';\nimport { format, transports } from 'winston';\nimport { createConfigSecretEnumerator } from '../rootConfig/createConfigSecretEnumerator';\nimport { WinstonLogger } from '../rootLogger/WinstonLogger';\nimport { getRootLoggerConfig } from './config';\n\n/**\n * Root-level logging.\n *\n * See {@link @backstage/backend-plugin-api#RootLoggerService}\n * and {@link https://backstage.io/docs/backend-system/core-services/root-logger | the service docs}\n * for more information.\n *\n * @public\n */\nexport const rootLoggerServiceFactory = createServiceFactory({\n service: coreServices.rootLogger,\n deps: {\n config: coreServices.rootConfig,\n },\n async factory({ config }) {\n const rootLoggerConfig = getRootLoggerConfig(config);\n\n const logger = WinstonLogger.create({\n meta: {\n service: 'backstage',\n ...rootLoggerConfig.meta,\n },\n level: process.env.LOG_LEVEL || rootLoggerConfig.level || 'info',\n format:\n process.env.NODE_ENV === 'production'\n ? format.json()\n : WinstonLogger.colorFormat(),\n transports: [new transports.Console()],\n });\n\n const secretEnumerator = await createConfigSecretEnumerator({ logger });\n const allowlist = new Set(\n rootLoggerConfig.redactAllowlist?.map(a => a.trim()),\n );\n logger.addRedactions(\n [...secretEnumerator(config)].filter(s => !allowlist.has(s.trim())),\n );\n config.subscribe?.(() => {\n const newAllowlist = new Set(\n getRootLoggerConfig(config).redactAllowlist?.map(a => a.trim()),\n );\n logger.addRedactions(\n [...secretEnumerator(config)].filter(s => !newAllowlist.has(s.trim())),\n );\n });\n\n logger.setLevelOverrides(rootLoggerConfig.overrides ?? []);\n config.subscribe?.(() =>\n logger.setLevelOverrides(getRootLoggerConfig(config).overrides ?? []),\n );\n\n return logger;\n },\n});\n"],"names":["createServiceFactory","coreServices","config","getRootLoggerConfig","WinstonLogger","format","transports","createConfigSecretEnumerator"],"mappings":";;;;;;;;AAkCO,MAAM,2BAA2BA,qCAAA,CAAqB;AAAA,EAC3D,SAASC,6BAAA,CAAa,UAAA;AAAA,EACtB,IAAA,EAAM;AAAA,IACJ,QAAQA,6BAAA,CAAa;AAAA,GACvB;AAAA,EACA,MAAM,OAAA,CAAQ,UAAEC,QAAA,EAAO,EAAG;AACxB,IAAA,MAAM,gBAAA,GAAmBC,2BAAoBD,QAAM,CAAA;AAEnD,IAAA,MAAM,MAAA,GAASE,4BAAc,MAAA,CAAO;AAAA,MAClC,IAAA,EAAM;AAAA,QACJ,OAAA,EAAS,WAAA;AAAA,QACT,GAAG,gBAAA,CAAiB;AAAA,OACtB;AAAA,MACA,KAAA,EAAO,OAAA,CAAQ,GAAA,CAAI,SAAA,IAAa,iBAAiB,KAAA,IAAS,MAAA;AAAA,MAC1D,MAAA,EACE,QAAQ,GAAA,CAAI,QAAA,KAAa,eACrBC,cAAA,CAAO,IAAA,EAAK,GACZD,2BAAA,CAAc,WAAA,EAAY;AAAA,MAChC,UAAA,EAAY,CAAC,IAAIE,kBAAA,CAAW,SAAS;AAAA,KACtC,CAAA;AAED,IAAA,MAAM,gBAAA,GAAmB,MAAMC,yDAAA,CAA6B,EAAE,QAAQ,CAAA;AACtE,IAAA,MAAM,YAAY,IAAI,GAAA;AAAA,MACpB,iBAAiB,eAAA,EAAiB,GAAA,CAAI,CAAA,CAAA,KAAK,CAAA,CAAE,MAAM;AAAA,KACrD;AACA,IAAA,MAAA,CAAO,aAAA;AAAA,MACL,CAAC,GAAG,gBAAA,CAAiBL,QAAM,CAAC,CAAA,CAAE,MAAA,CAAO,CAAA,CAAA,KAAK,CAAC,SAAA,CAAU,GAAA,CAAI,CAAA,CAAE,IAAA,EAAM,CAAC;AAAA,KACpE;AACA,IAAAA,QAAA,CAAO,YAAY,MAAM;AACvB,MAAA,MAAM,eAAe,IAAI,GAAA;AAAA,QACvBC,0BAAA,CAAoBD,QAAM,CAAA,CAAE,eAAA,EAAiB,IAAI,CAAA,CAAA,KAAK,CAAA,CAAE,MAAM;AAAA,OAChE;AACA,MAAA,MAAA,CAAO,aAAA;AAAA,QACL,CAAC,GAAG,gBAAA,CAAiBA,QAAM,CAAC,CAAA,CAAE,MAAA,CAAO,CAAA,CAAA,KAAK,CAAC,YAAA,CAAa,GAAA,CAAI,CAAA,CAAE,IAAA,EAAM,CAAC;AAAA,OACvE;AAAA,IACF,CAAC,CAAA;AAED,IAAA,MAAA,CAAO,iBAAA,CAAkB,gBAAA,CAAiB,SAAA,IAAa,EAAE,CAAA;AACzD,IAAAA,QAAA,CAAO,SAAA;AAAA,MAAY,MACjB,OAAO,iBAAA,CAAkBC,0BAAA,CAAoBD,QAAM,CAAA,CAAE,SAAA,IAAa,EAAE;AAAA,KACtE;AAEA,IAAA,OAAO,MAAA;AAAA,EACT;AACF,CAAC;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.cjs.js","sources":["../../../src/entrypoints/rootLogger/types.ts"],"sourcesContent":["/*\n * Copyright 2025 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { JsonObject, JsonPrimitive } from '@backstage/types';\nimport { config as winstonConfig } from 'winston';\n\n/**\n * @public\n */\nexport type WinstonLoggerLevelOverrideMatchers = {\n [key: string]: JsonPrimitive | JsonPrimitive[] | undefined;\n};\n\n/**\n * @public\n */\nexport type WinstonLoggerLevelOverride = {\n matchers: WinstonLoggerLevelOverrideMatchers;\n level: string;\n};\n\nexport type RootLoggerConfig = {\n level?: string;\n meta?: JsonObject;\n overrides?: WinstonLoggerLevelOverride[];\n};\n\nexport const winstonLevels = winstonConfig.npm.levels;\n"],"names":["winstonConfig"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"types.cjs.js","sources":["../../../src/entrypoints/rootLogger/types.ts"],"sourcesContent":["/*\n * Copyright 2025 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { JsonObject, JsonPrimitive } from '@backstage/types';\nimport { config as winstonConfig } from 'winston';\n\n/**\n * @public\n */\nexport type WinstonLoggerLevelOverrideMatchers = {\n [key: string]: JsonPrimitive | JsonPrimitive[] | undefined;\n};\n\n/**\n * @public\n */\nexport type WinstonLoggerLevelOverride = {\n matchers: WinstonLoggerLevelOverrideMatchers;\n level: string;\n};\n\nexport type RootLoggerConfig = {\n level?: string;\n meta?: JsonObject;\n overrides?: WinstonLoggerLevelOverride[];\n redactAllowlist?: string[];\n};\n\nexport const winstonLevels = winstonConfig.npm.levels;\n"],"names":["winstonConfig"],"mappings":";;;;AAwCO,MAAM,aAAA,GAAgBA,eAAc,GAAA,CAAI;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/backend-defaults",
|
|
3
|
-
"version": "0.18.1
|
|
3
|
+
"version": "0.18.1",
|
|
4
4
|
"description": "Backend defaults used by Backstage backend apps",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "node-library"
|
|
@@ -226,21 +226,21 @@
|
|
|
226
226
|
"@aws-sdk/types": "^3.347.0",
|
|
227
227
|
"@azure/identity": "^4.0.0",
|
|
228
228
|
"@azure/storage-blob": "^12.5.0",
|
|
229
|
-
"@backstage/backend-app-api": "1.8.0
|
|
230
|
-
"@backstage/backend-dev-utils": "0.1.7",
|
|
231
|
-
"@backstage/backend-plugin-api": "1.11.0
|
|
232
|
-
"@backstage/cli-node": "0.3.5
|
|
233
|
-
"@backstage/config": "1.3.10
|
|
234
|
-
"@backstage/config-loader": "1.11.4
|
|
235
|
-
"@backstage/connections": "0.4.1
|
|
236
|
-
"@backstage/errors": "1.3.2
|
|
237
|
-
"@backstage/integration": "2.1.3
|
|
238
|
-
"@backstage/integration-aws-node": "0.2.3
|
|
239
|
-
"@backstage/plugin-auth-node": "0.7.7
|
|
240
|
-
"@backstage/plugin-events-node": "0.4.27
|
|
241
|
-
"@backstage/plugin-permission-common": "0.9.12
|
|
242
|
-
"@backstage/plugin-permission-node": "0.11.5
|
|
243
|
-
"@backstage/types": "1.2.2",
|
|
229
|
+
"@backstage/backend-app-api": "^1.8.0",
|
|
230
|
+
"@backstage/backend-dev-utils": "^0.1.7",
|
|
231
|
+
"@backstage/backend-plugin-api": "^1.11.0",
|
|
232
|
+
"@backstage/cli-node": "^0.3.5",
|
|
233
|
+
"@backstage/config": "^1.3.10",
|
|
234
|
+
"@backstage/config-loader": "^1.11.4",
|
|
235
|
+
"@backstage/connections": "^0.4.1",
|
|
236
|
+
"@backstage/errors": "^1.3.2",
|
|
237
|
+
"@backstage/integration": "^2.1.3",
|
|
238
|
+
"@backstage/integration-aws-node": "^0.2.3",
|
|
239
|
+
"@backstage/plugin-auth-node": "^0.7.7",
|
|
240
|
+
"@backstage/plugin-events-node": "^0.4.27",
|
|
241
|
+
"@backstage/plugin-permission-common": "^0.9.12",
|
|
242
|
+
"@backstage/plugin-permission-node": "^0.11.5",
|
|
243
|
+
"@backstage/types": "^1.2.2",
|
|
244
244
|
"@google-cloud/storage": "^7.0.0",
|
|
245
245
|
"@keyv/memcache": "^2.0.1",
|
|
246
246
|
"@keyv/redis": "^4.0.1",
|
|
@@ -295,8 +295,8 @@
|
|
|
295
295
|
},
|
|
296
296
|
"devDependencies": {
|
|
297
297
|
"@aws-sdk/util-stream-node": "^3.350.0",
|
|
298
|
-
"@backstage/backend-test-utils": "1.11.8
|
|
299
|
-
"@backstage/cli": "0.36.7
|
|
298
|
+
"@backstage/backend-test-utils": "^1.11.8",
|
|
299
|
+
"@backstage/cli": "^0.36.7",
|
|
300
300
|
"@google-cloud/cloud-sql-connector": "^1.4.0",
|
|
301
301
|
"@types/archiver": "^7.0.0",
|
|
302
302
|
"@types/base64-stream": "^1.0.2",
|