Skip to content

Commit a6b9345

Browse files
Merge pull request #9716 from EclipseFdn/update-website
Update ways to report vulnerabilities to website / deploy 0.34.1
2 parents 6da0cc0 + 106a379 commit a6b9345

8 files changed

Lines changed: 39 additions & 19 deletions

File tree

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
ARG SERVER_VERSION=v0.34.0
2-
ARG SERVER_VERSION_STRING=v0.34.0
1+
ARG SERVER_VERSION=v0.34.1
2+
ARG SERVER_VERSION_STRING=v0.34.1
33

44
# Builder image to compile the website
55
FROM ubuntu:24.04 AS builder

configuration/application.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,11 @@ ovsx:
198198
rate-limit:
199199
enabled: true
200200
token-prefix: ovsx_rl_
201-
# on the trust boundary, "X-Real-IP" is set for any external requests
202-
# for internal requests from within the cluster check first of "X-Forwarded-For" is set, otherwise use the remote addr.
201+
# on the trust boundary (fastly edge), "X-Fastly-Real-IP" is set for any external requests
202+
# on nginx, "X-Real-IP" is set for any external requests, kept as a fallback
203+
# for internal requests from within the cluster check first if "X-Forwarded-For" is set, otherwise use the remote addr.
203204
# jetty seems to return "[127.0.0.1]" as remote addr in some cases, need to investigate why this is happening
204-
ip-address-function: '(getHeader("X-Real-IP")?: getHeader("X-Forwarded-For")?: getRemoteAddr()).split(",")[0].trim()'
205+
ip-address-function: '(getHeader("X-Fastly-Real-IP")?: getHeader("X-Real-IP")?: getHeader("X-Forwarded-For")?: getRemoteAddr()).split(",")[0].trim()'
205206
filters:
206207
- url: '/(api|vscode)/.*'
207208
http-response-headers:

