Repository navigation
Conversation
- client: capability probing, version guard rails, safe delete defaults - mcp: dual credentials, passthrough auth, bounded deletes, total-range guards - middleware/scenarios: IPv4-mapped handling, XFF cache isolation, MaxMind options - ci/docs: live LAPI matrix, compatibility matrix, release/docs fixes
- refactor cognitive-complexity hotspots and nested ternaries - use String.raw, Object.hasOwn, node:http and readonly members - drop unnecessary async from collectProbes, simplify secret file trimming - group GITHUB_OUTPUT writes in the live matrix
- restore truthy narrow-target semantics and add empty-string test - remove await on synchronous collectProbes and sync the test mock - cover multi-newline _FILE secrets
- add .github/scripts/lapi-matrix/versions.txt as the single source - workflow reads it (PR uses first/last, explicit dispatch still overrides) - local script reads the same file (VERSIONS_FILE override), docs point to it
- keep the reduced pull_request matrix and the full workflow_dispatch matrix - update api-compatibility docs
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



What changed
lapiVersion,detectCapabilities,strictCapabilities), typedFeatureNotSupportedError/LapiVersionUnknownError, safecontains:falsedefaults forip/range, per-stream timers,stop()/login hardening, stricterparseExpiration,Decision.endAtfromuntil.confirm=trueguards foralland total ranges (/0, includingscope=Range+ whitespace), allowlist-over-denylist precedence,simulatedcoherence + old-LAPI fallback,_FILEsecrets and credential redaction./96+, IPv6subnetLevelmapping (/128,/120,/112), MaxMindOpenOpts+loaded, safer live checks, HTTP URL parsing guard.docs/api-compatibility.md, live LAPI matrix workflow/script, release/docs corrections (SBOM, pnpm pinned viapackageManager), examples and README updates.Affected packages
crowdsec-clientcrowdsec-http-middlewarecrowdsec-client-scenarioscrowdsec-mcpChecklist
pnpm -F <package> test)pnpm -F <package> lint)package.jsonmetadata updated if the public API changedVerification
pnpm typecheck-> OKpnpm -F crowdsec-client test-> 238 passed / 17 skippedpnpm -F crowdsec-mcp test-> 282 passed / 11 skippedpnpm -F crowdsec-http-middleware test-> 53 passedpnpm -F crowdsec-client-scenarios test-> 19 passedpnpm -r build-> OKpnpm audit --prod --audit-level=high-> no known vulnerabilitiespnpm format:check-> OKSecurity notes
all=trueand total ranges (/0), includingscope=Range+ value._FILEsecrets are supported and URL userinfo is masked.Related issues
None.