auth0-deploy-cli 8.34.0 → 8.35.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
@@ -7,6 +7,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [8.35.0] - 2026-05-22
11
+
12
+ ### Added
13
+
14
+ - Add `AUTH0_IGNORE_DRY_RUN_FIELDS` config option to exclude specified fields from `--dry-run` diff output per handler type. [#1385]
15
+ - Add hostnames and CIDR fields to network ACL match schema. [#1386]
16
+ - Add `ES384` and `ES512` as valid `dpop_signing_alg` values for OIDC and Okta enterprise connections (GA). [#1391]
17
+
18
+ ### Deprecated
19
+
20
+ - Deprecate absolute and external file path references in config handlers; a warning is emitted when detected. Support will be removed in a future major version. [#1392]
21
+
22
+ ### Fixed
23
+
24
+ - Fix keyword markers in themes not being preserved during default export configuration. [#1387]
25
+
10
26
  ## [8.34.0] - 2026-05-11
11
27
 
12
28
  ### Added
@@ -1778,7 +1794,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1778
1794
  [#1379]: https://github.com/auth0/auth0-deploy-cli/issues/1379
1779
1795
  [#1380]: https://github.com/auth0/auth0-deploy-cli/issues/1380
1780
1796
  [#1381]: https://github.com/auth0/auth0-deploy-cli/issues/1381
1781
- [Unreleased]: https://github.com/auth0/auth0-deploy-cli/compare/v8.34.0...HEAD
1797
+ [#1385]: https://github.com/auth0/auth0-deploy-cli/issues/1385
1798
+ [#1386]: https://github.com/auth0/auth0-deploy-cli/issues/1386
1799
+ [#1387]: https://github.com/auth0/auth0-deploy-cli/issues/1387
1800
+ [#1391]: https://github.com/auth0/auth0-deploy-cli/issues/1391
1801
+ [#1392]: https://github.com/auth0/auth0-deploy-cli/issues/1392
1802
+ [Unreleased]: https://github.com/auth0/auth0-deploy-cli/compare/v8.35.0...HEAD
1803
+ [8.35.0]: https://github.com/auth0/auth0-deploy-cli/compare/v8.34.0...v8.35.0
1782
1804
  [8.34.0]: https://github.com/auth0/auth0-deploy-cli/compare/v8.33.0...v8.34.0
1783
1805
  [8.33.0]: https://github.com/auth0/auth0-deploy-cli/compare/v8.32.0...v8.33.0
1784
1806
  [8.32.0]: https://github.com/auth0/auth0-deploy-cli/compare/v8.31.0...v8.32.0
@@ -26,6 +26,9 @@ function parse(context) {
26
26
  // It can be a relative path, so we need to handle both cases.
27
27
  const unixPath = module.code.replace(/[\\/]+/g, '/').replace(/^([a-zA-Z]+:|\.\/)/, '');
28
28
  if (fs_extra_1.default.existsSync(unixPath)) {
29
+ logger_1.default.warn(`Support for absolute paths and paths outside the config root will be deprecated in a future version to improve the security of the tool. ` +
30
+ `Please update your configuration to use paths relative to the config directory. ` +
31
+ `Current absolute path used: ["${module.code}"]`);
29
32
  module.code = context.loadFile(unixPath, moduleFolder);
30
33
  }
31
34
  else {
@@ -28,6 +28,9 @@ function parse(context) {
28
28
  const unixPath = action.code.replace(/[\\/]+/g, '/').replace(/^([a-zA-Z]+:|\.\/)/, '');
29
29
  if (fs_extra_1.default.existsSync(unixPath)) {
30
30
  // If the Unix-style path exists, load the file from that path
31
+ logger_1.default.warn(`Support for absolute paths and paths outside the config root will be deprecated in a future version to improve the security of the tool. ` +
32
+ `Please update your configuration to use paths relative to the config directory. ` +
33
+ `Current absolute path used: ["${action.code}"]`);
31
34
  action.code = context.loadFile(unixPath, actionFolder);
32
35
  }
33
36
  else {
@@ -8,7 +8,7 @@ const fs_extra_1 = __importDefault(require("fs-extra"));
8
8
  const tools_1 = require("../../../tools");
9
9
  const logger_1 = __importDefault(require("../../../logger"));
10
10
  const utils_1 = require("../../../utils");
11
- function getDatabase(folder, mappingOpts) {
11
+ function getDatabase(folder, configRoot, mappingOpts) {
12
12
  const metaFile = path_1.default.join(folder, 'database.json');
13
13
  const metaData = (() => {
14
14
  try {
@@ -40,7 +40,14 @@ function getDatabase(folder, mappingOpts) {
40
40
  logger_1.default.warn('Skipping invalid database configuration: ' + name);
41
41
  }
42
42
  else {
43
- database.options.customScripts[name] = (0, tools_1.loadFileAndReplaceKeywords)(path_1.default.join(folder, script), mappingOpts);
43
+ const resolvedBase = path_1.default.resolve(configRoot);
44
+ const toLoad = path_1.default.resolve(folder, script);
45
+ if (!toLoad.startsWith(resolvedBase + path_1.default.sep)) {
46
+ logger_1.default.warn(`Support for absolute paths and paths outside the config root will be deprecated in a future version to improve the security of the tool. ` +
47
+ `Please update your configuration to use paths relative to the config directory. ` +
48
+ `Current absolute path used: ["${script}"]`);
49
+ }
50
+ database.options.customScripts[name] = (0, tools_1.loadFileAndReplaceKeywords)(toLoad, mappingOpts);
44
51
  }
45
52
  });
46
53
  }
@@ -55,7 +62,7 @@ function parse(context) {
55
62
  .map((f) => path_1.default.join(databaseFolder, f))
56
63
  .filter((f) => (0, utils_1.isDirectory)(f));
57
64
  const databases = folders
58
- .map((f) => getDatabase(f, {
65
+ .map((f) => getDatabase(f, context.filePath, {
59
66
  mappings: context.mappings,
60
67
  disableKeywordReplacement: context.disableKeywordReplacement,
61
68
  }))
@@ -73,6 +73,9 @@ class DirectoryContext {
73
73
  if (!(0, utils_1.isFile)(toLoad)) {
74
74
  // try load not relative to yaml file
75
75
  toLoad = f;
76
+ logger_1.default.warn(`Support for absolute paths and paths outside the config root will be deprecated in a future version to improve the security of the tool. ` +
77
+ `Please update your configuration to use paths relative to the config directory. ` +
78
+ `Current absolute path used: ["${f}"]`);
76
79
  }
77
80
  return (0, tools_1.loadFileAndReplaceKeywords)(toLoad, {
78
81
  mappings: this.mappings,
@@ -47,6 +47,9 @@ class YAMLContext {
47
47
  if (!(0, utils_1.isFile)(toLoad)) {
48
48
  // try load not relative to yaml file
49
49
  toLoad = f;
50
+ logger_1.default.warn(`Support for absolute paths and paths outside the config root will be deprecated in a future version to improve the security of the tool. ` +
51
+ `Please update your configuration to use paths relative to the config directory. ` +
52
+ `Current absolute path used: ["${f}"]`);
50
53
  }
51
54
  return (0, tools_1.loadFileAndReplaceKeywords)(path_1.default.resolve(toLoad), {
52
55
  mappings: this.mappings,
@@ -48,17 +48,22 @@ const getPreservableFieldsFromAssets = (asset, keywordMappings, resourceSpecific
48
48
  const specificAddress = resourceIdentifiers.reduce((aggregateAddress, resourceIdentifier) => {
49
49
  resourceSpecificIdentifiers[address];
50
50
  if (resourceIdentifier === undefined)
51
- return ''; // See if this specific resource type has an identifier
51
+ return aggregateAddress; // See if this specific resource type has an identifier
52
52
  const identifierFieldValue = arrayItem[resourceIdentifier];
53
53
  if (identifierFieldValue === undefined)
54
- return ''; // See if this specific array item possess the resource-specific identifier
54
+ return aggregateAddress; // See if this specific array item possess the resource-specific identifier
55
55
  if (aggregateAddress === '') {
56
56
  return `${resourceIdentifier}=${identifierFieldValue}`;
57
57
  }
58
58
  return `${aggregateAddress}||${resourceIdentifier}=${identifierFieldValue}`;
59
59
  }, '');
60
60
  if (specificAddress.length === 0) {
61
- return [];
61
+ // No identifiers registered: skip. Identifiers registered but absent from item: fall back to positional index.
62
+ if (resourceIdentifiers.length === 0) {
63
+ return [];
64
+ }
65
+ const arrayIndex = asset.indexOf(arrayItem);
66
+ return (0, exports.getPreservableFieldsFromAssets)(arrayItem, keywordMappings, resourceSpecificIdentifiers, `${address}${shouldRenderDot ? '.' : ''}${arrayIndex}`);
62
67
  }
63
68
  return (0, exports.getPreservableFieldsFromAssets)(arrayItem, keywordMappings, resourceSpecificIdentifiers, `${address}${shouldRenderDot ? '.' : ''}[${specificAddress}]`);
64
69
  })
@@ -23,6 +23,7 @@ export declare const schema: {
23
23
  };
24
24
  dpop_signing_alg: {
25
25
  type: string;
26
+ enum: string[];
26
27
  };
27
28
  token_endpoint_auth_signing_alg: {
28
29
  type: string;
@@ -61,6 +61,7 @@ const connectionOptionsSchema = {
61
61
  },
62
62
  dpop_signing_alg: {
63
63
  type: 'string',
64
+ enum: ['ES256', 'ES384', 'ES512', 'Ed25519'],
64
65
  },
65
66
  token_endpoint_auth_signing_alg: {
66
67
  type: 'string',
@@ -42,6 +42,13 @@ export default class APIHandler {
42
42
  };
43
43
  ignoreDryRunFields: APIHandler['ignoreDryRunFields'];
44
44
  });
45
+ /**
46
+ * Returns the effective `ignoreDryRunFields` for this handler, merging the
47
+ * handler's hardcoded defaults with any user-supplied entries from the
48
+ * `AUTH0_IGNORE_DRY_RUN_FIELDS[<type>]` config key. Read lazily so that the
49
+ * constructor remains free of config-provider invocations.
50
+ */
51
+ getEffectiveIgnoreDryRunFields(): string[];
45
52
  getClientFN(fn: ApiMethodOverride): Function;
46
53
  didDelete(item: Asset): void;
47
54
  didCreate(item: Asset): void;
@@ -88,6 +88,25 @@ class APIHandler {
88
88
  this.created = 0;
89
89
  this.deleted = 0;
90
90
  }
91
+ /**
92
+ * Returns the effective `ignoreDryRunFields` for this handler, merging the
93
+ * handler's hardcoded defaults with any user-supplied entries from the
94
+ * `AUTH0_IGNORE_DRY_RUN_FIELDS[<type>]` config key. Read lazily so that the
95
+ * constructor remains free of config-provider invocations.
96
+ */
97
+ getEffectiveIgnoreDryRunFields() {
98
+ let configured = [];
99
+ try {
100
+ const map = this.config('AUTH0_IGNORE_DRY_RUN_FIELDS');
101
+ if (map && Array.isArray(map[this.type])) {
102
+ configured = map[this.type];
103
+ }
104
+ }
105
+ catch {
106
+ configured = [];
107
+ }
108
+ return [...this.ignoreDryRunFields, ...configured].filter((field, index, allFields) => allFields.indexOf(field) === index);
109
+ }
91
110
  getClientFN(fn) {
92
111
  if (typeof fn === 'string') {
93
112
  const client = this.client[this.type];
@@ -194,7 +213,7 @@ class APIHandler {
194
213
  // @ts-ignore TODO: investigate what happens when `existing` is null
195
214
  existing,
196
215
  identifiers: this.identifiers,
197
- ignoreDryRunFields: this.ignoreDryRunFields,
216
+ ignoreDryRunFields: this.getEffectiveIgnoreDryRunFields(),
198
217
  });
199
218
  }
200
219
  // if we are not in dry run mode, calculate the changes
@@ -227,7 +246,7 @@ class APIHandler {
227
246
  // @ts-ignore TODO: investigate what happens when `existing` is null
228
247
  existing,
229
248
  identifiers: this.identifiers,
230
- ignoreDryRunFields: this.ignoreDryRunFields,
249
+ ignoreDryRunFields: this.getEffectiveIgnoreDryRunFields(),
231
250
  });
232
251
  }
233
252
  async validate(assets) {
@@ -150,6 +150,27 @@ export declare const schema: {
150
150
  minItems: number;
151
151
  maxItems: number;
152
152
  };
153
+ hostnames: {
154
+ type: string;
155
+ items: {
156
+ type: string;
157
+ };
158
+ uniqueItems: boolean;
159
+ };
160
+ connecting_ipv4_cidrs: {
161
+ type: string;
162
+ items: {
163
+ type: string;
164
+ };
165
+ uniqueItems: boolean;
166
+ };
167
+ connecting_ipv6_cidrs: {
168
+ type: string;
169
+ items: {
170
+ type: string;
171
+ };
172
+ uniqueItems: boolean;
173
+ };
153
174
  };
154
175
  additionalProperties: boolean;
155
176
  };
@@ -228,6 +249,27 @@ export declare const schema: {
228
249
  minItems: number;
229
250
  maxItems: number;
230
251
  };
252
+ hostnames: {
253
+ type: string;
254
+ items: {
255
+ type: string;
256
+ };
257
+ uniqueItems: boolean;
258
+ };
259
+ connecting_ipv4_cidrs: {
260
+ type: string;
261
+ items: {
262
+ type: string;
263
+ };
264
+ uniqueItems: boolean;
265
+ };
266
+ connecting_ipv6_cidrs: {
267
+ type: string;
268
+ items: {
269
+ type: string;
270
+ };
271
+ uniqueItems: boolean;
272
+ };
231
273
  };
232
274
  additionalProperties: boolean;
233
275
  };
@@ -133,6 +133,27 @@ const MatchSchema = {
133
133
  minItems: 1,
134
134
  maxItems: 10,
135
135
  },
136
+ hostnames: {
137
+ type: 'array',
138
+ items: {
139
+ type: 'string',
140
+ },
141
+ uniqueItems: true,
142
+ },
143
+ connecting_ipv4_cidrs: {
144
+ type: 'array',
145
+ items: {
146
+ type: 'string',
147
+ },
148
+ uniqueItems: true,
149
+ },
150
+ connecting_ipv6_cidrs: {
151
+ type: 'array',
152
+ items: {
153
+ type: 'string',
154
+ },
155
+ uniqueItems: true,
156
+ },
136
157
  },
137
158
  additionalProperties: false,
138
159
  };
package/lib/types.d.ts CHANGED
@@ -76,6 +76,9 @@ export type Config = {
76
76
  AUTH0_DRY_RUN?: boolean | 'preview';
77
77
  AUTH0_DRY_RUN_INTERACTIVE?: boolean;
78
78
  AUTH0_DRY_RUN_APPLY?: boolean;
79
+ AUTH0_IGNORE_DRY_RUN_FIELDS?: {
80
+ [handlerType: string]: string[];
81
+ };
79
82
  EXCLUDED_PROPS?: {
80
83
  [key: string]: string[];
81
84
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "auth0-deploy-cli",
3
- "version": "8.34.0",
3
+ "version": "8.35.0",
4
4
  "description": "A command line tool for deploying updates to your Auth0 tenant",
5
5
  "main": "lib/index.js",
6
6
  "bin": {