@adobe/helix-config 1.0.2 → 1.1.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
+ # [1.1.0](https://github.com/adobe/helix-config/compare/v1.0.3...v1.1.0) (2024-03-04)
2
+
3
+
4
+ ### Features
5
+
6
+ * add client certification DN to access config ([#24](https://github.com/adobe/helix-config/issues/24)) ([ec517e3](https://github.com/adobe/helix-config/commit/ec517e39814f0006ba993dbcbeb06043743f8609)), closes [#21](https://github.com/adobe/helix-config/issues/21)
7
+
8
+ ## [1.0.3](https://github.com/adobe/helix-config/compare/v1.0.2...v1.0.3) (2024-03-02)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **deps:** update dependency @adobe/helix-shared-config to v10.3.12 ([a8b29c9](https://github.com/adobe/helix-config/commit/a8b29c9115a5391a311d375c8452e91d4b4e1777))
14
+
1
15
  ## [1.0.2](https://github.com/adobe/helix-config/compare/v1.0.1...v1.0.2) (2024-02-08)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-config",
3
- "version": "1.0.2",
3
+ "version": "1.1.0",
4
4
  "description": "Helix Config",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -31,13 +31,13 @@
31
31
  "@adobe/eslint-config-helix": "2.0.6",
32
32
  "@semantic-release/changelog": "6.0.3",
33
33
  "@semantic-release/git": "10.0.1",
34
- "@semantic-release/npm": "11.0.2",
34
+ "@semantic-release/npm": "11.0.3",
35
35
  "c8": "9.1.0",
36
- "eslint": "8.56.0",
37
- "husky": "9.0.10",
36
+ "eslint": "8.57.0",
37
+ "husky": "9.0.11",
38
38
  "junit-report-builder": "3.2.1",
39
- "lint-staged": "15.2.1",
40
- "mocha": "10.2.0",
39
+ "lint-staged": "15.2.2",
40
+ "mocha": "10.3.0",
41
41
  "mocha-multi-reporters": "1.5.1",
42
42
  "semantic-release": "23.0.0"
43
43
  },
@@ -46,6 +46,6 @@
46
46
  "*.cjs": "eslint"
47
47
  },
48
48
  "dependencies": {
49
- "@adobe/helix-shared-config": "10.3.11"
49
+ "@adobe/helix-shared-config": "10.3.12"
50
50
  }
51
51
  }
@@ -64,6 +64,7 @@ export function getAccessConfig(access, partition) {
64
64
  return {
65
65
  allow: toArray(access[partition]?.allow ?? access.allow),
66
66
  apiKeyId: toArray(access[partition]?.apiKeyId ?? access.apiKeyId),
67
+ clientCertDN: toArray(access[partition]?.clientCertDN ?? access.clientCertDN),
67
68
  };
68
69
  }
69
70
 
@@ -170,7 +171,6 @@ export async function getConfigResponse(ctx, opts) {
170
171
  return new PipelineResponse('', {
171
172
  status: 404,
172
173
  headers: {
173
- 'cache-control': 'private, no-cache, must-revalidate',
174
174
  'x-error': 'config not found.',
175
175
  },
176
176
  });
@@ -191,7 +191,6 @@ export async function getConfigResponse(ctx, opts) {
191
191
 
192
192
  const headers = {
193
193
  'content-type': 'application/json',
194
- 'cache-control': 'private, no-cache, must-revalidate',
195
194
  };
196
195
 
197
196
  if (opts.scope === SCOPE_DELIVERY) {
@@ -200,8 +199,10 @@ export async function getConfigResponse(ctx, opts) {
200
199
  headers['x-hlx-repo'] = config.repo;
201
200
  headers['x-hlx-auth-allow-preview'] = canonicalArrayString(config.access, 'preview', 'allow');
202
201
  headers['x-hlx-auth-apikey-preview'] = canonicalArrayString(config.access, 'preview', 'apiKeyId');
202
+ headers['x-hlx-auth-clientdn-preview'] = canonicalArrayString(config.access, 'preview', 'clientCertDN');
203
203
  headers['x-hlx-auth-allow-live'] = canonicalArrayString(config.access, 'live', 'allow');
204
204
  headers['x-hlx-auth-apikey-live'] = canonicalArrayString(config.access, 'live', 'apiKeyId');
205
+ headers['x-hlx-auth-clientdn-live'] = canonicalArrayString(config.access, 'live', 'clientCertDN');
205
206
  // remove unused properties
206
207
  delete config.access;
207
208
  delete config.cdn;
@@ -19,7 +19,6 @@ export async function getDomainResponse(ctx, domain) {
19
19
  return new PipelineResponse('', {
20
20
  status: 404,
21
21
  headers: {
22
- 'cache-control': 'private, no-cache, must-revalidate',
23
22
  'x-error': 'domain not found.',
24
23
  },
25
24
  });