@forge/csp 6.4.1-next.1 → 6.4.1-next.2
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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"csp-injection-service.d.ts","sourceRoot":"","sources":["../../src/csp/csp-injection-service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAE3D,OAAO,EAAE,UAAU,EAAmB,MAAM,UAAU,CAAC;AAEvD,KAAK,iBAAiB,GAAG;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAIF,KAAK,oBAAoB,GAAG;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,MAAM,CAAC;CAC3B,CAAC;AAEF,KAAK,SAAS,GAAG,iBAAiB,GAAG,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"csp-injection-service.d.ts","sourceRoot":"","sources":["../../src/csp/csp-injection-service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAE3D,OAAO,EAAE,UAAU,EAAmB,MAAM,UAAU,CAAC;AAEvD,KAAK,iBAAiB,GAAG;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAIF,KAAK,oBAAoB,GAAG;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,MAAM,CAAC;CAC3B,CAAC;AAEF,KAAK,SAAS,GAAG,iBAAiB,GAAG,oBAAoB,CAAC;AA+O1D,eAAO,MAAM,qBAAqB,GAAI,WAAW,iBAAiB,EAAE,YAAY,SAAS,KAAG,MAAM,EAcjG,CAAC;AAMF,eAAO,MAAM,kCAAkC,UAAiE,CAAC;AAEjH,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,eAAe;IAQvB,OAAO,CAAC,iBAAiB;IAYzB,OAAO,CAAC,iBAAiB;IASzB,OAAO,CAAC,qBAAqB;IAI7B,OAAO,CAAC,aAAa;IAoCrB,OAAO,CAAC,iBAAiB;IA6FlB,gBAAgB,GAAI,2JAUxB;QACD,kBAAkB,EAAE,UAAU,CAAC;QAC/B,SAAS,EAAE,iBAAiB,CAAC;QAC7B,oBAAoB,CAAC,EAAE,MAAM,CAAC;QAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,SAAS,CAAC,EAAE,SAAS,CAAC;QACtB,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,wBAAwB,CAAC,EAAE,MAAM,CAAC;QAClC,qBAAqB,CAAC,EAAE,MAAM,CAAC;KAChC,KAAG,MAAM,EAAE,CAuGV;CACH"}
|
|
@@ -137,6 +137,7 @@ const FOS_CDN_STANDARD_HOST = {
|
|
|
137
137
|
const GCP_FORGE_CDN_HOST = {
|
|
138
138
|
'stg-gcentral': 'https://forge.cdn.stg.atlassian-dev.net'
|
|
139
139
|
};
|
|
140
|
+
const getMacroParentHost = (macroParentHost, env, perimeter = 'commercial') => `${macroParentHost}.cdn.${env}.${perimeter === 'fedramp' ? 'atlassian-dev-us-gov-mod.net' : 'atlassian-dev.net'}`;
|
|
140
141
|
const FOS_CDN_IC_HOST = makeICHosts((env, icOptions) => `https://object-store.${getICDomain(env, icOptions)}`);
|
|
141
142
|
const FOS_CDN_PATH = '/os/ecosystem/installation/';
|
|
142
143
|
const getFOSCDNHost = (microsEnv, icOptions) => {
|
|
@@ -337,14 +338,20 @@ class CSPInjectionService {
|
|
|
337
338
|
'*.stg.atlassian.com'
|
|
338
339
|
];
|
|
339
340
|
if (macroParentHost && !localhostWithPortRegex.test(macroParentHost)) {
|
|
340
|
-
frameAncestors.push(
|
|
341
|
+
frameAncestors.push(getMacroParentHost(macroParentHost, 'stg'));
|
|
341
342
|
}
|
|
342
343
|
break;
|
|
343
344
|
case 'fedramp-stg':
|
|
344
345
|
frameAncestors = ['*.atlassian-stg-fedm.net'];
|
|
346
|
+
if (macroParentHost) {
|
|
347
|
+
frameAncestors.push(getMacroParentHost(macroParentHost, 'stg', 'fedramp'));
|
|
348
|
+
}
|
|
345
349
|
break;
|
|
346
350
|
case 'fedramp-prod':
|
|
347
351
|
frameAncestors = ['*.atlassian-us-gov-mod.net'];
|
|
352
|
+
if (macroParentHost) {
|
|
353
|
+
frameAncestors.push(getMacroParentHost(macroParentHost, 'prod', 'fedramp'));
|
|
354
|
+
}
|
|
348
355
|
break;
|
|
349
356
|
case 'ic-stg':
|
|
350
357
|
case 'ic-prod':
|
|
@@ -368,7 +375,7 @@ class CSPInjectionService {
|
|
|
368
375
|
frameAncestors.push(`http://${macroParentHost}`);
|
|
369
376
|
}
|
|
370
377
|
else {
|
|
371
|
-
frameAncestors.push(
|
|
378
|
+
frameAncestors.push(getMacroParentHost(macroParentHost, 'prod'));
|
|
372
379
|
}
|
|
373
380
|
}
|
|
374
381
|
break;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/csp",
|
|
3
|
-
"version": "6.4.1-next.
|
|
3
|
+
"version": "6.4.1-next.2",
|
|
4
4
|
"description": "Contains the CSP configuration for Custom UI resources in Forge",
|
|
5
5
|
"main": "out/index.js",
|
|
6
6
|
"author": "Atlassian",
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"clean": "rm -rf ./out && rm -f tsconfig.tsbuildinfo"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
|
-
"@forge/cli-shared": "9.10.0-next.
|
|
15
|
-
"@forge/manifest": "13.9.0-next.
|
|
14
|
+
"@forge/cli-shared": "9.10.0-next.7",
|
|
15
|
+
"@forge/manifest": "13.9.0-next.5",
|
|
16
16
|
"@types/jest": "^30.0.0",
|
|
17
17
|
"@types/node": "20.19.1",
|
|
18
18
|
"cheerio": "^1.2.0",
|