Skip to content

Commit 591dcec

Browse files
committed
chore: reenable security scans and dynamic rate limiting again on staging
1 parent fca8cff commit 591dcec

File tree

1 file changed

+56
-56
lines changed

1 file changed

+56
-56
lines changed

configuration/application.yml

Lines changed: 56 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -104,60 +104,60 @@ org:
104104
miscellaneous:
105105
allow-anonymous-data-usage: false
106106
bucket4j:
107-
enabled: true
108-
cache-to-use: redis-cluster-jedis
109-
filters:
110-
- cache-name: buckets
111-
url: '/api/-/(namespace/create|publish)'
112-
http-response-headers:
113-
Access-Control-Allow-Origin: '*'
114-
Access-Control-Expose-Headers: X-Rate-Limit-Retry-After-Seconds, X-Rate-Limit-Remaining
115-
rate-limits:
116-
- cache-key: getParameter("token")
117-
bandwidths:
118-
- capacity: 15
119-
time: 1
120-
unit: seconds
121-
- cache-name: buckets
122-
url: '/vscode/asset/.*/.*/.*/Microsoft.VisualStudio.Services.Icons.Default'
123-
http-response-headers:
124-
Access-Control-Allow-Origin: '*'
125-
Access-Control-Expose-Headers: X-Rate-Limit-Retry-After-Seconds, X-Rate-Limit-Remaining
126-
rate-limits:
127-
- cache-key: '(getHeader("X-Forwarded-For")?: getRemoteAddr()).split(",")[0].trim()'
128-
bandwidths:
129-
- capacity: 75
130-
time: 1
131-
unit: seconds
132-
- cache-name: buckets
133-
url: '/vscode/(?!asset/.*/.*/.*/Microsoft.VisualStudio.Services.Icons.Default).*'
134-
http-response-headers:
135-
Access-Control-Allow-Origin: '*'
136-
Access-Control-Expose-Headers: X-Rate-Limit-Retry-After-Seconds, X-Rate-Limit-Remaining
137-
rate-limits:
138-
- cache-key: '(getHeader("X-Forwarded-For")?: getRemoteAddr()).split(",")[0].trim()'
139-
bandwidths:
140-
- capacity: 75
141-
time: 1
142-
unit: seconds
143-
- cache-name: buckets
144-
url: '/api/(?!(.*/.*/review(/delete)?)|(-/(namespace/create|publish))).*'
145-
http-response-headers:
146-
Access-Control-Allow-Origin: '*'
147-
Access-Control-Expose-Headers: X-Rate-Limit-Retry-After-Seconds, X-Rate-Limit-Remaining
148-
rate-limits:
149-
- execute-condition: getParameter("token") != null
150-
cache-key: getParameter("token")
151-
bandwidths:
152-
- capacity: 15
153-
time: 1
154-
unit: seconds
155-
- execute-condition: getParameter("token") == null
156-
cache-key: '(getHeader("X-Forwarded-For")?: getRemoteAddr()).split(",")[0].trim()'
157-
bandwidths:
158-
- capacity: 15
159-
time: 1
160-
unit: seconds
107+
enabled: false
108+
# cache-to-use: redis-cluster-jedis
109+
# filters:
110+
# - cache-name: buckets
111+
# url: '/api/-/(namespace/create|publish)'
112+
# http-response-headers:
113+
# Access-Control-Allow-Origin: '*'
114+
# Access-Control-Expose-Headers: X-Rate-Limit-Retry-After-Seconds, X-Rate-Limit-Remaining
115+
# rate-limits:
116+
# - cache-key: getParameter("token")
117+
# bandwidths:
118+
# - capacity: 15
119+
# time: 1
120+
# unit: seconds
121+
# - cache-name: buckets
122+
# url: '/vscode/asset/.*/.*/.*/Microsoft.VisualStudio.Services.Icons.Default'
123+
# http-response-headers:
124+
# Access-Control-Allow-Origin: '*'
125+
# Access-Control-Expose-Headers: X-Rate-Limit-Retry-After-Seconds, X-Rate-Limit-Remaining
126+
# rate-limits:
127+
# - cache-key: '(getHeader("X-Forwarded-For")?: getRemoteAddr()).split(",")[0].trim()'
128+
# bandwidths:
129+
# - capacity: 75
130+
# time: 1
131+
# unit: seconds
132+
# - cache-name: buckets
133+
# url: '/vscode/(?!asset/.*/.*/.*/Microsoft.VisualStudio.Services.Icons.Default).*'
134+
# http-response-headers:
135+
# Access-Control-Allow-Origin: '*'
136+
# Access-Control-Expose-Headers: X-Rate-Limit-Retry-After-Seconds, X-Rate-Limit-Remaining
137+
# rate-limits:
138+
# - cache-key: '(getHeader("X-Forwarded-For")?: getRemoteAddr()).split(",")[0].trim()'
139+
# bandwidths:
140+
# - capacity: 75
141+
# time: 1
142+
# unit: seconds
143+
# - cache-name: buckets
144+
# url: '/api/(?!(.*/.*/review(/delete)?)|(-/(namespace/create|publish))).*'
145+
# http-response-headers:
146+
# Access-Control-Allow-Origin: '*'
147+
# Access-Control-Expose-Headers: X-Rate-Limit-Retry-After-Seconds, X-Rate-Limit-Remaining
148+
# rate-limits:
149+
# - execute-condition: getParameter("token") != null
150+
# cache-key: getParameter("token")
151+
# bandwidths:
152+
# - capacity: 15
153+
# time: 1
154+
# unit: seconds
155+
# - execute-condition: getParameter("token") == null
156+
# cache-key: '(getHeader("X-Forwarded-For")?: getRemoteAddr()).split(",")[0].trim()'
157+
# bandwidths:
158+
# - capacity: 15
159+
# time: 1
160+
# unit: seconds
161161
ovsx:
162162
token-prefix: ovsxat_
163163
storage:
@@ -236,7 +236,7 @@ ovsx:
236236

237237
# tier-based rate limiting configuration
238238
rate-limit:
239-
enabled: false
239+
enabled: true
240240
ip-address-function: '(getHeader("X-Forwarded-For")?: getRemoteAddr()).split(",")[0].trim()'
241241
usage-stats:
242242
job-schedule: '*/30 * * * *'
@@ -258,7 +258,7 @@ ovsx:
258258
259259
# General scanning support
260260
scanning:
261-
enabled: false
261+
enabled: true
262262

263263
# Shared archive limits for all scanning checks (secret detection, blocklist, etc.)
264264
max-archive-size-bytes: 1073741824 # 1 GB total archive limit

0 commit comments

Comments
 (0)