auth0-deploy-cli 7.6.0 → 7.7.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.
Files changed (112) hide show
  1. package/.eslintrc +7 -41
  2. package/.husky/pre-commit +4 -0
  3. package/.husky/pre-push +3 -1
  4. package/.prettierignore +10 -0
  5. package/.prettierrc.json +4 -0
  6. package/CHANGELOG.md +194 -7
  7. package/CONTRIBUTING.md +2 -2
  8. package/README.md +3 -0
  9. package/lib/args.js +16 -15
  10. package/lib/commands/export.js +3 -3
  11. package/lib/commands/import.js +6 -6
  12. package/lib/commands/index.js +1 -1
  13. package/lib/configFactory.js +5 -1
  14. package/lib/context/defaults.js +4 -3
  15. package/lib/context/directory/handlers/actions.js +3 -3
  16. package/lib/context/directory/handlers/attackProtection.js +4 -4
  17. package/lib/context/directory/handlers/branding.js +6 -5
  18. package/lib/context/directory/handlers/clientGrants.js +3 -2
  19. package/lib/context/directory/handlers/clients.js +1 -1
  20. package/lib/context/directory/handlers/connections.js +4 -2
  21. package/lib/context/directory/handlers/databases.js +13 -7
  22. package/lib/context/directory/handlers/emailProvider.js +3 -2
  23. package/lib/context/directory/handlers/emailTemplates.js +2 -2
  24. package/lib/context/directory/handlers/guardianFactorProviders.js +3 -2
  25. package/lib/context/directory/handlers/guardianFactorTemplates.js +3 -2
  26. package/lib/context/directory/handlers/guardianFactors.js +3 -2
  27. package/lib/context/directory/handlers/guardianPhoneFactorMessageTypes.js +1 -1
  28. package/lib/context/directory/handlers/guardianPhoneFactorSelectedProvider.js +1 -1
  29. package/lib/context/directory/handlers/guardianPolicies.js +1 -1
  30. package/lib/context/directory/handlers/hooks.js +2 -2
  31. package/lib/context/directory/handlers/index.js +3 -2
  32. package/lib/context/directory/handlers/organizations.js +1 -1
  33. package/lib/context/directory/handlers/pages.js +2 -2
  34. package/lib/context/directory/handlers/resourceServers.js +3 -2
  35. package/lib/context/directory/handlers/roles.js +1 -1
  36. package/lib/context/directory/handlers/rules.js +2 -2
  37. package/lib/context/directory/handlers/rulesConfigs.js +3 -2
  38. package/lib/context/directory/handlers/tenant.js +3 -2
  39. package/lib/context/directory/index.js +21 -18
  40. package/lib/context/index.js +66 -62
  41. package/lib/context/yaml/handlers/actions.js +9 -6
  42. package/lib/context/yaml/handlers/attackProtection.js +1 -1
  43. package/lib/context/yaml/handlers/branding.js +5 -4
  44. package/lib/context/yaml/handlers/clientGrants.js +2 -2
  45. package/lib/context/yaml/handlers/clients.js +6 -4
  46. package/lib/context/yaml/handlers/connections.js +7 -5
  47. package/lib/context/yaml/handlers/databases.js +12 -8
  48. package/lib/context/yaml/handlers/emailProvider.js +4 -3
  49. package/lib/context/yaml/handlers/emailTemplates.js +3 -3
  50. package/lib/context/yaml/handlers/guardianFactorProviders.js +1 -1
  51. package/lib/context/yaml/handlers/guardianFactorTemplates.js +1 -1
  52. package/lib/context/yaml/handlers/guardianFactors.js +1 -1
  53. package/lib/context/yaml/handlers/guardianPhoneFactorMessageTypes.js +1 -1
  54. package/lib/context/yaml/handlers/guardianPhoneFactorSelectedProvider.js +1 -1
  55. package/lib/context/yaml/handlers/guardianPolicies.js +1 -1
  56. package/lib/context/yaml/handlers/hooks.js +4 -3
  57. package/lib/context/yaml/handlers/index.js +3 -2
  58. package/lib/context/yaml/handlers/organizations.js +3 -3
  59. package/lib/context/yaml/handlers/pages.js +3 -3
  60. package/lib/context/yaml/handlers/resourceServers.js +2 -2
  61. package/lib/context/yaml/handlers/roles.js +3 -3
  62. package/lib/context/yaml/handlers/rules.js +3 -3
  63. package/lib/context/yaml/handlers/rulesConfigs.js +2 -2
  64. package/lib/context/yaml/handlers/tenant.js +4 -3
  65. package/lib/context/yaml/handlers/triggers.js +2 -2
  66. package/lib/context/yaml/index.js +31 -23
  67. package/lib/index.js +20 -15
  68. package/lib/logger.js +4 -3
  69. package/lib/readonly.js +11 -16
  70. package/lib/sessionDurationsToMinutes.js +15 -0
  71. package/lib/tools/auth0/client.js +6 -6
  72. package/lib/tools/auth0/handlers/actions.js +21 -23
  73. package/lib/tools/auth0/handlers/attackProtection.js +14 -17
  74. package/lib/tools/auth0/handlers/branding.js +13 -9
  75. package/lib/tools/auth0/handlers/clientGrants.js +17 -10
  76. package/lib/tools/auth0/handlers/clients.js +15 -8
  77. package/lib/tools/auth0/handlers/connections.js +30 -10
  78. package/lib/tools/auth0/handlers/databases.js +24 -12
  79. package/lib/tools/auth0/handlers/default.js +41 -29
  80. package/lib/tools/auth0/handlers/emailTemplates.js +8 -10
  81. package/lib/tools/auth0/handlers/guardianFactorProviders.js +3 -3
  82. package/lib/tools/auth0/handlers/guardianFactorTemplates.js +3 -3
  83. package/lib/tools/auth0/handlers/guardianFactors.js +3 -3
  84. package/lib/tools/auth0/handlers/guardianPhoneFactorMessageTypes.js +11 -10
  85. package/lib/tools/auth0/handlers/guardianPhoneFactorSelectedProvider.js +10 -9
  86. package/lib/tools/auth0/handlers/guardianPolicies.js +5 -4
  87. package/lib/tools/auth0/handlers/hooks.js +34 -21
  88. package/lib/tools/auth0/handlers/index.js +31 -27
  89. package/lib/tools/auth0/handlers/migrations.js +2 -1
  90. package/lib/tools/auth0/handlers/organizations.js +61 -31
  91. package/lib/tools/auth0/handlers/pages.js +20 -14
  92. package/lib/tools/auth0/handlers/prompts.js +1 -0
  93. package/lib/tools/auth0/handlers/resourceServers.js +22 -14
  94. package/lib/tools/auth0/handlers/roles.js +55 -31
  95. package/lib/tools/auth0/handlers/rules.js +49 -32
  96. package/lib/tools/auth0/handlers/rulesConfigs.js +12 -6
  97. package/lib/tools/auth0/handlers/tenant.js +8 -4
  98. package/lib/tools/auth0/handlers/triggers.js +11 -12
  99. package/lib/tools/auth0/index.js +15 -31
  100. package/lib/tools/auth0/schema.js +7 -27
  101. package/lib/tools/calculateChanges.js +11 -6
  102. package/lib/tools/constants.js +162 -161
  103. package/lib/tools/deploy.js +1 -1
  104. package/lib/tools/index.js +1 -1
  105. package/lib/tools/logger.js +14 -8
  106. package/lib/tools/utils.js +2 -2
  107. package/lib/tools/{ValidationError.js → validationError.js} +3 -1
  108. package/lib/types.js +2 -0
  109. package/lib/utils.js +12 -22
  110. package/package.json +8 -1
  111. package/tsconfig.json +1 -3
  112. package/typescript-migration-progress.sh +1 -1
