@forge/csp 6.4.1-next.1 → 6.4.1-next.3
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,5 +1,17 @@
|
|
|
1
1
|
# @forge/csp
|
|
2
2
|
|
|
3
|
+
## 6.4.1-next.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 2e7a1d5: Added `rovo-desktop://com.atlassian.rovo-chat-desktop` to the `frame-ancestors` CSP directive.
|
|
8
|
+
|
|
9
|
+
## 6.4.1-next.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 49bab87: Add the macro parent host to `frame-ancestors` in the injected CSP for FedRAMP staging and production
|
|
14
|
+
|
|
3
15
|
## 6.4.1-next.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -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;IAiGlB,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) => {
|
|
@@ -333,18 +334,25 @@ class CSPInjectionService {
|
|
|
333
334
|
'https://integration.bb-inf.net',
|
|
334
335
|
'https://trellis.coffee',
|
|
335
336
|
'chrome-extension://npbjhobkibekbklkghlhfhieggcggpdb',
|
|
337
|
+
'rovo-desktop://com.atlassian.rovo-chat-desktop',
|
|
336
338
|
'*.atl-paas.net',
|
|
337
339
|
'*.stg.atlassian.com'
|
|
338
340
|
];
|
|
339
341
|
if (macroParentHost && !localhostWithPortRegex.test(macroParentHost)) {
|
|
340
|
-
frameAncestors.push(
|
|
342
|
+
frameAncestors.push(getMacroParentHost(macroParentHost, 'stg'));
|
|
341
343
|
}
|
|
342
344
|
break;
|
|
343
345
|
case 'fedramp-stg':
|
|
344
346
|
frameAncestors = ['*.atlassian-stg-fedm.net'];
|
|
347
|
+
if (macroParentHost) {
|
|
348
|
+
frameAncestors.push(getMacroParentHost(macroParentHost, 'stg', 'fedramp'));
|
|
349
|
+
}
|
|
345
350
|
break;
|
|
346
351
|
case 'fedramp-prod':
|
|
347
352
|
frameAncestors = ['*.atlassian-us-gov-mod.net'];
|
|
353
|
+
if (macroParentHost) {
|
|
354
|
+
frameAncestors.push(getMacroParentHost(macroParentHost, 'prod', 'fedramp'));
|
|
355
|
+
}
|
|
348
356
|
break;
|
|
349
357
|
case 'ic-stg':
|
|
350
358
|
case 'ic-prod':
|
|
@@ -359,6 +367,7 @@ class CSPInjectionService {
|
|
|
359
367
|
'bitbucket.org',
|
|
360
368
|
'https://trello.com',
|
|
361
369
|
'chrome-extension://npbjhobkibekbklkghlhfhieggcggpdb',
|
|
370
|
+
'rovo-desktop://com.atlassian.rovo-chat-desktop',
|
|
362
371
|
'*.jira.com',
|
|
363
372
|
'*.atlassian.com',
|
|
364
373
|
'*.frontend.public.atl-paas.net'
|
|
@@ -368,7 +377,7 @@ class CSPInjectionService {
|
|
|
368
377
|
frameAncestors.push(`http://${macroParentHost}`);
|
|
369
378
|
}
|
|
370
379
|
else {
|
|
371
|
-
frameAncestors.push(
|
|
380
|
+
frameAncestors.push(getMacroParentHost(macroParentHost, 'prod'));
|
|
372
381
|
}
|
|
373
382
|
}
|
|
374
383
|
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.3",
|
|
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.19",
|
|
15
|
+
"@forge/manifest": "13.9.0-next.8",
|
|
16
16
|
"@types/jest": "^30.0.0",
|
|
17
17
|
"@types/node": "20.19.1",
|
|
18
18
|
"cheerio": "^1.2.0",
|