auth0-deploy-cli 8.10.0 → 8.11.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,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [8.11.0] - 2025-07-15
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- Add support for multiple custom domains in `customDomains`. [#1113]
|
|
15
|
+
|
|
10
16
|
## [8.10.0] - 2025-07-01
|
|
11
17
|
|
|
12
18
|
### Added
|
|
@@ -1366,12 +1372,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
1366
1372
|
[#1103]: https://github.com/auth0/auth0-deploy-cli/issues/1103
|
|
1367
1373
|
[#1104]: https://github.com/auth0/auth0-deploy-cli/issues/1104
|
|
1368
1374
|
[#1109]: https://github.com/auth0/auth0-deploy-cli/issues/1109
|
|
1375
|
+
[#1113]: https://github.com/auth0/auth0-deploy-cli/issues/1113
|
|
1369
1376
|
[#1115]: https://github.com/auth0/auth0-deploy-cli/issues/1115
|
|
1370
1377
|
[#1116]: https://github.com/auth0/auth0-deploy-cli/issues/1116
|
|
1371
1378
|
[#1121]: https://github.com/auth0/auth0-deploy-cli/issues/1121
|
|
1372
1379
|
[#1123]: https://github.com/auth0/auth0-deploy-cli/issues/1123
|
|
1373
1380
|
[#1124]: https://github.com/auth0/auth0-deploy-cli/issues/1124
|
|
1374
|
-
[Unreleased]: https://github.com/auth0/auth0-deploy-cli/compare/v8.
|
|
1381
|
+
[Unreleased]: https://github.com/auth0/auth0-deploy-cli/compare/v8.11.0...HEAD
|
|
1382
|
+
[8.11.0]: https://github.com/auth0/auth0-deploy-cli/compare/v8.10.0...v8.11.0
|
|
1375
1383
|
[8.10.0]: https://github.com/auth0/auth0-deploy-cli/compare/v8.9.0...v8.10.0
|
|
1376
1384
|
[8.9.0]: https://github.com/auth0/auth0-deploy-cli/compare/v8.8.3...v8.9.0
|
|
1377
1385
|
[8.8.3]: https://github.com/auth0/auth0-deploy-cli/compare/v8.8.2...v8.8.3
|
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ The Auth0 Deploy CLI is a tool that helps you manage your Auth0 tenant configura
|
|
|
9
9
|
|
|
10
10
|
**Supported resource types:** actions, branding, client grants, clients (applications), connections, custom domains, email templates, emails, grants, guardian, hook secrets, log streams, organizations, pages, prompts, resource servers (APIs), roles, tenant settings, themes, forms, flows, self-service profiles, network ACLs.
|
|
11
11
|
|
|
12
|
-
🎢 [Highlights](#highlights) • 📚 [Documentation](#documentation) • 🚀 [Getting Started](#getting-started) •
|
|
12
|
+
🎢 [Highlights](#highlights) • 📚 [Documentation](#documentation) • 🚀 [Getting Started](#getting-started) • 📝 [Feedback](#feedback) • 💬 [Discussions](https://github.com/auth0/auth0-deploy-cli/discussions)
|
|
13
13
|
|
|
14
14
|
---
|
|
15
15
|
|
|
@@ -30,6 +30,22 @@ export declare const schema: {
|
|
|
30
30
|
verification: {
|
|
31
31
|
type: string;
|
|
32
32
|
};
|
|
33
|
+
tls_policy: {
|
|
34
|
+
type: string;
|
|
35
|
+
description: string;
|
|
36
|
+
defaultValue: string;
|
|
37
|
+
};
|
|
38
|
+
domain_metadata: {
|
|
39
|
+
type: string;
|
|
40
|
+
description: string;
|
|
41
|
+
defaultValue: undefined;
|
|
42
|
+
maxProperties: number;
|
|
43
|
+
};
|
|
44
|
+
verification_method: {
|
|
45
|
+
type: string;
|
|
46
|
+
description: string;
|
|
47
|
+
defaultValue: string;
|
|
48
|
+
};
|
|
33
49
|
};
|
|
34
50
|
required: string[];
|
|
35
51
|
};
|
|
@@ -47,9 +47,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
47
47
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
48
48
|
});
|
|
49
49
|
};
|
|
50
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
51
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
52
|
+
};
|
|
50
53
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51
54
|
exports.schema = void 0;
|
|
52
55
|
const default_1 = __importStar(require("./default"));
|
|
56
|
+
const logger_1 = __importDefault(require("../../../logger"));
|
|
53
57
|
exports.schema = {
|
|
54
58
|
type: 'array',
|
|
55
59
|
items: {
|
|
@@ -66,14 +70,39 @@ exports.schema = {
|
|
|
66
70
|
status: { type: 'string', enum: ['pending_verification', 'ready', 'disabled', 'pending'] },
|
|
67
71
|
type: { type: 'string', enum: ['auth0_managed_certs', 'self_managed_certs'] },
|
|
68
72
|
verification: { type: 'object' },
|
|
73
|
+
tls_policy: {
|
|
74
|
+
type: 'string',
|
|
75
|
+
description: 'Custom domain TLS policy. Must be `recommended`, includes TLS 1.2.',
|
|
76
|
+
defaultValue: 'recommended',
|
|
77
|
+
},
|
|
78
|
+
domain_metadata: {
|
|
79
|
+
type: 'object',
|
|
80
|
+
description: 'Domain metadata associated with the custom domain.',
|
|
81
|
+
defaultValue: undefined,
|
|
82
|
+
maxProperties: 10,
|
|
83
|
+
},
|
|
84
|
+
verification_method: {
|
|
85
|
+
type: 'string',
|
|
86
|
+
description: 'Custom domain verification method. Must be `txt`.',
|
|
87
|
+
defaultValue: 'txt',
|
|
88
|
+
},
|
|
69
89
|
},
|
|
70
90
|
required: ['domain', 'type'],
|
|
71
91
|
},
|
|
72
92
|
};
|
|
73
93
|
class CustomDomainsHadnler extends default_1.default {
|
|
74
94
|
constructor(config) {
|
|
75
|
-
super(Object.assign(Object.assign({}, config), { type: 'customDomains', id: 'custom_domain_id', identifiers: ['domain'], stripCreateFields: ['status', 'primary', 'verification'],
|
|
95
|
+
super(Object.assign(Object.assign({}, config), { type: 'customDomains', id: 'custom_domain_id', identifiers: ['custom_domain_id', 'domain'], stripCreateFields: ['status', 'primary', 'verification', 'certificate'], stripUpdateFields: [
|
|
96
|
+
'status',
|
|
97
|
+
'primary',
|
|
98
|
+
'verification',
|
|
99
|
+
'type',
|
|
100
|
+
'domain',
|
|
101
|
+
'verification_method',
|
|
102
|
+
'certificate',
|
|
103
|
+
], functions: {
|
|
76
104
|
delete: (args) => this.client.customDomains.delete({ id: args.custom_domain_id }),
|
|
105
|
+
update: (args, data) => this.client.customDomains.update({ id: args.custom_domain_id }, data),
|
|
77
106
|
} }));
|
|
78
107
|
}
|
|
79
108
|
objString(item) {
|
|
@@ -107,20 +136,14 @@ class CustomDomainsHadnler extends default_1.default {
|
|
|
107
136
|
const { customDomains } = assets;
|
|
108
137
|
if (!customDomains)
|
|
109
138
|
return;
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
const deleteWithSDKCompatibleID = Object.assign(Object.assign({}, deleteToMake), { id: deleteToMake.custom_domain_id });
|
|
119
|
-
delete deleteWithSDKCompatibleID['custom_domain_id'];
|
|
120
|
-
return deleteWithSDKCompatibleID;
|
|
121
|
-
}), update: [] });
|
|
122
|
-
return changesWithoutUpdates;
|
|
123
|
-
});
|
|
139
|
+
// Deprecation warnings for custom domains
|
|
140
|
+
if (customDomains.some((customDomain) => customDomain.primary != null)) {
|
|
141
|
+
logger_1.default.warn('The "primary" field is deprecated and may be removed in future versions for "customDomains"');
|
|
142
|
+
}
|
|
143
|
+
if (customDomains.some((customDomain) => 'verification_method' in customDomain)) {
|
|
144
|
+
logger_1.default.warn('The "verification_method" field is deprecated and may be removed in future versions for "customDomains"');
|
|
145
|
+
}
|
|
146
|
+
const changes = yield this.calcChanges(assets);
|
|
124
147
|
yield _super.processChanges.call(this, assets, changes);
|
|
125
148
|
});
|
|
126
149
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customDomains.js","sourceRoot":"","sources":["../../../../src/tools/auth0/handlers/customDomains.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"customDomains.js","sourceRoot":"","sources":["../../../../src/tools/auth0/handlers/customDomains.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,qDAAqD;AAErD,6DAAkC;AAErB,QAAA,MAAM,GAAG;IACpB,IAAI,EAAE,OAAO;IACb,KAAK,EAAE;QACL,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,gBAAgB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YACpC,uBAAuB,EAAE;gBACvB,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE,CAAC,gBAAgB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,IAAI,CAAC;aACtE;YACD,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC1B,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;YAC5B,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,sBAAsB,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,CAAC,EAAE;YAC1F,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,qBAAqB,EAAE,oBAAoB,CAAC,EAAE;YAC7E,YAAY,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAChC,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,oEAAoE;gBACjF,YAAY,EAAE,aAAa;aAC5B;YACD,eAAe,EAAE;gBACf,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,oDAAoD;gBACjE,YAAY,EAAE,SAAS;gBACvB,aAAa,EAAE,EAAE;aAClB;YACD,mBAAmB,EAAE;gBACnB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,mDAAmD;gBAChE,YAAY,EAAE,KAAK;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