auth0-deploy-cli 8.7.0 → 8.8.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 +36 -1
- package/README.md +1 -1
- package/lib/context/directory/handlers/index.js +2 -0
- package/lib/context/directory/handlers/index.js.map +1 -1
- package/lib/context/directory/handlers/networkACLs.d.ts +6 -0
- package/lib/context/directory/handlers/networkACLs.js +67 -0
- package/lib/context/directory/handlers/networkACLs.js.map +1 -0
- package/lib/context/yaml/handlers/index.js +2 -0
- package/lib/context/yaml/handlers/index.js.map +1 -1
- package/lib/context/yaml/handlers/networkACLs.d.ts +6 -0
- package/lib/context/yaml/handlers/networkACLs.js +54 -0
- package/lib/context/yaml/handlers/networkACLs.js.map +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/tools/auth0/handlers/branding.js +2 -1
- package/lib/tools/auth0/handlers/branding.js.map +1 -1
- package/lib/tools/auth0/handlers/customDomains.js.map +1 -1
- package/lib/tools/auth0/handlers/index.js +2 -0
- package/lib/tools/auth0/handlers/index.js.map +1 -1
- package/lib/tools/auth0/handlers/networkACLs.d.ts +257 -0
- package/lib/tools/auth0/handlers/networkACLs.js +350 -0
- package/lib/tools/auth0/handlers/networkACLs.js.map +1 -0
- package/lib/tools/auth0/handlers/prompts.d.ts +6 -6
- package/lib/tools/auth0/handlers/prompts.js +8 -0
- package/lib/tools/auth0/handlers/prompts.js.map +1 -1
- package/lib/tools/constants.d.ts +1 -0
- package/lib/tools/constants.js +12 -0
- package/lib/tools/constants.js.map +1 -1
- package/lib/tools/index.d.ts +1 -0
- package/lib/types.d.ts +6 -4
- package/lib/types.js.map +1 -1
- package/lib/utils.d.ts +2 -1
- package/package.json +16 -16
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,32 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [8.8.0] - 2025-04-10
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- Add support for tenant ACL EA support [#1063]
|
|
15
|
+
- Add support for new prompts in custom-text [#1064]
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
|
|
19
|
+
- Fix: Remove unsupported ACUL screens for rendering `prompt` screen's settings [#1061]
|
|
20
|
+
- Fix: Update node version requirement to 20(v20.18.1) [#1062]
|
|
21
|
+
|
|
22
|
+
## [8.7.1] - 2025-03-27
|
|
23
|
+
|
|
24
|
+
### Added
|
|
25
|
+
|
|
26
|
+
- Add support new screens for rendering `prompt` screen's settings [#1053]
|
|
27
|
+
|
|
28
|
+
### Fixed
|
|
29
|
+
|
|
30
|
+
- Fix get all `customDomains` types [#1054]
|
|
31
|
+
|
|
32
|
+
### Security
|
|
33
|
+
|
|
34
|
+
- Security fixes from dependencies [#1054]
|
|
35
|
+
|
|
10
36
|
## [8.7.0] - 2025-03-13
|
|
11
37
|
|
|
12
38
|
### Added
|
|
@@ -1259,7 +1285,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
1259
1285
|
[#1041]: https://github.com/auth0/auth0-deploy-cli/issues/1041
|
|
1260
1286
|
[#1046]: https://github.com/auth0/auth0-deploy-cli/issues/1046
|
|
1261
1287
|
[#1047]: https://github.com/auth0/auth0-deploy-cli/issues/1047
|
|
1262
|
-
[
|
|
1288
|
+
[#1053]: https://github.com/auth0/auth0-deploy-cli/issues/1053
|
|
1289
|
+
[#1054]: https://github.com/auth0/auth0-deploy-cli/issues/1054
|
|
1290
|
+
[#1061]: https://github.com/auth0/auth0-deploy-cli/issues/1061
|
|
1291
|
+
[#1062]: https://github.com/auth0/auth0-deploy-cli/issues/1062
|
|
1292
|
+
[#1063]: https://github.com/auth0/auth0-deploy-cli/issues/1063
|
|
1293
|
+
[#1064]: https://github.com/auth0/auth0-deploy-cli/issues/1064
|
|
1294
|
+
|
|
1295
|
+
[Unreleased]: https://github.com/auth0/auth0-deploy-cli/compare/v8.8.0...HEAD
|
|
1296
|
+
[8.8.0]: https://github.com/auth0/auth0-deploy-cli/compare/v8.7.1...v8.8.0
|
|
1297
|
+
[8.7.1]: https://github.com/auth0/auth0-deploy-cli/compare/v8.7.0...v8.7.1
|
|
1263
1298
|
[8.7.0]: https://github.com/auth0/auth0-deploy-cli/compare/v8.6.2...v8.7.0
|
|
1264
1299
|
[8.6.2]: https://github.com/auth0/auth0-deploy-cli/compare/v8.6.1...v8.6.2
|
|
1265
1300
|
[8.6.1]: https://github.com/auth0/auth0-deploy-cli/compare/v8.6.0...v8.6.1
|
package/README.md
CHANGED
|
@@ -70,7 +70,7 @@ This guide will help you to a working implementation of the Deploy CLI tool used
|
|
|
70
70
|
|
|
71
71
|
### Prerequisites
|
|
72
72
|
|
|
73
|
-
- [Node](https://nodejs.dev/) version 20(v20.18.
|
|
73
|
+
- [Node](https://nodejs.dev/) version 20(v20.18.1) or greater
|
|
74
74
|
- [Auth0 Tenant](https://auth0.com/)
|
|
75
75
|
|
|
76
76
|
### Install the Deploy CLI
|
|
@@ -35,6 +35,7 @@ const rulesConfigs_1 = __importDefault(require("./rulesConfigs"));
|
|
|
35
35
|
const forms_1 = __importDefault(require("./forms"));
|
|
36
36
|
const flows_1 = __importDefault(require("./flows"));
|
|
37
37
|
const flowVaultConnections_1 = __importDefault(require("./flowVaultConnections"));
|
|
38
|
+
const networkACLs_1 = __importDefault(require("./networkACLs"));
|
|
38
39
|
const selfServiceProfiles_1 = __importDefault(require("./selfServiceProfiles"));
|
|
39
40
|
const directoryHandlers = {
|
|
40
41
|
rules: rules_1.default,
|
|
@@ -70,6 +71,7 @@ const directoryHandlers = {
|
|
|
70
71
|
flows: flows_1.default,
|
|
71
72
|
flowVaultConnections: flowVaultConnections_1.default,
|
|
72
73
|
selfServiceProfiles: selfServiceProfiles_1.default,
|
|
74
|
+
networkACLs: networkACLs_1.default,
|
|
73
75
|
};
|
|
74
76
|
exports.default = directoryHandlers;
|
|
75
77
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/context/directory/handlers/index.ts"],"names":[],"mappings":";;;;;AAAA,oDAA4B;AAC5B,wDAAgC;AAChC,sDAA8B;AAC9B,oEAA4C;AAC5C,gEAAwC;AACxC,4DAAoC;AACpC,sEAA8C;AAC9C,kEAA0C;AAC1C,wEAAgD;AAChD,wEAAgD;AAChD,wFAAgE;AAChE,wFAAgE;AAChE,wGAAgF;AAChF,gHAAwF;AACxF,0EAAkD;AAClD,oDAA4B;AAC5B,wDAAgC;AAChC,oEAA4C;AAC5C,0DAAkC;AAClC,0EAAkD;AAClD,0DAAkC;AAClC,oEAA6C;AAC7C,8DAAsC;AACtC,wDAAgC;AAChC,oEAA4C;AAC5C,sDAA8B;AAC9B,oDAA4B;AAC5B,oDAA4B;AAC5B,kEAA0C;AAC1C,oDAA4B;AAC5B,oDAA4B;AAC5B,kFAA0D;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/context/directory/handlers/index.ts"],"names":[],"mappings":";;;;;AAAA,oDAA4B;AAC5B,wDAAgC;AAChC,sDAA8B;AAC9B,oEAA4C;AAC5C,gEAAwC;AACxC,4DAAoC;AACpC,sEAA8C;AAC9C,kEAA0C;AAC1C,wEAAgD;AAChD,wEAAgD;AAChD,wFAAgE;AAChE,wFAAgE;AAChE,wGAAgF;AAChF,gHAAwF;AACxF,0EAAkD;AAClD,oDAA4B;AAC5B,wDAAgC;AAChC,oEAA4C;AAC5C,0DAAkC;AAClC,0EAAkD;AAClD,0DAAkC;AAClC,oEAA6C;AAC7C,8DAAsC;AACtC,wDAAgC;AAChC,oEAA4C;AAC5C,sDAA8B;AAC9B,oDAA4B;AAC5B,oDAA4B;AAC5B,kEAA0C;AAC1C,oDAA4B;AAC5B,oDAA4B;AAC5B,kFAA0D;AAC1D,gEAAwC;AAIxC,gFAAwD;AAOxD,MAAM,iBAAiB,GAEnB;IACF,KAAK,EAAL,eAAK;IACL,YAAY,EAAZ,sBAAY;IACZ,KAAK,EAAL,eAAK;IACL,KAAK,EAAL,eAAK;IACL,SAAS,EAAT,mBAAS;IACT,YAAY,EAAZ,sBAAY;IACZ,eAAe,EAAf,yBAAe;IACf,OAAO,EAAP,iBAAO;IACP,WAAW,EAAX,qBAAW;IACX,MAAM,EAAN,gBAAM;IACN,aAAa,EAAb,uBAAa;IACb,cAAc,EAAd,wBAAc;IACd,eAAe,EAAf,yBAAe;IACf,uBAAuB,EAAvB,iCAAuB;IACvB,uBAAuB,EAAvB,iCAAuB;IACvB,+BAA+B,EAA/B,yCAA+B;IAC/B,mCAAmC,EAAnC,6CAAmC;IACnC,gBAAgB,EAAhB,0BAAgB;IAChB,KAAK,EAAL,eAAK;IACL,OAAO,EAAP,iBAAO;IACP,aAAa,EAAb,uBAAa;IACb,QAAQ,EAAR,kBAAQ;IACR,gBAAgB,EAAhB,0BAAgB;IAChB,QAAQ,EAAR,kBAAQ;IACR,cAAc,EAAd,uBAAc;IACd,UAAU,EAAV,oBAAU;IACV,OAAO,EAAP,iBAAO;IACP,aAAa,EAAb,uBAAa;IACb,MAAM,EAAN,gBAAM;IACN,KAAK,EAAL,eAAK;IACL,KAAK,EAAL,eAAK;IACL,oBAAoB,EAApB,8BAAoB;IACpB,mBAAmB,EAAnB,6BAAmB;IACnB,WAAW,EAAX,qBAAW;CACZ,CAAC;AAEF,kBAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DirectoryHandler } from '.';
|
|
2
|
+
import { ParsedAsset } from '../../../types';
|
|
3
|
+
import { NetworkACL } from '../../../tools/auth0/handlers/networkACLs';
|
|
4
|
+
type ParsedNetworkACLs = ParsedAsset<'networkACLs', NetworkACL[]>;
|
|
5
|
+
declare const networkACLsHandler: DirectoryHandler<ParsedNetworkACLs>;
|
|
6
|
+
export default networkACLsHandler;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
const path_1 = __importDefault(require("path"));
|
|
16
|
+
const fs_extra_1 = __importDefault(require("fs-extra"));
|
|
17
|
+
const tools_1 = require("../../../tools");
|
|
18
|
+
const utils_1 = require("../../../utils");
|
|
19
|
+
const logger_1 = __importDefault(require("../../../logger"));
|
|
20
|
+
function parse(context) {
|
|
21
|
+
const networkACLsDirectory = path_1.default.join(context.filePath, tools_1.constants.NETWORK_ACLS_DIRECTORY);
|
|
22
|
+
if (!(0, utils_1.existsMustBeDir)(networkACLsDirectory))
|
|
23
|
+
return { networkACLs: null }; // Skip
|
|
24
|
+
const foundFiles = (0, utils_1.getFiles)(networkACLsDirectory, ['.json']);
|
|
25
|
+
const networkACLs = foundFiles
|
|
26
|
+
.map((f) => (0, utils_1.loadJSON)(f, {
|
|
27
|
+
mappings: context.mappings,
|
|
28
|
+
disableKeywordReplacement: context.disableKeywordReplacement,
|
|
29
|
+
}))
|
|
30
|
+
.filter((p) => Object.keys(p).length > 0); // Filter out empty configs
|
|
31
|
+
return {
|
|
32
|
+
networkACLs,
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
function dump(context) {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
const { networkACLs } = context.assets;
|
|
38
|
+
if (!networkACLs)
|
|
39
|
+
return; // Skip, nothing to dump
|
|
40
|
+
if (Array.isArray(networkACLs) && networkACLs.length === 0) {
|
|
41
|
+
logger_1.default.info('No network ACLs available, skipping dump');
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
// Create Network ACLs folder
|
|
45
|
+
const networkACLsDirectory = path_1.default.join(context.filePath, tools_1.constants.NETWORK_ACLS_DIRECTORY);
|
|
46
|
+
fs_extra_1.default.ensureDirSync(networkACLsDirectory);
|
|
47
|
+
const removeKeysFromOutput = ['created_at', 'updated_at'];
|
|
48
|
+
networkACLs.forEach((networkACL) => {
|
|
49
|
+
removeKeysFromOutput.forEach((key) => {
|
|
50
|
+
if (key in networkACL) {
|
|
51
|
+
delete networkACL[key];
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
const fileName = networkACL.description
|
|
55
|
+
? `${(0, utils_1.sanitize)(networkACL.description)}-p-${networkACL.priority}`
|
|
56
|
+
: `network-acl-p-${networkACL.priority}`;
|
|
57
|
+
const filePath = path_1.default.join(networkACLsDirectory, `${fileName}.json`);
|
|
58
|
+
(0, utils_1.dumpJSON)(filePath, networkACL);
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
const networkACLsHandler = {
|
|
63
|
+
parse,
|
|
64
|
+
dump,
|
|
65
|
+
};
|
|
66
|
+
exports.default = networkACLsHandler;
|
|
67
|
+
//# sourceMappingURL=networkACLs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"networkACLs.js","sourceRoot":"","sources":["../../../../src/context/directory/handlers/networkACLs.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,gDAAwB;AACxB,wDAA0B;AAC1B,0CAA2C;AAC3C,0CAAyF;A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AAC,CAAC;QAEvC,MAAM,oBAAoB,GAAG,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC;QAE1D,WAAW,CAAC,OAAO,CAAC,CAAC,UAAU,EAAE,EAAE;YACjC,oBAAoB,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;gBACnC,IAAI,GAAG,IAAI,UAAU,EAAE,CAAC;oBACtB,OAAO,UAAU,CAAC,GAAG,CAAC,CAAC;gBACzB,CAAC;YACH,CAAC,CAAC,CAAC;YACH,MAAM,QAAQ,GAAG,UAAU,CAAC,WAAW;gBACrC,CAAC,CAAC,GAAG,IAAA,gBAAQ,EAAC,UAAU,CAAC,WAAW,CAAC,MAAM,UAAU,CAAC,QAAQ,EAAE;gBAChE,CAAC,CAAC,iBAAiB,UAAU,CAAC,QAAQ,EAAE,CAAC;YAC3C,MAAM,QAAQ,GAAG,cAAI,CAAC,IAAI,CAAC,oBAAoB,EAAE,GAAG,QAAQ,OAAO,CAAC,CAAC;YACrE,IAAA,gBAAQ,EAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;QACjC,CAAC,CAAC,CAAC;IACL,CAAC;CAAA;AAED,MAAM,kBAAkB,GAAwC;IAC9D,KAAK;IACL,IAAI;CACL,CAAC;AAEF,kBAAe,kBAAkB,CAAC"}
|
|
@@ -35,6 +35,7 @@ const hooks_1 = __importDefault(require("./hooks"));
|
|
|
35
35
|
const forms_1 = __importDefault(require("./forms"));
|
|
36
36
|
const flows_1 = __importDefault(require("./flows"));
|
|
37
37
|
const flowVaultConnections_1 = __importDefault(require("./flowVaultConnections"));
|
|
38
|
+
const networkACLs_1 = __importDefault(require("./networkACLs"));
|
|
38
39
|
const selfServiceProfiles_1 = __importDefault(require("./selfServiceProfiles"));
|
|
39
40
|
const yamlHandlers = {
|
|
40
41
|
rules: rules_1.default,
|
|
@@ -70,6 +71,7 @@ const yamlHandlers = {
|
|
|
70
71
|
flows: flows_1.default,
|
|
71
72
|
flowVaultConnections: flowVaultConnections_1.default,
|
|
72
73
|
selfServiceProfiles: selfServiceProfiles_1.default,
|
|
74
|
+
networkACLs: networkACLs_1.default,
|
|
73
75
|
};
|
|
74
76
|
exports.default = yamlHandlers;
|
|
75
77
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/context/yaml/handlers/index.ts"],"names":[],"mappings":";;;;;AAAA,oDAA4B;AAC5B,wDAAgC;AAChC,sDAA8B;AAC9B,oEAA4C;AAC5C,gEAAwC;AACxC,4DAAoC;AACpC,sEAA8C;AAC9C,kEAA0C;AAC1C,wEAAgD;AAChD,wEAAgD;AAChD,wFAAgE;AAChE,wFAAgE;AAChE,wGAAgF;AAChF,gHAAwF;AACxF,0EAAkD;AAClD,oDAA4B;AAC5B,oEAA4C;AAC5C,wDAAgC;AAChC,0DAAkC;AAClC,0EAAkD;AAClD,0DAAkC;AAClC,oEAA6C;AAC7C,8DAAsC;AACtC,wDAAgC;AAChC,oEAA4C;AAC5C,sDAA8B;AAC9B,oDAA4B;AAC5B,kEAA0C;AAC1C,oDAA4B;AAC5B,oDAA4B;AAC5B,oDAA4B;AAC5B,kFAA0D;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/context/yaml/handlers/index.ts"],"names":[],"mappings":";;;;;AAAA,oDAA4B;AAC5B,wDAAgC;AAChC,sDAA8B;AAC9B,oEAA4C;AAC5C,gEAAwC;AACxC,4DAAoC;AACpC,sEAA8C;AAC9C,kEAA0C;AAC1C,wEAAgD;AAChD,wEAAgD;AAChD,wFAAgE;AAChE,wFAAgE;AAChE,wGAAgF;AAChF,gHAAwF;AACxF,0EAAkD;AAClD,oDAA4B;AAC5B,oEAA4C;AAC5C,wDAAgC;AAChC,0DAAkC;AAClC,0EAAkD;AAClD,0DAAkC;AAClC,oEAA6C;AAC7C,8DAAsC;AACtC,wDAAgC;AAChC,oEAA4C;AAC5C,sDAA8B;AAC9B,oDAA4B;AAC5B,kEAA0C;AAC1C,oDAA4B;AAC5B,oDAA4B;AAC5B,oDAA4B;AAC5B,kFAA0D;AAC1D,gEAAwC;AAIxC,gFAAwD;AAOxD,MAAM,YAAY,GAAqE;IACrF,KAAK,EAAL,eAAK;IACL,YAAY,EAAZ,sBAAY;IACZ,KAAK,EAAL,eAAK;IACL,KAAK,EAAL,eAAK;IACL,SAAS,EAAT,mBAAS;IACT,YAAY,EAAZ,sBAAY;IACZ,eAAe,EAAf,yBAAe;IACf,OAAO,EAAP,iBAAO;IACP,WAAW,EAAX,qBAAW;IACX,MAAM,EAAN,gBAAM;IACN,aAAa,EAAb,uBAAa;IACb,cAAc,EAAd,wBAAc;IACd,eAAe,EAAf,yBAAe;IACf,uBAAuB,EAAvB,iCAAuB;IACvB,uBAAuB,EAAvB,iCAAuB;IACvB,KAAK,EAAL,eAAK;IACL,+BAA+B,EAA/B,yCAA+B;IAC/B,mCAAmC,EAAnC,6CAAmC;IACnC,gBAAgB,EAAhB,0BAAgB;IAChB,OAAO,EAAP,iBAAO;IACP,aAAa,EAAb,uBAAa;IACb,QAAQ,EAAR,kBAAQ;IACR,gBAAgB,EAAhB,0BAAgB;IAChB,QAAQ,EAAR,kBAAQ;IACR,cAAc,EAAd,uBAAc;IACd,UAAU,EAAV,oBAAU;IACV,OAAO,EAAP,iBAAO;IACP,aAAa,EAAb,uBAAa;IACb,MAAM,EAAN,gBAAM;IACN,KAAK,EAAL,eAAK;IACL,KAAK,EAAL,eAAK;IACL,oBAAoB,EAApB,8BAAoB;IACpB,mBAAmB,EAAnB,6BAAmB;IACnB,WAAW,EAAX,qBAAW;CACZ,CAAC;AAEF,kBAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { YAMLHandler } from '.';
|
|
2
|
+
import { ParsedAsset } from '../../../types';
|
|
3
|
+
import { NetworkACL } from '../../../tools/auth0/handlers/networkACLs';
|
|
4
|
+
type ParsedNetworkACLs = ParsedAsset<'networkACLs', NetworkACL[]>;
|
|
5
|
+
declare const networkACLsHandler: YAMLHandler<ParsedNetworkACLs>;
|
|
6
|
+
export default networkACLsHandler;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
const logger_1 = __importDefault(require("../../../logger"));
|
|
16
|
+
function parse(context) {
|
|
17
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
18
|
+
const { networkACLs } = context.assets;
|
|
19
|
+
if (!networkACLs)
|
|
20
|
+
return { networkACLs: null };
|
|
21
|
+
return {
|
|
22
|
+
networkACLs,
|
|
23
|
+
};
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
function dump(context) {
|
|
27
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
28
|
+
let { networkACLs } = context.assets;
|
|
29
|
+
if (!networkACLs)
|
|
30
|
+
return { networkACLs: null };
|
|
31
|
+
if (Array.isArray(networkACLs) && networkACLs.length === 0) {
|
|
32
|
+
logger_1.default.info('No network ACLs available, skipping dump');
|
|
33
|
+
return { networkACLs: null };
|
|
34
|
+
}
|
|
35
|
+
const removeKeysFromOutput = ['created_at', 'updated_at'];
|
|
36
|
+
networkACLs = networkACLs.map((networkACL) => {
|
|
37
|
+
removeKeysFromOutput.forEach((key) => {
|
|
38
|
+
if (key in networkACL) {
|
|
39
|
+
delete networkACL[key];
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
return networkACL;
|
|
43
|
+
});
|
|
44
|
+
return {
|
|
45
|
+
networkACLs,
|
|
46
|
+
};
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
const networkACLsHandler = {
|
|
50
|
+
parse,
|
|
51
|
+
dump,
|
|
52
|
+
};
|
|
53
|
+
exports.default = networkACLsHandler;
|
|
54
|
+
//# sourceMappingURL=networkACLs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"networkACLs.js","sourceRoot":"","sources":["../../../../src/context/yaml/handlers/networkACLs.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAIA,6DAAkC;AAIlC,SAAe,KAAK,CAAC,OAAoB;;QACvC,MAAM,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC;QAEvC,IAAI,CAAC,WAAW;YAAE,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;QAE/C,OAAO;YACL,WAAW;SACZ,CAAC;IACJ,CAAC;CAAA;AAED,SAAe,IAAI,CAAC,OAAoB;;QACtC,IAAI,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC;QAErC,IAAI,CAAC,WAAW;YAAE,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;QAE/C,IAAI,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC3D,gBAAG,CAAC,IAAI,CAAC,0CAA0C,CAAC,CAAC;YACrD,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;QAC/B,CAAC;QAED,MAAM,oBAAoB,GAAG,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC;QAE1D,WAAW,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE;YAC3C,oBAAoB,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;gBACnC,IAAI,GAAG,IAAI,UAAU,EAAE,CAAC;oBACtB,OAAO,UAAU,CAAC,GAAG,CAAC,CAAC;gBACzB,CAAC;YACH,CAAC,CAAC,CAAC;YAEH,OAAO,UAAU,CAAC;QACpB,CAAC,CAAC,CAAC;QAEH,OAAO;YACL,WAAW;SACZ,CAAC;IACJ,CAAC;CAAA;AAED,MAAM,kBAAkB,GAAmC;IACzD,KAAK;IACL,IAAI;CACL,CAAC;AAEF,kBAAe,kBAAkB,CAAC"}
|
package/lib/index.d.ts
CHANGED
|
@@ -96,7 +96,8 @@ class BrandingHandler extends default_1.default {
|
|
|
96
96
|
}
|
|
97
97
|
// in case client version does not custom domains
|
|
98
98
|
if (this.client.customDomains && typeof this.client.customDomains.getAll === 'function') {
|
|
99
|
-
|
|
99
|
+
let { data: customDomains } = yield this.client.customDomains.getAll();
|
|
100
|
+
customDomains = customDomains;
|
|
100
101
|
// templates are only supported if there's custom domains.
|
|
101
102
|
if (customDomains && customDomains.length) {
|
|
102
103
|
const { data: payload } = yield this.client.branding.getUniversalLoginTemplate();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"branding.js","sourceRoot":"","sources":["../../../../src/tools/auth0/handlers/branding.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,qDAAkD;AAClD,gEAAwC;AACxC,6DAAkC;AAGrB,QAAA,MAAM,GAAG;IACpB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,SAAS,EAAE;YACT,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,QAAQ,EAAE,EAAE,IAAI,EA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I,oBAAoB,CAAC,uBAAuB,KAAK,IAAI,EAAE,CAAC;4BAC1D,OAAO,eAAe,CAAC,uBAAuB,CAAC;wBACjD,CAAC;wBAED,OAAO,eAAe,CAAC;oBACzB,CAAC,CAAC,EACF,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,YAAY,EAAE,EAAE;wBACvC,MAAM,yBAAyB,mCAC1B,YAAY,KACf,EAAE,EAAE,YAAY,CAAC,gBAAgB,GAClC,CAAC;wBACF,OAAO,yBAAyB,CAAC,kBAAkB,CAAC,CAAC;wBACrD,OAAO,yBAAyB,CAAC;oBACnC,CAAC,CAAC,EACF,MAAM,EAAE,EAAE,GACX,CAAC;gBACF,OAAO,qBAAqB,CAAC;YAC/B,CAAC,CAAC,CAAC;YAEH,MAAM,OAAM,cAAc,YAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAC9C,CAAC;KAAA;CACF;AA1ED,uCA0EC;AA9BO;IADL,IAAA,eAAK,EAAC,IAAI,CAAC;0DA8BX"}
|
|
@@ -66,6 +66,7 @@ const forms = __importStar(require("./forms"));
|
|
|
66
66
|
const flows = __importStar(require("./flows"));
|
|
67
67
|
const flowVaultConnections = __importStar(require("./flowVaultConnections"));
|
|
68
68
|
const selfServiceProfiles = __importStar(require("./selfServiceProfiles"));
|
|
69
|
+
const networkACLs = __importStar(require("./networkACLs"));
|
|
69
70
|
const auth0ApiHandlers = {
|
|
70
71
|
rules,
|
|
71
72
|
rulesConfigs,
|
|
@@ -101,6 +102,7 @@ const auth0ApiHandlers = {
|
|
|
101
102
|
flows,
|
|
102
103
|
flowVaultConnections,
|
|
103
104
|
selfServiceProfiles,
|
|
105
|
+
networkACLs,
|
|
104
106
|
};
|
|
105
107
|
exports.default = auth0ApiHandlers; // TODO: apply stronger types to schema properties
|
|
106
108
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/tools/auth0/handlers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAiC;AACjC,6DAA+C;AAC/C,+CAAiC;AACjC,+CAAiC;AACjC,mEAAqD;AACrD,uDAAyC;AACzC,2DAA6C;AAC7C,mDAAqC;AACrC,iDAAmC;AACnC,+DAAiD;AACjD,iEAAmD;AACnD,6DAA+C;AAC/C,mEAAqD;AACrD,mFAAqE;AACrE,mFAAqE;AACrE,qEAAuD;AACvD,2GAA6F;AAC7F,mGAAqF;AACrF,+CAAiC;AACjC,qDAAuC;AACvC,gEAAkD;AAClD,mDAAqC;AACrC,mDAAqC;AACrC,qDAAuC;AACvC,+DAAiD;AACjD,qEAAuD;AACvD,yDAA2C;AAC3C,+DAAiD;AACjD,iDAAmC;AACnC,+CAAiC;AACjC,+CAAiC;AACjC,6EAA+D;AAC/D,2EAA6D;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/tools/auth0/handlers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAiC;AACjC,6DAA+C;AAC/C,+CAAiC;AACjC,+CAAiC;AACjC,mEAAqD;AACrD,uDAAyC;AACzC,2DAA6C;AAC7C,mDAAqC;AACrC,iDAAmC;AACnC,+DAAiD;AACjD,iEAAmD;AACnD,6DAA+C;AAC/C,mEAAqD;AACrD,mFAAqE;AACrE,mFAAqE;AACrE,qEAAuD;AACvD,2GAA6F;AAC7F,mGAAqF;AACrF,+CAAiC;AACjC,qDAAuC;AACvC,gEAAkD;AAClD,mDAAqC;AACrC,mDAAqC;AACrC,qDAAuC;AACvC,+DAAiD;AACjD,qEAAuD;AACvD,yDAA2C;AAC3C,+DAAiD;AACjD,iDAAmC;AACnC,+CAAiC;AACjC,+CAAiC;AACjC,6EAA+D;AAC/D,2EAA6D;AAC7D,2DAA6C;AAK7C,MAAM,gBAAgB,GAAiC;IACrD,KAAK;IACL,YAAY;IACZ,KAAK;IACL,KAAK;IACL,eAAe;IACf,OAAO;IACP,SAAS;IACT,WAAW;IACX,MAAM;IACN,aAAa;IACb,cAAc;IACd,YAAY;IACZ,eAAe;IACf,uBAAuB;IACvB,uBAAuB;IACvB,gBAAgB;IAChB,mCAAmC;IACnC,+BAA+B;IAC/B,KAAK;IACL,QAAQ;IACR,cAAc;IACd,sEAAsE;IACtE,OAAO;IACP,OAAO;IACP,QAAQ;IACR,aAAa;IACb,gBAAgB;IAChB,UAAU;IACV,aAAa;IACb,MAAM;IACN,KAAK;IACL,KAAK;IACL,oBAAoB;IACpB,mBAAmB;IACnB,WAAW;CACZ,CAAC;AAEF,kBAAe,gBAEd,CAAC,CAAC,kDAAkD"}
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
import { GetNetworkAclsById200Response } from 'auth0';
|
|
2
|
+
import DefaultAPIHandler from './default';
|
|
3
|
+
import { Asset, Assets, CalculatedChanges } from '../../../types';
|
|
4
|
+
export type NetworkACL = GetNetworkAclsById200Response;
|
|
5
|
+
export declare const schema: {
|
|
6
|
+
type: string;
|
|
7
|
+
description: string;
|
|
8
|
+
items: {
|
|
9
|
+
type: string;
|
|
10
|
+
required: string[];
|
|
11
|
+
properties: {
|
|
12
|
+
description: {
|
|
13
|
+
type: string;
|
|
14
|
+
maxLength: number;
|
|
15
|
+
};
|
|
16
|
+
active: {
|
|
17
|
+
type: string;
|
|
18
|
+
};
|
|
19
|
+
priority: {
|
|
20
|
+
type: string;
|
|
21
|
+
minimum: number;
|
|
22
|
+
maximum: number;
|
|
23
|
+
};
|
|
24
|
+
rule: {
|
|
25
|
+
anyOf: {
|
|
26
|
+
type: string;
|
|
27
|
+
required: string[];
|
|
28
|
+
properties: {
|
|
29
|
+
action: {
|
|
30
|
+
type: string;
|
|
31
|
+
anyOf: ({
|
|
32
|
+
type: string;
|
|
33
|
+
required: string[];
|
|
34
|
+
properties: {
|
|
35
|
+
block: {
|
|
36
|
+
type: string;
|
|
37
|
+
enum: boolean[];
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
additionalProperties: boolean;
|
|
41
|
+
} | {
|
|
42
|
+
type: string;
|
|
43
|
+
required: string[];
|
|
44
|
+
properties: {
|
|
45
|
+
allow: {
|
|
46
|
+
type: string;
|
|
47
|
+
enum: boolean[];
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
additionalProperties: boolean;
|
|
51
|
+
} | {
|
|
52
|
+
type: string;
|
|
53
|
+
required: string[];
|
|
54
|
+
properties: {
|
|
55
|
+
log: {
|
|
56
|
+
type: string;
|
|
57
|
+
enum: boolean[];
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
additionalProperties: boolean;
|
|
61
|
+
} | {
|
|
62
|
+
type: string;
|
|
63
|
+
required: string[];
|
|
64
|
+
properties: {
|
|
65
|
+
redirect: {
|
|
66
|
+
type: string;
|
|
67
|
+
enum: boolean[];
|
|
68
|
+
};
|
|
69
|
+
redirect_uri: {
|
|
70
|
+
type: string;
|
|
71
|
+
minLength: number;
|
|
72
|
+
maxLength: number;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
additionalProperties: boolean;
|
|
76
|
+
})[];
|
|
77
|
+
};
|
|
78
|
+
match: {
|
|
79
|
+
type: string;
|
|
80
|
+
properties: {
|
|
81
|
+
asns: {
|
|
82
|
+
type: string;
|
|
83
|
+
items: {
|
|
84
|
+
type: string;
|
|
85
|
+
};
|
|
86
|
+
uniqueItems: boolean;
|
|
87
|
+
minItems: number;
|
|
88
|
+
maxItems: number;
|
|
89
|
+
};
|
|
90
|
+
geo_country_codes: {
|
|
91
|
+
type: string;
|
|
92
|
+
items: {
|
|
93
|
+
type: string;
|
|
94
|
+
};
|
|
95
|
+
uniqueItems: boolean;
|
|
96
|
+
minItems: number;
|
|
97
|
+
maxItems: number;
|
|
98
|
+
};
|
|
99
|
+
geo_subdivision_codes: {
|
|
100
|
+
type: string;
|
|
101
|
+
items: {
|
|
102
|
+
type: string;
|
|
103
|
+
};
|
|
104
|
+
uniqueItems: boolean;
|
|
105
|
+
minItems: number;
|
|
106
|
+
maxItems: number;
|
|
107
|
+
};
|
|
108
|
+
ipv4_cidrs: {
|
|
109
|
+
type: string;
|
|
110
|
+
items: {
|
|
111
|
+
type: string;
|
|
112
|
+
};
|
|
113
|
+
uniqueItems: boolean;
|
|
114
|
+
minItems: number;
|
|
115
|
+
maxItems: number;
|
|
116
|
+
};
|
|
117
|
+
ipv6_cidrs: {
|
|
118
|
+
type: string;
|
|
119
|
+
items: {
|
|
120
|
+
type: string;
|
|
121
|
+
};
|
|
122
|
+
uniqueItems: boolean;
|
|
123
|
+
minItems: number;
|
|
124
|
+
maxItems: number;
|
|
125
|
+
};
|
|
126
|
+
ja3_fingerprints: {
|
|
127
|
+
type: string;
|
|
128
|
+
items: {
|
|
129
|
+
type: string;
|
|
130
|
+
};
|
|
131
|
+
uniqueItems: boolean;
|
|
132
|
+
minItems: number;
|
|
133
|
+
maxItems: number;
|
|
134
|
+
};
|
|
135
|
+
ja4_fingerprints: {
|
|
136
|
+
type: string;
|
|
137
|
+
items: {
|
|
138
|
+
type: string;
|
|
139
|
+
};
|
|
140
|
+
uniqueItems: boolean;
|
|
141
|
+
minItems: number;
|
|
142
|
+
maxItems: number;
|
|
143
|
+
};
|
|
144
|
+
user_agents: {
|
|
145
|
+
type: string;
|
|
146
|
+
items: {
|
|
147
|
+
type: string;
|
|
148
|
+
};
|
|
149
|
+
uniqueItems: boolean;
|
|
150
|
+
minItems: number;
|
|
151
|
+
maxItems: number;
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
additionalProperties: boolean;
|
|
155
|
+
};
|
|
156
|
+
not_match: {
|
|
157
|
+
type: string;
|
|
158
|
+
properties: {
|
|
159
|
+
asns: {
|
|
160
|
+
type: string;
|
|
161
|
+
items: {
|
|
162
|
+
type: string;
|
|
163
|
+
};
|
|
164
|
+
uniqueItems: boolean;
|
|
165
|
+
minItems: number;
|
|
166
|
+
maxItems: number;
|
|
167
|
+
};
|
|
168
|
+
geo_country_codes: {
|
|
169
|
+
type: string;
|
|
170
|
+
items: {
|
|
171
|
+
type: string;
|
|
172
|
+
};
|
|
173
|
+
uniqueItems: boolean;
|
|
174
|
+
minItems: number;
|
|
175
|
+
maxItems: number;
|
|
176
|
+
};
|
|
177
|
+
geo_subdivision_codes: {
|
|
178
|
+
type: string;
|
|
179
|
+
items: {
|
|
180
|
+
type: string;
|
|
181
|
+
};
|
|
182
|
+
uniqueItems: boolean;
|
|
183
|
+
minItems: number;
|
|
184
|
+
maxItems: number;
|
|
185
|
+
};
|
|
186
|
+
ipv4_cidrs: {
|
|
187
|
+
type: string;
|
|
188
|
+
items: {
|
|
189
|
+
type: string;
|
|
190
|
+
};
|
|
191
|
+
uniqueItems: boolean;
|
|
192
|
+
minItems: number;
|
|
193
|
+
maxItems: number;
|
|
194
|
+
};
|
|
195
|
+
ipv6_cidrs: {
|
|
196
|
+
type: string;
|
|
197
|
+
items: {
|
|
198
|
+
type: string;
|
|
199
|
+
};
|
|
200
|
+
uniqueItems: boolean;
|
|
201
|
+
minItems: number;
|
|
202
|
+
maxItems: number;
|
|
203
|
+
};
|
|
204
|
+
ja3_fingerprints: {
|
|
205
|
+
type: string;
|
|
206
|
+
items: {
|
|
207
|
+
type: string;
|
|
208
|
+
};
|
|
209
|
+
uniqueItems: boolean;
|
|
210
|
+
minItems: number;
|
|
211
|
+
maxItems: number;
|
|
212
|
+
};
|
|
213
|
+
ja4_fingerprints: {
|
|
214
|
+
type: string;
|
|
215
|
+
items: {
|
|
216
|
+
type: string;
|
|
217
|
+
};
|
|
218
|
+
uniqueItems: boolean;
|
|
219
|
+
minItems: number;
|
|
220
|
+
maxItems: number;
|
|
221
|
+
};
|
|
222
|
+
user_agents: {
|
|
223
|
+
type: string;
|
|
224
|
+
items: {
|
|
225
|
+
type: string;
|
|
226
|
+
};
|
|
227
|
+
uniqueItems: boolean;
|
|
228
|
+
minItems: number;
|
|
229
|
+
maxItems: number;
|
|
230
|
+
};
|
|
231
|
+
};
|
|
232
|
+
additionalProperties: boolean;
|
|
233
|
+
};
|
|
234
|
+
scope: {
|
|
235
|
+
enum: string[];
|
|
236
|
+
type: string;
|
|
237
|
+
};
|
|
238
|
+
};
|
|
239
|
+
additionalProperties: boolean;
|
|
240
|
+
}[];
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
additionalProperties: boolean;
|
|
244
|
+
};
|
|
245
|
+
};
|
|
246
|
+
export default class NetworkACLsHandler extends DefaultAPIHandler {
|
|
247
|
+
existing: NetworkACL[] | null;
|
|
248
|
+
constructor(config: DefaultAPIHandler);
|
|
249
|
+
getType(): Promise<Asset | null>;
|
|
250
|
+
processChanges(assets: Assets): Promise<void>;
|
|
251
|
+
createNetworkACL(acl: NetworkACL): Promise<Asset>;
|
|
252
|
+
createNetworkACLs(creates: CalculatedChanges['create']): Promise<void>;
|
|
253
|
+
updateNetworkACL(acl: NetworkACL): Promise<import("auth0").ApiResponse<GetNetworkAclsById200Response>>;
|
|
254
|
+
updateNetworkACLs(updates: CalculatedChanges['update']): Promise<void>;
|
|
255
|
+
deleteNetworkACL(acl: NetworkACL): Promise<void>;
|
|
256
|
+
deleteNetworkACLs(data: Asset[]): Promise<void>;
|
|
257
|
+
}
|