Skip to content

Commit 9a28889

Browse files
committed
update to latest version of security improvements
1 parent 4cd7c90 commit 9a28889

File tree

3 files changed

+41
-36
lines changed

3 files changed

+41
-36
lines changed

configuration/application.yml

Lines changed: 35 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -234,36 +234,41 @@ ovsx:
234234
scanning:
235235
enabled: true
236236

237-
similarity:
238-
enabled: true
239-
enforced: true
240-
levenshtein-threshold: 0.2 # Min 20% name difference allowed
241-
skip-verified-publishers: true # Skip checks for verified publishers
242-
check-against-verified-only: true # Compare only against verified extensions
243-
exclude-owner-namespaces: true # Skip checks against extensions in namespaces owned by the same publisher
244-
new-extensions-only: false # Skip checks for extension with existing versions, applies similarity checks only to new extensions
245-
246-
secret-scanning:
247-
enabled: true
248-
rules-path: 'classpath:scanning/secret-scanning-custom-rules.yaml'
249-
250-
auto-generate-rules: true
251-
force-regenerate-rules: false
252-
generated-rules-path: '/tmp/secret-scanning-rules-gitleaks.yaml'
237+
# Shared archive limits for all scanning checks (secret detection, blocklist, etc.)
238+
max-archive-size-bytes: 1073741824 # 1 GB total archive limit
239+
max-single-file-bytes: 268435456 # 256 MB per-file limit
240+
max-entry-count: 100000 # Max ZIP entries to process
241+
blocklist-check:
242+
enabled: true
243+
enforced: false
253244

254-
# File & Archive Limits
255-
max-file-size-bytes: 5242880 # 5 MB per file
256-
max-entry-count: 50000 # Max entries in archive
257-
max-total-uncompressed-bytes: 104857600 # 100 MB total
258-
max-findings: 200 # Stop after N secrets
245+
similarity:
246+
enabled: true
247+
enforced: false
248+
similarity-threshold: 0.2 # Min 20% name difference allowed
249+
skip-if-publisher-verified: false # Do not skip checks for verified publishers
250+
only-protect-verified-names: false
251+
allow-similarity-to-own-names: true # Skip checks against extensions in namespaces owned by the same publisher
252+
only-check-new-extensions: true # Skip checks for extension with existing versions, applies similarity checks only to new extensions
259253

260-
# Line Processing
261-
inline-suppressions: 'secret-scanner:ignore,gitleaks:allow,nosecret,@suppress-secret'
262-
max-line-length: 10000
263-
long-line-no-space-threshold: 1000
264-
keyword-context-chars: 100
265-
log-allowlisted-value-preview-length: 10
254+
secret-detection:
255+
enabled: true
256+
enforced: false
257+
rules-path: 'classpath:scanning/secret-detection-custom-rules.yaml'
258+
suppression-markers: 'secret-detector:ignore,gitleaks:allow,nosecret,@suppress-secret'
259+
gitleaks:
260+
auto-fetch: true
261+
force-refresh: true
262+
output-path: '/tmp/secret-detection-rules-gitleaks.yaml'
263+
scheduled-refresh: true
264+
refresh-cron: '0 0 3 * * *' # Daily at 3 AM
265+
skip-rule-ids: 'generic-api-key' # Rule IDs that produce too many false positives
266+
max-findings: 200
267+
minified-line-threshold: 10000
268+
long-line-no-space-threshold: 1000
269+
regex-context-chars: 100
270+
debug-preview-chars: 10
266271

267-
# Timeout & Performance
268-
timeout-seconds: 5
269-
timeout-check-every-n-lines: 100
272+
# Timeout & Performance
273+
timeout-seconds: 10
274+
timeout-check-interval: 100

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-security.2"
9+
"openvsx-webui": "npm:openvsx-webui-test@0.18.0-security.3"
1010
},
1111
"resolutions": {
1212
"qs": "^6.14.1"

website/yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2435,7 +2435,7 @@ __metadata:
24352435
"@types/react-router-dom": "npm:^5.3.3"
24362436
css-loader: "npm:^6.8.1"
24372437
express: "npm:^4.21.2"
2438-
openvsx-webui: "npm:openvsx-webui-test@0.18.0-security.2"
2438+
openvsx-webui: "npm:openvsx-webui-test@0.18.0-security.3"
24392439
source-map-loader: "npm:^4.0.1"
24402440
style-loader: "npm:^3.3.3"
24412441
typescript: "npm:~5.1.6"
@@ -2454,9 +2454,9 @@ __metadata:
24542454
languageName: node
24552455
linkType: hard
24562456

2457-
"openvsx-webui@npm:openvsx-webui-test@0.18.0-security.2":
2458-
version: 0.18.0-security.2
2459-
resolution: "openvsx-webui-test@npm:0.18.0-security.2"
2457+
"openvsx-webui@npm:openvsx-webui-test@0.18.0-security.3":
2458+
version: 0.18.0-security.3
2459+
resolution: "openvsx-webui-test@npm:0.18.0-security.3"
24602460
dependencies:
24612461
"@emotion/react": "npm:^11.11.1"
24622462
"@emotion/styled": "npm:^11.11.0"
@@ -2480,7 +2480,7 @@ __metadata:
24802480
react-infinite-scroller: "npm:^1.2.6"
24812481
react-router: "npm:^6.14.2"
24822482
react-router-dom: "npm:^6.14.1"
2483-
checksum: 10/64e44619d6531390efa6b3cfeabf630b687bc245fe403c7e24f3664525d85dfb301cd5abf33a740d493430eec80200dafff72c04ff59dbb0343851fc737d35ea
2483+
checksum: 10/4f5d73f5c19b8cb2d7c8ac29f8fac3d189e03b1f08b345fa142e1415a1190e0f077a14e6fdf43979b054677747fa84d21809f9171347d7fcae2851174c4092b3
24842484
languageName: node
24852485
linkType: hard
24862486

0 commit comments

Comments
 (0)