diff --git a/CHANGELOG.md b/CHANGELOG.md index c2d1c35..9fc1c91 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed +- Remove the arbitrary 200-file cap from WASM upload and inspect flows; rely on byte limits instead. ([#129]) - Make `scan --bundle-path` skip untrusted/verification-failing bundle candidates instead of aborting the full export run. ([#112]) - Improve scan summaries by adding `in file(s)` and live TTY progress updates for certificates/keys/files. ([#112]) - Send live scan progress updates to stderr so stdout remains clean for piped output. ([#112]) diff --git a/cmd/wasm/inspect.go b/cmd/wasm/inspect.go index 0a30c53..a0b86e1 100644 --- a/cmd/wasm/inspect.go +++ b/cmd/wasm/inspect.go @@ -25,9 +25,6 @@ func inspectFiles(_ js.Value, args []js.Value) any { filesArg := args[0] length := filesArg.Length() - if length > wasmMaxInputFiles { - return jsError(fmt.Sprintf("too many files: %d (max %d)", length, wasmMaxInputFiles)) - } var passwords []string if len(args) >= 2 && args[1].Type() == js.TypeString { diff --git a/cmd/wasm/main.go b/cmd/wasm/main.go index a8ca01e..4ff5cc3 100644 --- a/cmd/wasm/main.go +++ b/cmd/wasm/main.go @@ -20,8 +20,10 @@ import ( "github.com/sensiblebit/certkit/internal/certstore" ) +// Keep these as byte limits only. Do not add a file-count cap for WASM input: +// the browser app runs on the user's machine, and folder drops may +// legitimately contain thousands of small files. const ( - wasmMaxInputFiles = 200 wasmMaxInputFileBytes = 10 * 1024 * 1024 wasmMaxInputTotalBytes = 50 * 1024 * 1024 ) @@ -90,9 +92,6 @@ func addFiles(_ js.Value, args []js.Value) any { filesArg := args[0] length := filesArg.Length() - if length > wasmMaxInputFiles { - return jsError(fmt.Sprintf("too many files: %d (max %d)", length, wasmMaxInputFiles)) - } var passwords []string if len(args) >= 2 && args[1].Type() == js.TypeString { diff --git a/web/package-lock.json b/web/package-lock.json index 5c6f74f..737d253 100644 --- a/web/package-lock.json +++ b/web/package-lock.json @@ -25,9 +25,9 @@ } }, "node_modules/@cloudflare/workers-types": { - "version": "4.20260305.0", - "resolved": "https://registry.npmjs.org/@cloudflare/workers-types/-/workers-types-4.20260305.0.tgz", - "integrity": "sha512-sCgPFnQ03SVpC2OVW8wysONLZW/A8hlp9Mq2ckG/h1oId4kr9NawA6vUiOmOjCWRn2hIohejBYVQ+Vu20rCdKA==", + "version": "4.20260305.1", + "resolved": "https://registry.npmjs.org/@cloudflare/workers-types/-/workers-types-4.20260305.1.tgz", + "integrity": "sha512-835BZaIcgjuYIUqgOWJSpwQxFSJ8g/X1OCZFLO7bmirM6TGmVgIGwiGItBgkjUXXCPrYzJEldsJkuFuK7ePuMw==", "dev": true, "license": "MIT OR Apache-2.0" }, @@ -687,6 +687,9 @@ "arm" ], "dev": true, + "libc": [ + "glibc" + ], "license": "MIT", "optional": true, "os": [ @@ -701,6 +704,9 @@ "arm" ], "dev": true, + "libc": [ + "musl" + ], "license": "MIT", "optional": true, "os": [ @@ -715,6 +721,9 @@ "arm64" ], "dev": true, + "libc": [ + "glibc" + ], "license": "MIT", "optional": true, "os": [ @@ -729,6 +738,9 @@ "arm64" ], "dev": true, + "libc": [ + "musl" + ], "license": "MIT", "optional": true, "os": [ @@ -743,6 +755,9 @@ "loong64" ], "dev": true, + "libc": [ + "glibc" + ], "license": "MIT", "optional": true, "os": [ @@ -757,6 +772,9 @@ "loong64" ], "dev": true, + "libc": [ + "musl" + ], "license": "MIT", "optional": true, "os": [ @@ -771,6 +789,9 @@ "ppc64" ], "dev": true, + "libc": [ + "glibc" + ], "license": "MIT", "optional": true, "os": [ @@ -785,6 +806,9 @@ "ppc64" ], "dev": true, + "libc": [ + "musl" + ], "license": "MIT", "optional": true, "os": [ @@ -799,6 +823,9 @@ "riscv64" ], "dev": true, + "libc": [ + "glibc" + ], "license": "MIT", "optional": true, "os": [ @@ -813,6 +840,9 @@ "riscv64" ], "dev": true, + "libc": [ + "musl" + ], "license": "MIT", "optional": true, "os": [ @@ -827,6 +857,9 @@ "s390x" ], "dev": true, + "libc": [ + "glibc" + ], "license": "MIT", "optional": true, "os": [ @@ -841,6 +874,9 @@ "x64" ], "dev": true, + "libc": [ + "glibc" + ], "license": "MIT", "optional": true, "os": [ @@ -855,6 +891,9 @@ "x64" ], "dev": true, + "libc": [ + "musl" + ], "license": "MIT", "optional": true, "os": [