website/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"type": "module",
1212
"dependencies": {
13-
"openvsx-webui": "npm:openvsx-webui@0.20.0"
13+
"openvsx-webui": "npm:openvsx-webui@0.20.1"
1414
},
1515
"resolutions": {
1616
"qs": "^6.14.1"

website/src/about.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,7 @@ const About = () => {
6161

6262
<Heading variant='h5'>Contact Us</Heading>
6363
<Paragraph variant='body1'>
64-
To report malicious extensions, extensions with known vulnerabilities, or other urgent matters, connect with us
65-
at&nbsp;
66-
<Link color='secondary' underline='hover' href='mailto:openvsx@eclipse-foundation.org'>
67-
openvsx@eclipse-foundation.org
68-
</Link>
69-
. For non-urgent questions, including managing namespaces or publishing extensions, please visit our&nbsp;
64+
For non-urgent questions, including managing namespaces or publishing extensions, please visit our&nbsp;
7065
<Link color='secondary' underline='hover' href='https://github.com/EclipseFdn/open-vsx.org/wiki'>
7166
wiki
7267
</Link>

website/src/footer-content.tsx

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ const MainFooter = ({ isSmallDisplay, isLargeDisplay, expanded, toggleExpanded }
6262
{isSmallDisplay ? null : repositoryLink()}
6363
{isLargeDisplay ? (
6464
<Box display='flex'>
65-
<Box>{privacyPolicy()}</Box>
65+
<Box>{ossAccess()}</Box>
66+
<Box ml={itemSpacing}>{privacyPolicy()}</Box>
67+
<Box ml={itemSpacing}>{securityPolicy()}</Box>
6668
<Box ml={itemSpacing}>{termsOfUse()}</Box>
6769
<Box ml={itemSpacing}>{compliance()}</Box>
6870
<Box ml={itemSpacing}>{legalResources(false)}</Box>
@@ -102,7 +104,9 @@ const FooterContent: FunctionComponent<{ expanded: boolean }> = ({ expanded }) =
102104
return (
103105
<Box display='flex' flexDirection='column' alignItems='stretch'>
104106
<Box display='flex' flexDirection='column' alignItems='flex-end'>
107+
<Box mb={itemSpacing}>{ossAccess()}</Box>
105108
<Box mb={itemSpacing}>{privacyPolicy()}</Box>
109+
<Box mb={itemSpacing}>{securityPolicy()}</Box>
106110
<Box mb={itemSpacing}>{termsOfUse()}</Box>
107111
<Box mb={itemSpacing}>{compliance()}</Box>
108112
<Box mb={itemSpacing}>{legalResources(isSmallDisplay)}</Box>
@@ -135,12 +139,24 @@ const repositoryLink = () => (
135139
</Link>
136140
);
137141

142+
const ossAccess = () => (
143+
<Link href='https://managed.open-vsx.org/contact' sx={[styles.link, styles.legalText]}>
144+
OSS Access
145+
</Link>
146+
);
147+
138148
const privacyPolicy = () => (
139149
<Link href='https://www.eclipse.org/legal/privacy/' sx={[styles.link, styles.legalText]}>
140150
Privacy Policy
141151
</Link>
142152
);
143153

154+
const securityPolicy = () => (
155+
<Link href='/security/' sx={[styles.link, styles.legalText]}>
156+
Security Policy
157+
</Link>
158+
);
159+
144160
const termsOfUse = () => <LegalLink to='/terms-of-use'>Terms of Use</LegalLink>;
145161

146162
const compliance = () => (

website/src/menu-content.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ import PeopleAltIcon from '@mui/icons-material/PeopleAlt';
3333
import HubIcon from '@mui/icons-material/Hub';
3434
import AccountBoxIcon from '@mui/icons-material/AccountBox';
3535
import BusinessIcon from '@mui/icons-material/Business';
36+
import SecurityIcon from '@mui/icons-material/Security';
3637
import { UserSettingsRoutes } from 'openvsx-webui/lib/pages/user/user-settings-routes';
3738
import { MainContext } from 'openvsx-webui/lib/context';
3839
import {
@@ -90,6 +91,12 @@ export const MobileMenuContent: FunctionComponent = () => {
9091
Commercial Usage
9192
</MenuItemText>
9293
</MenuItem>
94+
<MenuItem component={Link} href='https://researcher-recognition.open-vsx.org'>
95+
<MenuItemText>
96+
<SecurityIcon sx={itemIcon} />
97+
Report a Vulnerability
98+
</MenuItemText>
99+
</MenuItem>
93100
<MenuItem component={Link} href='https://github.com/EclipseFdn/open-vsx.org/wiki'>
94101
<MenuItemText>
95102
<MenuBookIcon sx={itemIcon} />
@@ -176,6 +183,7 @@ export const DefaultMenuContent: FunctionComponent = () => {
176183
return (
177184
<>
178185
<MenuLink href='https://managed.open-vsx.org/'>Commercial Usage</MenuLink>
186+
<MenuLink href='https://researcher-recognition.open-vsx.org'>Report a Vulnerability</MenuLink>
179187
<MenuLink href='https://github.com/EclipseFdn/open-vsx.org/wiki'>Documentation</MenuLink>
180188
<MenuLink href='https://status.open-vsx.org/'>Status</MenuLink>
181189
<MenuTypography onClick={toggleWorkingGroupMenu} ref={workingGroupMenuEl}>

website/src/page-settings.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ export default function createPageSettings(
215215
);
216216
return (
217217
<Link
218-
href={`mailto:openvsx@eclipse-foundation.org?subject=Report%20Abuse%20-%20${extension.namespace}.${extension.name}&Body=${reportAbuseText}%0A%0A${extensionURL}`}
218+
href={`mailto:security@open-vsx.org?subject=Report%20Abuse%20-%20${extension.namespace}.${extension.name}&Body=${reportAbuseText}%0A%0A${extensionURL}`}
219219
variant='body2'
220220
color='secondary'
221221
underline='hover'

website/yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4838,7 +4838,7 @@ __metadata:
48384838
eslint: "npm:^9.39.0"
48394839
eslint-config-prettier: "npm:^10.1.8"
48404840
eslint-plugin-react: "npm:^7.37.0"
4841-
openvsx-webui: "npm:openvsx-webui@0.20.0"
4841+
openvsx-webui: "npm:openvsx-webui@0.20.1"
48424842
prettier: "npm:^3.8.1"
48434843
rollup-plugin-visualizer: "npm:^7.0.1"
48444844
typescript: "npm:^5.9.0"
@@ -4862,9 +4862,9 @@ __metadata:
48624862
languageName: node
48634863
linkType: hard
48644864

4865-
"openvsx-webui@npm:openvsx-webui@0.20.0":
4866-
version: 0.20.0
4867-
resolution: "openvsx-webui@npm:0.20.0"
4865+
"openvsx-webui@npm:openvsx-webui@0.20.1":
4866+
version: 0.20.1
4867+
resolution: "openvsx-webui@npm:0.20.1"
48684868
dependencies:
48694869
"@babel/core": "npm:^7.29.0"
48704870
"@emotion/react": "npm:^11.11.1"
@@ -4895,7 +4895,7 @@ __metadata:
48954895
react-infinite-scroller: "npm:^1.2.6"
48964896
react-router: "npm:^6.30.3"
48974897
react-router-dom: "npm:^6.30.3"
4898-
checksum: 10/baba402b9d0cc7f7c42978eff26ac9b1fae736e28fd15a354ddcaf83f13a3b501bf4325f72a1eebbb8f2e6fc67958dcae8c46ee5bbc00fa9c2bc326648631edc
4898+
checksum: 10/2d9c65ce3d986000863ab820b0ed6d7fc0215623712ab8e4f55c7f94344f71d3d11b25c742b014700a91b34c38d9a55f7b5a015c7b448b4b9d7d01ea381fb57e
48994899
languageName: node
49004900
linkType: hard
49014901

0 commit comments

Comments
 (0)