package/CHANGELOG.md CHANGED
@@ -7,217 +7,318 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [7.7.0] - 2022-04-06
11
+
12
+ ### Added
13
+
14
+ - Exclusion of entire resource types via the `AUTH0_EXCLUDED` configuration parameter. See [Resource Exclusion Proposal](https://github.com/auth0/auth0-deploy-cli/issues/451) for details. [#468]
15
+
16
+ ### Fixed
17
+
18
+ - `idle_session_lifetime` and `session_lifetime` values properly ignored on update if inheriting default tenant values.[#471]
19
+
10
20
  ## [7.6.0] - 2022-03-25
21
+
11
22
  ### Added
23
+
12
24
  - New branding template feature support [#438]
13
25
 
14
26
  ### Fixed
27
+
15
28
  - Colliding `e` parameter alias between `export_ids` and `env` [#453]
16
29
 
17
30
  ## [7.5.2] - 2022-03-15
31
+
18
32
  ### Fixed
33
+
19
34
  - Resetting this version to be latest on NPM
20
35
 
21
36
  ## [7.5.1] - 2022-03-11
37
+
22
38
  ### Fixed
39
+
23
40
  - Updating dead link in logging output [#436]
24
41
  - Fixing `--env` flag to properly dictate environment variable inheritance [#432]
25
42
 
26
43
  ## [7.5.0] - 2022-03-08
44
+
27
45
  ### Added
46
+
28
47
  - Support for attack protection configuration management [#428]
29
48
 
30
49
  ### Fixed
50
+
31
51
  - Excluded connection properties from getting deleted upon update [#430]
32
52
  - Organizations in YAML format are skipped when not defined [#388]
33
53
 
34
54
  ## [7.4.0] - 2022-02-24
55
+
35
56
  ### Added
57
+
36
58
  - Allowing @@ array variable replacement to work when wrapped in quotes [#421]
37
59
 
38
60
  ### Fixed
61
+
39
62
  - Eliminated benign `client_metadata` warnings on import [#416]
40
63
  - Fixing request abstraction from losing function scope, enabling Auth0 Node SDK updates [#412]
41
64
 
42
65
  ### Security
66
+
43
67
  - Updating Auth0 Node SDK to 2.40.0 which fixes minor dependency vulnerability
44
68
 
45
69
  ## [7.3.7] - 2022-02-03
70
+
46
71
  ### Fixed
72
+
47
73
  - Expose errors that may be silently missed in Actions [#408]
48
74
 
49
75
  ## [7.3.6] - 2022-02-02
76
+
50
77
  ### Fixed
78
+
51
79
  - Fix errors caused by incompatibilities introduced by new versions of Auth0 SDK [#406]
52
80
 
53
81
  ## [7.3.5] - 2022-01-27
82
+
54
83
  ### Fixed
84
+
55
85
  - Fix an error with the function context [#403]
56
86
 
57
87
  ## [7.3.4] - 2022-01-26
88
+
58
89
  ### Fixed
90
+
59
91
  - Fix pagination [#401]
60
92
 
61
93
  ## [7.3.3] - 2022-01-26
94
+
62
95
  ### Fixed
96
+
63
97
  - Fix pagination [#400]
64
98
 
65
99
  ### Security
100
+
66
101
  - Security fixes from dependencies
67
102
 
68
103
  ## [7.3.2] - 2021-12-14
104
+
69
105
  ### Security
106
+
70
107
  - Fixes dependency security issues
71
108
 
72
109
  ## [7.3.1] - 2021-09-21
110
+
73
111
  ### Fixed
112
+
74
113
  - Error when authenticating with AUTH0_CLIENT_ID and AUTH0_CLIENT_SECRET with Node.js prior to v14
75
114
 
76
115
  ## [7.3.0] - 2021-09-20
116
+
77
117
  ### Added
118
+
78
119
  - Allow set of AUTH0_AUDIENCE for custom domain [#379] (credit @AliBazzi)
79
120
 
80
121
  ### Fixed
122
+
81
123
  - Load file configured in customScripts for DB Connections [#367] (credit @skukx)
82
124
 
83
125
  ### Security
126
+
84
127
  - Security fixes from dependencies
85
128
 
86
129
  ## [7.2.1] - 2021-08-23
130
+
87
131
  ### Fixed
132
+
88
133
  - [IDS-3074] Updated structure when dumping orgs (#369)
89
-
134
+
90
135
  Fixes an issue when exporting organizations as a directory, connections are not structured in the right way, causing the import to remove any connection on the organizations.
136
+
91
137
  - [DXEX-1721] Fix client metadata property deletion
92
-
138
+
93
139
  Fixes an inconsistency between how we calculate changes on deep metadata-like objects and with how APIv2 expects such changes to be expressed when a property is deleted.
140
+
94
141
  - Bump js-yaml from 3.x to 4.x and move to kacl (#371)
95
-
142
+
96
143
  This PR bumps js-yaml from 3.x to 4.x in accordance with its migration guide. This bump means that we're able to use the default safe behaviour for both exports and imports.
97
-
144
+
98
145
  Notably, this means that we won't end up with values like !<tag:yaml.org,2002:js/undefined> '' that are not at all human friendly and were problematic when we used the .safeLoad functionality.
99
146
 
100
147
  ## [7.2.0] - 2021-07-14
148
+
101
149
  ### Added
150
+
102
151
  - Add runtime property for actions [#364]
103
152
 
104
153
  ## [7.1.1] - 2021-06-23
154
+
105
155
  ### Added
156
+
106
157
  - Export tools module
107
158
 
108
159
  ### Fixed
160
+
109
161
  - Fix exception when actions is undefined [#361]
110
162
  - yargs should not be called when required as a module
111
163
 
112
164
  ## [7.1.0] - 2021-06-23
165
+
113
166
  ### Changed
167
+
114
168
  - Actions refactoring and fixes [#356]
115
169
  - Bump auth0@2.35.1
116
170
 
117
171
  ## [7.0.0] - 2021-06-11
172
+
118
173
  ### Added
174
+
119
175
  - MFA-1174 Support Recovery Codes
120
176
  - Support for organizations
121
177
  - Prompt link to Auth0 Docs upon insufficient scope
122
178
 
123
179
  ### Changed
180
+
124
181
  - Removed dependency on `auth0-source-control-extension-tools`, the package is not part of `auth0-deploy-cli`
125
182
  - Removed dependency on `auth-extension-tools`
126
183
 
127
184
  ### Deprecated
185
+
128
186
  - Dropped Node.js 8 support
129
187
 
130
188
  ### Fixed
189
+
131
190
  - Upstream node registry
132
191
 
133
192
  ### Security
193
+
134
194
  - Security fixes from dependencies
135
195
 
136
196
  ## [6.0.0] - 2020-12-28
197
+
137
198
  ### Deprecated
199
+
138
200
  - This release has been withdrawn
139
201
 
140
202
  ## [5.5.7] - 2021-05-19
203
+
141
204
  ### Added
205
+
142
206
  - Add Support Recovery Codes by bumping auth0-source-control-extension-tools@4.7.2
143
207
 
144
208
  ## [5.5.6] - 2021-04-21
209
+
145
210
  ### Fixed
211
+
146
212
  - Fix EXCLUDE_PROPS behaviour for connections and databases.
147
213
 
148
214
  ## [5.5.5] - 2021-03-26
215
+
149
216
  ### Fixed
217
+
150
218
  - Broken dependencies on 4.5.x range of source-countrol-extension-tools because of organizations.
151
219
 
152
220
  ## [5.5.4] - 2021-03-12
221
+
153
222
  ### Fixed
223
+
154
224
  - Remove limit on permissions in roles
155
225
 
156
226
  ## [5.5.3] - 2021-03-10
227
+
157
228
  ### Added
229
+
158
230
  - Add webauthn platform as a supported factor
159
231
 
160
232
  ## [5.5.2] - 2021-03-10
233
+
161
234
  ### Fixed
235
+
162
236
  - Fix pagination when computing changes
163
237
 
164
238
  ## [5.5.1] - 2021-03-03
239
+
165
240
  ### Fixed
241
+
166
242
  - Fix issues with retrieving more than 50 roles
167
243
 
168
244
  ## [5.5.0] - 2021-01-28
245
+
169
246
  ### Added
247
+
170
248
  - Add support for `verify_email_by_code` email template [#309]
171
249
 
172
250
  ## [5.3.2] - 2020-12-17
251
+
173
252
  ### Fixed
253
+
174
254
  - Fix keyword mapping in client page templates [ESD-10528] [#291]
175
255
 
176
256
  ## [5.3.1] - 2020-11-16
257
+
177
258
  ### Fixed
259
+
178
260
  - Fix report error exporting hooks by bumping auth0-source-control-extension-tools@4.1.12 [#289]
179
261
  - Add MFA factor webauthn-roaming support by bumping auth0-source-control-extension-tools@4.1.12 [#289]
180
262
 
181
263
  ## [5.3.0] - 2020-11-05
264
+
182
265
  ### Changed
266
+
183
267
  - Return database `enabled_clients` in deterministic order [#281]
184
268
 
185
269
  ### Fixed
270
+
186
271
  - Fix the structure of the example policies.json, and correct the guardianPolicies test to use `all-applications` instead of `all-application` [#278]
187
272
  - Fix pagination for specific API calls by bumping auth0-source-control-extension-tools@4.1.9 [#287]
188
273
 
189
274
  ## [5.2.1] - 2020-09-23
275
+
190
276
  ### Fixed
277
+
191
278
  - Issue with client grants deleted when using AUTH0_EXCLUDED_CLIENTS
192
279
 
193
280
  ## [5.2.0] - 2020-09-17
281
+
194
282
  ### Fixed
283
+
195
284
  - Always sort custom database scripts alphabetically
196
285
 
197
286
  ## [5.1.6] - 2020-09-15
287
+
198
288
  ### Fixed
289
+
199
290
  - Add new line support to JSON files generated in directory dumps
200
291
  - Move write file method to common util
201
292
  - Update `auth0-source-control-extension-tools`
202
293
 
203
294
  ## [5.1.5] - 2020-08-13
295
+
204
296
  ### Fixed
297
+
205
298
  - The --proxy_url option should work properly now. (Although only on Node >= 10).
206
299
 
207
300
  ## [5.1.4] - 2020-08-12
301
+
208
302
  ### Fixed
303
+
209
304
  - Connections disabled when the client is added AUTH0_EXCLUDED_CLIENTS list.
210
305
 
211
306
  ## [5.1.3] - 2020-08-04
307
+
212
308
  ### Fixed
309
+
213
310
  - Many entities were not being fetched via the Paging API properly.
214
311
 
215
312
  ## [5.1.3] - 2020-08-04
313
+
216
314
  ### Fixed
315
+
217
316
  - Many entities were not being fetched via the Paging API properly.
218
317
 
219
318
  ## [5.1.0] - 2020-07-09
319
+
220
320
  ### Added
321
+
221
322
  - Add support for three guardian/MFA-related features:
222
323
  - Guardian Policies
223
324
  - Guardian Phone factor selected provider
@@ -225,23 +326,31 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
225
326
  - Adds support for Migrations
226
327
 
227
328
  ## [5.0.0] - 2020-06-04
329
+
228
330
  ### Added
331
+
229
332
  - Allow excluding default values for emailProvider with `AUTH0_EXCLUDED_DEFAULTS` [#236]
230
333
 
231
334
  ### Changed
335
+
232
336
  - [**Breaking**] Updated dependencies and deprecated support for Node versions earlier than 8 via babel@7 and dot-prop@5 [#242]
233
337
 
234
338
  ### Fixed
339
+
235
340
  - pages: fix error when dumping error_page without html property [#247]
236
341
 
237
342
  ## [4.3.1] - 2020-05-20
343
+
238
344
  ### Fixed
345
+
239
346
  - Fixed broken mkdirp package dependency
240
347
 
241
348
  ## [4.3.0] - 2020-05-18
349
+
242
350
  ### Removed
351
+
243
352
  - Removed several unused dependencies:
244
-
353
+
245
354
  - ajv
246
355
  - e6-template-strings
247
356
  - node-storage
@@ -249,174 +358,250 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
249
358
  - xregexp
250
359
 
251
360
  ## [4.2.2] - 2020-05-04
361
+
252
362
  ### Added
363
+
253
364
  - Support for phone message hook added.
254
365
  - Configurable connections directory with `AUTH0_CONNECTIONS_DIRECTORY`.
255
366
 
256
367
  ### Removed
368
+
257
369
  - Remove data from verify email example to prevent copy and paste misuse.
258
370
 
259
371
  ## [4.2.1] - 2020-04-06
372
+
260
373
  ### Fixed
374
+
261
375
  - Fixed rules' reorder to avoid order collisions by updating `auth0-source-control-extension-tools`
262
376
 
263
377
  ## [4.2.0] - 2020-03-28
378
+
264
379
  ### Fixed
380
+
265
381
  - When importing SAML database connections, support client name in the `options.idpinitiated.client_id` property.
266
382
  - When exporting SAML database connections, convert client ID to client name.
267
383
 
268
384
  ## [4.1.0] - 2020-03-28
385
+
269
386
  ### Fixed
387
+
270
388
  - When exporting a mailgun email provider, a placholder api key will be included in the export..
271
389
 
272
390
  ## [4.0.3] - 2020-03-18
391
+
273
392
  ### Fixed
393
+
274
394
  - Programmatic usage will not complain about args. [#215]
275
395
 
276
396
  ## [4.0.2] - 2020-02-28
397
+
277
398
  ### Added
399
+
278
400
  - Included Deploy CLI version number in User-Agent header.
279
401
  - If no command line arguments are passed, the usage statement will be printed.
280
402
 
281
403
  ## [4.0.1] - 2020-02-05
404
+
282
405
  ### Changed
406
+
283
407
  - Update `auth0-source-control-extension-tools`
284
408
 
285
409
  ### Fixed
410
+
286
411
  - Fixed import and export errors when roles and hooks are not available
287
412
 
288
413
  ## [4.0.0] - 2020-01-29
414
+
289
415
  ### Added
416
+
290
417
  - Add support for Hooks and Hook Secrets
291
418
  - Update `auth0`, `auth0-extension-tools`, `auth0-source-control-extension-tools`, and `js-yaml`
292
419
 
293
420
  ## [3.6.7] - 2020-01-08
421
+
294
422
  ### Fixed
423
+
295
424
  - Fixed a crash when no roles are present in a tenant during an export
296
425
 
297
426
  ## [3.6.5] - 2019-12-19
427
+
298
428
  ### Added
429
+
299
430
  - Add readonly flag `remove_stale_idp_attributes`
300
431
 
301
432
  ## [3.6.4] - 2019-12-04
433
+
302
434
  ### Changed
435
+
303
436
  - Update `https-proxy-agent` and `js-yaml`
304
437
 
305
438
  ## [3.6.3] - 2019-11-04
439
+
306
440
  ### Added
441
+
307
442
  - Add `AUTH0_API_MAX_RETRIES` support
308
443
 
309
444
  ## [3.6.2] - 2019-10-18
445
+
310
446
  ### Fixed
447
+
311
448
  - Fix mapping for passwordless email connection template
312
449
 
313
450
  ## [3.6.1] - 2019-09-27
451
+
314
452
  ### Removed
453
+
315
454
  - Removed `--verbose` option
316
455
 
317
456
  ## [3.6.0] - 2019-08-26
457
+
318
458
  ### Changed
459
+
319
460
  - Update `auth0-extension-tools`
320
461
 
321
462
  ### Fixed
463
+
322
464
  - Clear empty descriptions on roles
323
465
 
324
466
  ## [3.5.0] - 2019-08-14
467
+
325
468
  ### Added
469
+
326
470
  - Ability to exclude connections and databases (AUTH0_EXCLUDED_CONNECTIONS & AUTH0_EXCLUDED_DATABASES)
327
471
 
328
472
  ### Fixed
473
+
329
474
  - Excludes for yaml import
330
475
 
331
476
  ## [3.4.0] - 2019-07-15
477
+
332
478
  ### Added
479
+
333
480
  - Load email template for passwordless email connection from external html file [#124]
334
481
  - Load custom_login_page template for client from external html file [#138]
335
482
 
336
483
  ## [3.3.2] - 2019-07-11
484
+
337
485
  ### Changed
486
+
338
487
  - pin minor version of source-control-tools@~3.4.1
339
488
 
340
489
  ## [3.3.1] - 2019-06-13
490
+
341
491
  ### Fixed
492
+
342
493
  - `allowed_clients`, `allowed_logout_urls`, `allowed_origins` and `callbacks` properties of the `client` can no longer be exported as `null`
343
494
 
344
495
  ## [3.3.0] - 2019-04-22
496
+
345
497
  ### Added
498
+
346
499
  - Support for roles and permissions export and import
347
500
 
348
501
  ## [3.2.0] - 2019-04-12
502
+
349
503
  ### Changed
504
+
350
505
  - Secrets (`rules configs` and databases `options.configuration`) can no longer be exported
351
506
 
352
507
  ## [3.1.3] - 2019-04-03
508
+
353
509
  ### Added
510
+
354
511
  - Clearing empty tenant flags on `import`
355
512
 
356
513
  ## [3.1.2] - 2019-03-22
514
+
357
515
  ### Added
516
+
358
517
  - Consistent property sorting for yaml dump [#108] [#61] [#82]
359
518
 
360
519
  ## [3.1.1] - 2019-03-15
520
+
361
521
  ### Fixed
522
+
362
523
  - Exit status code on error [#107]
363
524
 
364
525
  ## [3.1.0] - 2019-03-14
526
+
365
527
  ### Added
528
+
366
529
  - `AUTH0_EXCLUDED_CLIENTS` option has been added to the config. Works similar to `AUTH0_EXCLUDED_RULES` and `AUTH0_EXCLUDED_RESOURCE_SERVERS`. [#102]
367
530
 
368
531
  ## [3.0.2] - 2019-03-12
532
+
369
533
  ### Fixed
534
+
370
535
  - Remove empty `flags` property from tenant settings [#104]
371
536
 
372
537
  ## [3.0.1] - 2019-03-04
538
+
373
539
  ### Fixed
540
+
374
541
  - fix readonly `flags.enable_sso`
375
542
 
376
543
  ## [3.0.0] - 2019-03-04
544
+
377
545
  ### Added
546
+
378
547
  - Options added to the config:
379
548
  - `INCLUDED_PROPS` - enables export of properties that are excluded by default (e.g. `client_secret`)
380
549
  - `EXCLUDED_PROPS` - provides ability to exclude any unwanted properties from exported objects
381
550
 
382
551
  ### Changed
552
+
383
553
  - `--strip` option has been removed from `export` command. Now **IDs will be stripped by default**. `AUTH0_EXPORT_IDENTIFIERS: true` or `--export_ids` can be used to override.
384
554
 
385
555
  ## [2.3.3] - 2019-03-04
556
+
386
557
  ### Fixed
558
+
387
559
  - backport readonly `flags.enable_sso`
388
560
 
389
561
  ## [2.3.2] - 2019-03-02
562
+
390
563
  ### Changed
564
+
391
565
  - set `enable_sso` and `sandbox_version` as readonly properties
392
566
  - alias `export = dump` and `import = deploy` for programmatic usage
393
567
 
394
568
  ## [2.3.1] - 2019-02-27
569
+
395
570
  ### Changed
571
+
396
572
  - convert non-integer `session_lifetime` to minutes [#95]
397
573
  - update `auth0-source-control-extension-tools`
398
574
  - Fix email provider export
399
575
  - Process empty arrays of databases
400
576
 
401
577
  ## [2.3.0] - 2019-02-21
578
+
402
579
  ### Changed
580
+
403
581
  - Empty arrays in the `tenant.yaml` (`clients: []`) will now lead to deleting all relevant records from the tenant. [#89]
404
582
  - Update environment variable explanation in READMEs. [#90]
405
583
  - Sanitize file and folder names. [#92]
406
584
 
407
585
  ## [2.2.5] - 2019-02-04
586
+
408
587
  ### Changed
588
+
409
589
  - Fix for using the wrong proxy reference. [#80]
410
590
 
411
591
  ## [2.2.4] - 2019-01-17
592
+
412
593
  ### Added
594
+
413
595
  - Added 'name' prop to pages examples [#76]
414
596
 
415
597
  ### Changed
598
+
416
599
  - Fix various schema validation issues. auth0-extensions/auth0-source-control-extension-tools PRs [#52] thru [#57]
417
600
 
418
601
  ## 2.2.0 - 2018-11-28
602
+
419
603
  ### Changed
604
+
420
605
  - Update package dependency which contains security vulnerabilities.
421
606
 
422
607
  [#52]: https://github.com/auth0/auth0-deploy-cli/issues/52
@@ -465,8 +650,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
465
650
  [#436]: https://github.com/auth0/auth0-deploy-cli/issues/436
466
651
  [#438]: https://github.com/auth0/auth0-deploy-cli/issues/438
467
652
  [#453]: https://github.com/auth0/auth0-deploy-cli/issues/453
468
-
469
- [Unreleased]: https://github.com/auth0/auth0-deploy-cli/compare/v7.6.0...HEAD
653
+ [#468]: https://github.com/auth0/auth0-deploy-cli/issues/468
654
+ [#471]: https://github.com/auth0/auth0-deploy-cli/issues/471
655
+ [unreleased]: https://github.com/auth0/auth0-deploy-cli/compare/v7.7.0...HEAD
656
+ [7.7.0]: https://github.com/auth0/auth0-deploy-cli/compare/v7.6.0...v7.7.0
470
657
  [7.6.0]: https://github.com/auth0/auth0-deploy-cli/compare/v7.5.2...v7.6.0
471
658
  [7.5.2]: https://github.com/auth0/auth0-deploy-cli/compare/v7.5.1...v7.5.2
472
659
  [7.5.1]: https://github.com/auth0/auth0-deploy-cli/compare/v7.5.0...v7.5.1
package/CONTRIBUTING.md CHANGED
@@ -7,7 +7,7 @@ Ensure that before running the versioning scripts below, the Unreleased changelo
7
7
  ### Production Versioning
8
8
 
9
9
  ```sh
10
- npm version patch --no-git-tag-version
10
+ npm version patch --no-git-tag-version
11
11
  ```
12
12
 
13
13
  ### Beta Versioning
@@ -25,4 +25,4 @@ Publishing the beta should be done manually:
25
25
  ```sh
26
26
  npm run build
27
27
  npm publish --tag beta
28
- ```
28
+ ```
package/README.md CHANGED
@@ -5,6 +5,7 @@ Auth0 supports continuous integration and deployment (CI/CD) of Auth0 Tenants an
5
5
  The `auth0-deploy-cli` tool supports the importing and exporting of Auth0 Tenant configuration data.
6
6
 
7
7
  Supported Auth0 Management API resources
8
+
8
9
  - [x] [Actions](https://auth0.com/docs/api/management/v2/#!/Actions/get_actions)
9
10
  - [ ] [Branding](https://auth0.com/docs/api/management/v2/#!/Branding/get_branding)
10
11
  - [x] [Clients (Applications)](https://auth0.com/docs/api/management/v2#!/Clients/get_clients)
@@ -47,7 +48,9 @@ Supported Auth0 Management API resources
47
48
  Please visit Auth0 Doc for this [Deploy CLI Tool](https://auth0.com/docs/deploy/deploy-cli-tool)
48
49
 
49
50
  # Integrating with popular CI/CD pipelines
51
+
50
52
  Please visit Auth0 Marketplace Guide for:
53
+
51
54
  - [Azure Pipelines](https://marketplace.auth0.com/integrations/azure-pipeline)
52
55
  - [Bitbucket Pipelines](https://marketplace.auth0.com/integrations/bitbucket-pipeline)
53
56
  - [GitLab Pipelines](https://marketplace.auth0.com/integrations/gitlab-pipeline)