@forge/csp 6.4.0 → 6.4.1-next.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
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @forge/csp
|
|
2
2
|
|
|
3
|
+
## 6.4.1-next.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 1991376: Include data URLs in font-src. Include Hello Jira domain in frame ancestors if Hello Confluence domain is already included
|
|
8
|
+
|
|
9
|
+
## 6.4.1-next.0
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 6af1446: Allow Trello (`https://trello.com`, and `https://trellis.coffee` in dev/staging) and the Rovo Chrome extension as `frame-ancestors` in the injected CSP
|
|
14
|
+
|
|
3
15
|
## 6.4.0
|
|
4
16
|
|
|
5
17
|
### Minor 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;AAuO1D,eAAO,MAAM,qBAAqB,GAAI,WAAW,iBAAiB,EAAE,YAAY,SAAS,KAAG,MAAM,EAcjG,CAAC;AAMF,eAAO,MAAM,kCAAkC,UAAiE,CAAC;AAEjH,qBAAa,mBAAmB;IAC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BAAwB,CAAC,EAAE,MAAM,CAAC;QAClC,qBAAqB,CAAC,EAAE,MAAM,CAAC;KAChC,KAAG,MAAM,EAAE,CAuGV;CACH"}
|
|
@@ -202,6 +202,7 @@ class CSPInjectionService {
|
|
|
202
202
|
.join(' ');
|
|
203
203
|
const fontSrc = [
|
|
204
204
|
"'self'",
|
|
205
|
+
'data:',
|
|
205
206
|
...getFOSHostDownload(microsEnv, icOptions),
|
|
206
207
|
...fosCDNUrls,
|
|
207
208
|
...this.getExistingCSPDetails(types_1.ExternalCspType.FONT_SRC, existingCSPDetails)
|
|
@@ -330,6 +331,8 @@ class CSPInjectionService {
|
|
|
330
331
|
'http://localhost:*',
|
|
331
332
|
'http://devbucket.localhost',
|
|
332
333
|
'https://integration.bb-inf.net',
|
|
334
|
+
'https://trellis.coffee',
|
|
335
|
+
'chrome-extension://npbjhobkibekbklkghlhfhieggcggpdb',
|
|
333
336
|
'*.atl-paas.net',
|
|
334
337
|
'*.stg.atlassian.com'
|
|
335
338
|
];
|
|
@@ -354,6 +357,8 @@ class CSPInjectionService {
|
|
|
354
357
|
frameAncestors = [
|
|
355
358
|
'*.atlassian.net',
|
|
356
359
|
'bitbucket.org',
|
|
360
|
+
'https://trello.com',
|
|
361
|
+
'chrome-extension://npbjhobkibekbklkghlhfhieggcggpdb',
|
|
357
362
|
'*.jira.com',
|
|
358
363
|
'*.atlassian.com',
|
|
359
364
|
'*.frontend.public.atl-paas.net'
|
|
@@ -376,6 +381,9 @@ class CSPInjectionService {
|
|
|
376
381
|
}
|
|
377
382
|
if (hostname) {
|
|
378
383
|
frameAncestors.push(hostname);
|
|
384
|
+
if (hostname === 'hello.atlassian.net') {
|
|
385
|
+
frameAncestors.push('hello.jira.atlassian.cloud');
|
|
386
|
+
}
|
|
379
387
|
}
|
|
380
388
|
return frameAncestors;
|
|
381
389
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/csp",
|
|
3
|
-
"version": "6.4.
|
|
3
|
+
"version": "6.4.1-next.1",
|
|
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.
|
|
15
|
-
"@forge/manifest": "13.
|
|
14
|
+
"@forge/cli-shared": "9.10.0-next.3",
|
|
15
|
+
"@forge/manifest": "13.9.0-next.2",
|
|
16
16
|
"@types/jest": "^30.0.0",
|
|
17
17
|
"@types/node": "20.19.1",
|
|
18
18
|
"cheerio": "^1.2.0",
|