auth0-deploy-cli 8.6.0 → 8.6.1
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 +13 -1
- package/lib/keywordPreservation.js +31 -15
- package/lib/keywordPreservation.js.map +1 -1
- package/lib/tools/auth0/handlers/clients.d.ts +59 -0
- package/lib/tools/auth0/handlers/clients.js +45 -0
- package/lib/tools/auth0/handlers/clients.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [8.6.1] - 2025-02-20
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- Fix docs for support of `forms`,`flows`,`flowVaultConnections` [#1030]
|
|
15
|
+
- Fix keyword preservation for `clientGrants` [#1032]
|
|
16
|
+
- Fix google credential support for `clients` [#1031]
|
|
17
|
+
|
|
10
18
|
## [8.6.0] - 2025-02-06
|
|
11
19
|
|
|
12
20
|
### Added
|
|
@@ -1217,7 +1225,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
1217
1225
|
[#1026]: https://github.com/auth0/auth0-deploy-cli/issues/1026
|
|
1218
1226
|
[#1027]: https://github.com/auth0/auth0-deploy-cli/issues/1027
|
|
1219
1227
|
[#1028]: https://github.com/auth0/auth0-deploy-cli/issues/1028
|
|
1220
|
-
[
|
|
1228
|
+
[#1030]: https://github.com/auth0/auth0-deploy-cli/issues/1030
|
|
1229
|
+
[#1031]: https://github.com/auth0/auth0-deploy-cli/issues/1031
|
|
1230
|
+
[#1032]: https://github.com/auth0/auth0-deploy-cli/issues/1032
|
|
1231
|
+
[unreleased]: https://github.com/auth0/auth0-deploy-cli/compare/v8.6.1...HEAD
|
|
1232
|
+
[8.6.1]: https://github.com/auth0/auth0-deploy-cli/compare/v8.6.0...v8.6.1
|
|
1221
1233
|
[8.6.0]: https://github.com/auth0/auth0-deploy-cli/compare/v8.5.0...v8.6.0
|
|
1222
1234
|
[8.5.0]: https://github.com/auth0/auth0-deploy-cli/compare/v8.4.4...v8.5.0
|
|
1223
1235
|
[8.4.4]: https://github.com/auth0/auth0-deploy-cli/compare/v8.4.3...v8.4.4
|
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.preserveKeywords = exports.updateAssetsByAddress = exports.convertAddressToDotNotation = exports.getAssetsValueByAddress = exports.getPreservableFieldsFromAssets = exports.doesHaveKeywordMarker = void 0;
|
|
4
7
|
const dot_prop_1 = require("dot-prop");
|
|
5
|
-
const utils_1 = require("./tools/utils");
|
|
6
|
-
const utils_2 = require("./tools/utils");
|
|
7
8
|
const lodash_1 = require("lodash");
|
|
9
|
+
const utils_1 = require("./tools/utils");
|
|
10
|
+
const utils_2 = require("./utils");
|
|
11
|
+
const logger_1 = __importDefault(require("./logger"));
|
|
8
12
|
/*
|
|
9
13
|
RFC for Keyword Preservation: https://github.com/auth0/auth0-deploy-cli/issues/688
|
|
10
14
|
Original Github Issue: https://github.com/auth0/auth0-deploy-cli/issues/328
|
|
11
15
|
*/
|
|
12
|
-
const doesHaveKeywordMarker = (string, keywordMappings) => {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
});
|
|
18
|
-
};
|
|
16
|
+
const doesHaveKeywordMarker = (string, keywordMappings) => !Object.keys(keywordMappings).every((keyword) => {
|
|
17
|
+
const hasArrayMarker = (0, utils_1.keywordReplaceArrayRegExp)(keyword).test(string);
|
|
18
|
+
const hasStringMarker = (0, utils_1.keywordReplaceStringRegExp)(keyword).test(string);
|
|
19
|
+
return !hasArrayMarker && !hasStringMarker;
|
|
20
|
+
});
|
|
19
21
|
exports.doesHaveKeywordMarker = doesHaveKeywordMarker;
|
|
20
22
|
const getPreservableFieldsFromAssets = (asset, keywordMappings, resourceSpecificIdentifiers, address = '') => {
|
|
21
23
|
if (typeof asset === 'string') {
|
|
@@ -77,8 +79,8 @@ exports.getPreservableFieldsFromAssets = getPreservableFieldsFromAssets;
|
|
|
77
79
|
// Object: `{ actions: [ { name: "action-1", code: "..."}] }`
|
|
78
80
|
// Address: `.actions[name=action-1].code`
|
|
79
81
|
const getAssetsValueByAddress = (address, assets) => {
|
|
80
|
-
//Look ahead and see if the address path only contains dots (ex: `tenant.friendly_name`)
|
|
81
|
-
//if so the address is trivial and can use the dot-prop package to return the value
|
|
82
|
+
// Look ahead and see if the address path only contains dots (ex: `tenant.friendly_name`)
|
|
83
|
+
// if so the address is trivial and can use the dot-prop package to return the value
|
|
82
84
|
const isTrivialAddress = address.indexOf('[') === -1;
|
|
83
85
|
if (isTrivialAddress) {
|
|
84
86
|
return (0, dot_prop_1.get)(assets, address);
|
|
@@ -110,7 +112,7 @@ exports.getAssetsValueByAddress = getAssetsValueByAddress;
|
|
|
110
112
|
// returns null if address value does not exist in asset tree
|
|
111
113
|
const convertAddressToDotNotation = (assets, address, finalAddressTrail = '') => {
|
|
112
114
|
if (assets === null)
|
|
113
|
-
return null; //Asset does not exist on remote
|
|
115
|
+
return null; // Asset does not exist on remote
|
|
114
116
|
const directions = address.split(/\.(?![^\[]*\])/g);
|
|
115
117
|
if (directions[0] === '')
|
|
116
118
|
return finalAddressTrail;
|
|
@@ -156,6 +158,19 @@ const preserveKeywords = ({ localAssets, remoteAssets, keywordMappings, auth0Han
|
|
|
156
158
|
return acc;
|
|
157
159
|
}, {});
|
|
158
160
|
const addresses = (0, exports.getPreservableFieldsFromAssets)(localAssets, keywordMappings, resourceSpecificIdentifiers, '');
|
|
161
|
+
// Convert client_id to client name in clientGrants if clients are available for keyword preservation in clientGrants
|
|
162
|
+
if (remoteAssets && remoteAssets.clientGrants) {
|
|
163
|
+
if (remoteAssets.clients) {
|
|
164
|
+
for (let i = 0; i < remoteAssets.clientGrants.length; i++) {
|
|
165
|
+
const clientGrant = remoteAssets.clientGrants[i];
|
|
166
|
+
clientGrant.client_id = (0, utils_2.convertClientIdToName)(clientGrant.client_id, remoteAssets.clients);
|
|
167
|
+
remoteAssets.clientGrants[i] = clientGrant;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
else {
|
|
171
|
+
logger_1.default.debug("Keyword preservation for 'clientGrants' has dependency on the 'clients' resource, make sure to include both in the export.");
|
|
172
|
+
}
|
|
173
|
+
}
|
|
159
174
|
let updatedRemoteAssets = (0, lodash_1.cloneDeep)(remoteAssets);
|
|
160
175
|
addresses.forEach((address) => {
|
|
161
176
|
const localValue = (0, exports.getAssetsValueByAddress)(address, localAssets);
|
|
@@ -172,7 +187,8 @@ const preserveKeywords = ({ localAssets, remoteAssets, keywordMappings, auth0Han
|
|
|
172
187
|
if (typeof remoteValue === 'string') {
|
|
173
188
|
return localValueWithReplacement === remoteValue;
|
|
174
189
|
}
|
|
175
|
-
//TODO:
|
|
190
|
+
// TODO: Account for non-string replacements via @@ syntax
|
|
191
|
+
return false; // Default to false
|
|
176
192
|
})();
|
|
177
193
|
if (!localAndRemoteValuesAreEqual) {
|
|
178
194
|
console.warn(`WARNING! The remote value with address of ${address} has value of "${remoteValue}" but will be preserved with "${localValueWithReplacement}" due to keyword preservation.`);
|
|
@@ -183,9 +199,9 @@ const preserveKeywords = ({ localAssets, remoteAssets, keywordMappings, auth0Han
|
|
|
183
199
|
// one where the identifier field has a keyword and one where the identifier field has
|
|
184
200
|
// the literal replaced value.
|
|
185
201
|
// Example: `customDomains.[domain=##DOMAIN].domain` and `customDomains.[domain=travel0.com].domain`
|
|
186
|
-
updatedRemoteAssets = (0, exports.updateAssetsByAddress)(updatedRemoteAssets, address, //Two possible addresses need to be passed, one with identifier field keyword replaced and one where it is not replaced. Ex: `customDomains.[domain=##DOMAIN].domain` and `customDomains.[domain=travel0.com].domain`
|
|
202
|
+
updatedRemoteAssets = (0, exports.updateAssetsByAddress)(updatedRemoteAssets, address, // Two possible addresses need to be passed, one with identifier field keyword replaced and one where it is not replaced. Ex: `customDomains.[domain=##DOMAIN].domain` and `customDomains.[domain=travel0.com].domain`
|
|
187
203
|
localValue);
|
|
188
|
-
updatedRemoteAssets = (0, exports.updateAssetsByAddress)(updatedRemoteAssets, remoteAssetsAddress, //Two possible addresses need to be passed, one with identifier field keyword replaced and one where it is not replaced. Ex: `customDomains.[domain=##DOMAIN].domain` and `customDomains.[domain=travel0.com].domain`
|
|
204
|
+
updatedRemoteAssets = (0, exports.updateAssetsByAddress)(updatedRemoteAssets, remoteAssetsAddress, // Two possible addresses need to be passed, one with identifier field keyword replaced and one where it is not replaced. Ex: `customDomains.[domain=##DOMAIN].domain` and `customDomains.[domain=travel0.com].domain`
|
|
189
205
|
localValue);
|
|
190
206
|
});
|
|
191
207
|
return updatedRemoteAssets;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keywordPreservation.js","sourceRoot":"","sources":["../src/keywordPreservation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"keywordPreservation.js","sourceRoot":"","sources":["../src/keywordPreservation.ts"],"names":[],"mappings":";;;;;;AAAA,uCAA4E;AAC5E,mCAA4C;AAE5C,yCAIuB;AAEvB,mCAAgD;AAChD,sDAA2B;AAE3B;;;EAGE;AAEK,MAAM,qBAAqB,GAAG,CAAC,MAAc,EAAE,eAAgC,EAAW,EAAE,CACjG,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,KAAK,CAAC,CAAC,OAAO,EAAE,EAAE;IAC9C,MAAM,cAAc,GAAG,IAAA,iCAAyB,EAAC,OAAO,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACvE,MAAM,eAAe,GAAG,IAAA,kCAA0B,EAAC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AC;QACF,mBAAmB,GAAG,IAAA,6BAAqB,EACzC,mBAAmB,EACnB,mBAAmB,EAAE,sNAAsN;QAC3O,UAAU,CACX,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,OAAO,mBAAmB,CAAC;AAC7B,CAAC,CAAC;AAjGW,QAAA,gBAAgB,oBAiG3B"}
|
|
@@ -10,6 +10,65 @@ export declare const schema: {
|
|
|
10
10
|
minLength: number;
|
|
11
11
|
pattern: string;
|
|
12
12
|
};
|
|
13
|
+
mobile: {
|
|
14
|
+
type: string;
|
|
15
|
+
properties: {
|
|
16
|
+
android: {
|
|
17
|
+
type: string;
|
|
18
|
+
properties: {
|
|
19
|
+
app_package_name: {
|
|
20
|
+
type: string;
|
|
21
|
+
};
|
|
22
|
+
sha256_cert_fingerprints: {
|
|
23
|
+
type: string;
|
|
24
|
+
items: {
|
|
25
|
+
type: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
ios: {
|
|
31
|
+
type: string;
|
|
32
|
+
properties: {
|
|
33
|
+
team_id: {
|
|
34
|
+
type: string;
|
|
35
|
+
};
|
|
36
|
+
app_bundle_identifier: {
|
|
37
|
+
type: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
native_social_login: {
|
|
44
|
+
type: string;
|
|
45
|
+
properties: {
|
|
46
|
+
apple: {
|
|
47
|
+
type: string;
|
|
48
|
+
properties: {
|
|
49
|
+
enabled: {
|
|
50
|
+
type: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
facebook: {
|
|
55
|
+
type: string;
|
|
56
|
+
properties: {
|
|
57
|
+
enabled: {
|
|
58
|
+
type: string;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
google: {
|
|
63
|
+
type: string;
|
|
64
|
+
properties: {
|
|
65
|
+
enabled: {
|
|
66
|
+
type: string;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
};
|
|
13
72
|
};
|
|
14
73
|
required: string[];
|
|
15
74
|
};
|
|
@@ -21,6 +21,51 @@ exports.schema = {
|
|
|
21
21
|
type: 'object',
|
|
22
22
|
properties: {
|
|
23
23
|
name: { type: 'string', minLength: 1, pattern: '[^<>]+' },
|
|
24
|
+
mobile: {
|
|
25
|
+
type: 'object',
|
|
26
|
+
properties: {
|
|
27
|
+
android: {
|
|
28
|
+
type: 'object',
|
|
29
|
+
properties: {
|
|
30
|
+
app_package_name: { type: 'string' },
|
|
31
|
+
sha256_cert_fingerprints: {
|
|
32
|
+
type: 'array',
|
|
33
|
+
items: { type: 'string' },
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
ios: {
|
|
38
|
+
type: 'object',
|
|
39
|
+
properties: {
|
|
40
|
+
team_id: { type: 'string' },
|
|
41
|
+
app_bundle_identifier: { type: 'string' },
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
native_social_login: {
|
|
47
|
+
type: 'object',
|
|
48
|
+
properties: {
|
|
49
|
+
apple: {
|
|
50
|
+
type: 'object',
|
|
51
|
+
properties: {
|
|
52
|
+
enabled: { type: 'boolean' },
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
facebook: {
|
|
56
|
+
type: 'object',
|
|
57
|
+
properties: {
|
|
58
|
+
enabled: { type: 'boolean' },
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
google: {
|
|
62
|
+
type: 'object',
|
|
63
|
+
properties: {
|
|
64
|
+
enabled: { type: 'boolean' },
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
},
|
|
24
69
|
},
|
|
25
70
|
required: ['name'],
|
|
26
71
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clients.js","sourceRoot":"","sources":["../../../../src/tools/auth0/handlers/clients.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,sCAAqC;AACrC,wDAA0C;AAE7B,QAAA,MAAM,GAAG;IACpB,IAAI,EAAE,OAAO;IACb,KAAK,EAAE;QACL,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE;
|
|
1
|
+
{"version":3,"file":"clients.js","sourceRoot":"","sources":["../../../../src/tools/auth0/handlers/clients.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,sCAAqC;AACrC,wDAA0C;AAE7B,QAAA,MAAM,GAAG;IACpB,IAAI,EAAE,OAAO;IACb,KAAK,EAAE;QACL,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE;YACzD,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,OAAO,EAAE;wBACP,IAAI,EAAE,QAAQ;wBACd,UAAU,EAAE;4BACV,gBAAgB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;4BACpC,wBAAwB,EAAE;gCACxB,IAAI,EAAE,OAAO;gCACb,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;6BAC1B;yBACF;qBACF;oBACD,GAAG,EAAE;wBACH,IAAI,EAAE,QAAQ;wBACd,UAAU,EAAE;4BACV,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;4BAC3B,qBAAqB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;yBAC1C;qBACF;iBACF;aACF;YACD,mBAAmB,EAAE;gBACnB,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,KAAK,EAAE;wBACL,IAAI,EAAE,QAAQ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}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "auth0-deploy-cli",
|
|
3
|
-
"version": "8.6.
|
|
3
|
+
"version": "8.6.1",
|
|
4
4
|
"description": "A command line tool for deploying updates to your Auth0 tenant",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"homepage": "https://github.com/auth0/auth0-deploy-cli#readme",
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"ajv": "^6.12.6",
|
|
36
|
-
"auth0": "^4.
|
|
36
|
+
"auth0": "^4.18.0",
|
|
37
37
|
"dot-prop": "^5.2.0",
|
|
38
38
|
"fs-extra": "^10.1.0",
|
|
39
39
|
"js-yaml": "^4.1.0",
|