@adobe/helix-config 4.8.4 → 4.10.0

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 CHANGED
@@ -1,3 +1,17 @@
1
+ # [4.10.0](https://github.com/adobe/helix-config/compare/v4.9.0...v4.10.0) (2024-12-16)
2
+
3
+
4
+ ### Features
5
+
6
+ * remove clientCertDN ([#225](https://github.com/adobe/helix-config/issues/225)) ([8c43f12](https://github.com/adobe/helix-config/commit/8c43f12bb7b373504d202baf3852863f72fa4f4b))
7
+
8
+ # [4.9.0](https://github.com/adobe/helix-config/compare/v4.8.4...v4.9.0) (2024-12-09)
9
+
10
+
11
+ ### Features
12
+
13
+ * return legacy config for admin scope ([#222](https://github.com/adobe/helix-config/issues/222)) ([0d6b092](https://github.com/adobe/helix-config/commit/0d6b09286a8d13568a9c4d6f07eb32139aed397f))
14
+
1
15
  ## [4.8.4](https://github.com/adobe/helix-config/compare/v4.8.3...v4.8.4) (2024-12-07)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-config",
3
- "version": "4.8.4",
3
+ "version": "4.10.0",
4
4
  "description": "Helix Config",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -39,11 +39,11 @@
39
39
  "@semantic-release/changelog": "6.0.3",
40
40
  "@semantic-release/git": "10.0.1",
41
41
  "@semantic-release/npm": "12.0.1",
42
- "c8": "10.1.2",
42
+ "c8": "10.1.3",
43
43
  "eslint": "8.57.1",
44
44
  "husky": "9.1.7",
45
45
  "junit-report-builder": "5.1.1",
46
- "lint-staged": "15.2.10",
46
+ "lint-staged": "15.2.11",
47
47
  "mocha": "11.0.1",
48
48
  "mocha-multi-reporters": "1.5.1",
49
49
  "mocha-suppress-logs": "0.5.1",
@@ -123,7 +123,6 @@ export async function getAccessConfig(ctx, config, orgConfig, partition, rso) {
123
123
  .map((jti) => jti.replaceAll('/', '_').replaceAll('+', '-'))
124
124
  .map((id) => tokens[id]?.hash)
125
125
  .filter((hash) => !!hash),
126
- clientCertDN: toArray(pAccess.clientCertDN ?? access.site?.clientCertDN ?? access.clientCertDN),
127
126
  };
128
127
  // if an allow is defined but no apiKeyId, create a fake one so that auth is still enforced.
129
128
  if (allow.length && !cfg.apiKeyId.length) {
@@ -237,16 +236,12 @@ async function resolveConfig(ctx, rso, scope) {
237
236
  const key = `orgs/${rso.org}/sites/${rso.site}.json`;
238
237
  const res = await ctx.loader.getObject(HELIX_CONFIG_BUS, key);
239
238
  if (!res.body) {
240
- if (scope !== SCOPE_ADMIN) {
241
- const config = await resolveLegacyConfig(ctx, rso, scope);
242
- if (config) {
243
- const profile = await loadProfile(ctx, rso, 'default');
244
- config.data.tokens = profile?.data.tokens || {};
245
- }
246
- return config;
247
- } else {
248
- return null;
239
+ const config = await resolveLegacyConfig(ctx, rso, scope);
240
+ if (config) {
241
+ const profile = await loadProfile(ctx, rso, 'default');
242
+ config.data.tokens = profile?.data.tokens || {};
249
243
  }
244
+ return config;
250
245
  }
251
246
  const site = new ConfigObject();
252
247
  site.data = res.json();
@@ -464,8 +459,6 @@ export async function getConfigResponse(ctx, opts) {
464
459
  'x-hlx-contentbus-id': config.content.contentBusId,
465
460
  'x-hlx-owner': config.code.owner,
466
461
  'x-hlx-repo': config.code.repo,
467
- 'x-hlx-auth-clientdn-preview': canonicalArrayString(config.access, 'preview', 'clientCertDN'),
468
- 'x-hlx-auth-clientdn-live': canonicalArrayString(config.access, 'live', 'clientCertDN'),
469
462
  'x-hlx-auth-hash-preview': canonicalArrayString(config.access, 'preview', 'tokenHash'),
470
463
  'x-hlx-auth-hash-live': canonicalArrayString(config.access, 'live', 'tokenHash'),
471
464
  },