@forge/csp 6.3.0 → 6.3.1-experimental-d477002
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,24 @@
|
|
|
1
1
|
# @forge/csp
|
|
2
2
|
|
|
3
|
+
## 6.3.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 873db00: Allow Jira Assets object icons (`assets-media.atlassian.com`) by default in the Custom UI `img-src` CSP directive across all environments (dev, staging, prod, FedRAMP and IC). Apps rendering Assets icons no longer need to declare this Atlassian-owned domain under `permissions.external.images`, so it no longer counts toward the external image domain limit (ECO-1691).
|
|
8
|
+
- aebfe3f: Update reactions csp
|
|
9
|
+
|
|
10
|
+
## 6.3.1-next.1
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- aebfe3f: Update reactions csp
|
|
15
|
+
|
|
16
|
+
## 6.3.1-next.0
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- 873db00: Allow Jira Assets object icons (`assets-media.atlassian.com`) by default in the Custom UI `img-src` CSP directive across all environments (dev, staging, prod, FedRAMP and IC). Apps rendering Assets icons no longer need to declare this Atlassian-owned domain under `permissions.external.images`, so it no longer counts toward the external image domain limit (ECO-1691).
|
|
21
|
+
|
|
3
22
|
## 6.3.0
|
|
4
23
|
|
|
5
24
|
### 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,C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AAE,MAAM,CAAC;QACzB,wBAAwB,CAAC,EAAE,MAAM,CAAC;QAClC,qBAAqB,CAAC,EAAE,MAAM,CAAC;KAChC,KAAG,MAAM,EAAE,CAsGV;CACH"}
|
|
@@ -33,6 +33,14 @@ const ATLASSIAN_HOST = {
|
|
|
33
33
|
'fedramp-prod': 'https://api-media.atlassian-us-gov-mod.com',
|
|
34
34
|
...makeICHosts((env, icOptions) => `https://media-api.${getICDomain(env, icOptions)}`)
|
|
35
35
|
},
|
|
36
|
+
ATLASSIAN_ASSETS_MEDIA_HOST: {
|
|
37
|
+
dev: 'https://assets-media.stg.atlassian.com',
|
|
38
|
+
stg: 'https://assets-media.stg.atlassian.com',
|
|
39
|
+
prod: 'https://assets-media.atlassian.com',
|
|
40
|
+
'fedramp-stg': 'https://assets-media.stg.atlassian-us-gov-mod.com',
|
|
41
|
+
'fedramp-prod': 'https://assets-media.atlassian-us-gov-mod.com',
|
|
42
|
+
...makeICHosts((env, icOptions) => `https://assets-media.${getICDomain(env, icOptions)}`)
|
|
43
|
+
},
|
|
36
44
|
ATLASSIAN_ANALYTICS_GATEWAY_HOST: {
|
|
37
45
|
dev: 'https://as.dev.atl-paas.net',
|
|
38
46
|
stg: 'https://as.staging.atl-paas.net',
|
|
@@ -79,7 +87,7 @@ const ATLASSIAN_HOST = {
|
|
|
79
87
|
prod: 'https://pf-reactions-service.prod-east.frontend.public.atl-paas.net',
|
|
80
88
|
'fedramp-stg': 'https://pf-reactions-service.frontend.staging.cdn.atlassian-us-gov-mod.com',
|
|
81
89
|
'fedramp-prod': 'https://pf-reactions-service.frontend.cdn.atlassian-us-gov-mod.com',
|
|
82
|
-
...makeICHosts((env, icOptions) => `https://pf-reactions-service.${getICDomain(env, icOptions)}/bfa/reactions-service/`)
|
|
90
|
+
...makeICHosts((env, icOptions) => `https://pf-reactions-service.services.${getICDomain(env, icOptions)}/bfa/reactions-service/`)
|
|
83
91
|
},
|
|
84
92
|
ATLASSIAN_FOP_GE_HOST: {
|
|
85
93
|
dev: 'https://forge-outbound-proxy.dev.services.atlassian.com',
|
|
@@ -149,6 +157,7 @@ const getAtlassianImageHost = (microsEnv, icOptions) => {
|
|
|
149
157
|
getAtlassianHost('ATLASSIAN_MEDIA_GATEWAY_HOST', microsEnv, icOptions),
|
|
150
158
|
getAtlassianHost('ATLASSIAN_EMOJIS_HOST', microsEnv, icOptions),
|
|
151
159
|
...getReactionsImageHost(microsEnv, icOptions),
|
|
160
|
+
getAtlassianHost('ATLASSIAN_ASSETS_MEDIA_HOST', microsEnv, icOptions),
|
|
152
161
|
getAtlassianHost('ATLASSIAN_TEAM_AVATAR_HOST', microsEnv, icOptions),
|
|
153
162
|
getAtlassianHost('ATLASSIAN_TEAM_HEADER_HOST', microsEnv, icOptions),
|
|
154
163
|
...getFOSHostDownload(microsEnv, icOptions),
|
|
@@ -282,6 +291,7 @@ class CSPInjectionService {
|
|
|
282
291
|
const metalClientCSP = this.getMetalClientCSP(microsEnv, icOptions);
|
|
283
292
|
allowed.push(metalClientCSP);
|
|
284
293
|
allowed.push(`${getAtlassianHost('ATLASSIAN_API_GATEWAY_HOST', microsEnv, icOptions)}/gateway/api/emoji/`);
|
|
294
|
+
allowed.push(`${getAtlassianHost('ATLASSIAN_API_GATEWAY_HOST', microsEnv, icOptions)}/gateway/api/elements/emoji`);
|
|
285
295
|
allowed.push(getAtlassianHost('ATLASSIAN_MEDIA_GATEWAY_HOST', microsEnv, icOptions));
|
|
286
296
|
allowed.push(getAtlassianHost('ATLASSIAN_ANALYTICS_GATEWAY_HOST', microsEnv, icOptions));
|
|
287
297
|
const fopGeHost = getAtlassianHost('ATLASSIAN_FOP_GE_HOST', microsEnv, icOptions);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/csp",
|
|
3
|
-
"version": "6.3.
|
|
3
|
+
"version": "6.3.1-experimental-d477002",
|
|
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.4.1-next.5-experimental-d477002",
|
|
15
|
+
"@forge/manifest": "13.4.0-next.3-experimental-d477002",
|
|
16
16
|
"@types/jest": "^29.5.14",
|
|
17
17
|
"@types/node": "20.19.1",
|
|
18
18
|
"cheerio": "^1.2.0",
|