@adobe/helix-config 4.5.1 → 4.5.2

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,10 @@
1
+ ## [4.5.2](https://github.com/adobe/helix-config/compare/v4.5.1...v4.5.2) (2024-09-13)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * remove tst support again ([#185](https://github.com/adobe/helix-config/issues/185)) ([6043644](https://github.com/adobe/helix-config/commit/6043644c43490e71b7b5ba2d97e2bf55f0ef519d))
7
+
1
8
  ## [4.5.1](https://github.com/adobe/helix-config/compare/v4.5.0...v4.5.1) (2024-09-10)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-config",
3
- "version": "4.5.1",
3
+ "version": "4.5.2",
4
4
  "description": "Helix Config",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -303,12 +303,6 @@ export async function loadOrgConfig(ctx, org) {
303
303
  return res.body ? res.json() : null;
304
304
  }
305
305
 
306
- export async function loadTransientSiteToken(ctx, org, site) {
307
- const key = `orgs/${org}/sites/${site}/transient-site-tokens.json`;
308
- const res = await ctx.loader.getObject(HELIX_CONFIG_BUS, key);
309
- return res.body ? res.json() : null;
310
- }
311
-
312
306
  /**
313
307
  * Computes the access.admin.role arrays for the org users.
314
308
  * @param adminConfig
@@ -446,13 +440,6 @@ export async function getConfigResponse(ctx, opts) {
446
440
  if (opts.scope === SCOPE_ADMIN || opts.scope === SCOPE_RAW) {
447
441
  // eslint-disable-next-line max-len
448
442
  config.access.admin = computeSiteAdminRoles(admin, orgConfig, config.groups);
449
- } else {
450
- // for pipeline and delivery, also load the site tokens
451
- const tst = await loadTransientSiteToken(ctx, rso.org, rso.site);
452
- if (tst) {
453
- config.access.preview.transientSiteToken = tst.tokens.preview;
454
- config.access.live.transientSiteToken = tst.tokens.live;
455
- }
456
443
  }
457
444
  }
458
445
 
@@ -479,8 +466,6 @@ export async function getConfigResponse(ctx, opts) {
479
466
  'x-hlx-auth-clientdn-live': canonicalArrayString(config.access, 'live', 'clientCertDN'),
480
467
  'x-hlx-auth-hash-preview': canonicalArrayString(config.access, 'preview', 'tokenHash'),
481
468
  'x-hlx-auth-hash-live': canonicalArrayString(config.access, 'live', 'tokenHash'),
482
- 'x-hlx-auth-tst-preview': config.access?.preview?.transientSiteToken?.value || '',
483
- 'x-hlx-auth-tst-live': config.access?.live?.transientSiteToken?.value || '',
484
469
  },
485
470
  });
486
471
  }