Skip to content

Commit 46926fe

Browse files
committed
enable new rate limiting config
1 parent 1af53e5 commit 46926fe

File tree

4 files changed

+651
-9
lines changed

4 files changed

+651
-9
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
ARG SERVER_VERSION=d076903
2-
ARG SERVER_VERSION_STRING=v0.32.0-rc.1
1+
ARG SERVER_VERSION=rate-limiting
2+
ARG SERVER_VERSION_STRING=v0.32.0-rc.2
33

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

configuration/application.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ org:
102102
miscellaneous:
103103
allow-anonymous-data-usage: false
104104
bucket4j:
105-
enabled: true
105+
enabled: false
106106
cache-to-use: redis-cluster-jedis
107107
filters:
108108
- cache-name: buckets
@@ -228,6 +228,25 @@ ovsx:
228228
subject: 'Open VSX Access Tokens Revoked'
229229
template: 'revoked-access-tokens.html'
230230

231+
# tier-based rate limiting configuration
232+
rate-limit:
233+
enabled: true
234+
filters:
235+
- url: '/api/.*'
236+
http-response-headers:
237+
Access-Control-Allow-Origin: '*'
238+
Access-Control-Expose-Headers: X-Rate-Limit-Retry-After-Seconds, X-Rate-Limit-Remaining
239+
default-http-content-type: application/json
240+
default-http-response-body: >
241+
{
242+
"type": "https://open-vsx.org/probs/rate-limit-exceeded",
243+
"title": "Too Many Requests",
244+
"status": 429,
245+
"detail": "A request rate limit has been exceeded for your current usage tier. Open VSX enforces tier-based limits to ensure reliable service. If this is unexpected for your use case, please contact us.",
246+
"documentation": "https://github.com/EclipseFdn/open-vsx.org/wiki/Rate-Limiting",
247+
"contact": "infrastructure@eclipse-foundation.org"
248+
}
249+
231250
# General scanning support
232251
scanning:
233252
enabled: true

website/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"repository": "https://github.com/eclipse/open-vsx.org",
77
"license": "EPL-2.0",
88
"dependencies": {
9-
"openvsx-webui": "npm:openvsx-webui-test@0.18.0-dev.0"
9+
"openvsx-webui": "npm:openvsx-webui-test@0.18.0-dev.1"
1010
},
1111
"resolutions": {
1212
"qs": "^6.14.1"

0 commit comments

Comments
 (0)