Configure Renovate - #1
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
shoemoney
pushed a commit
that referenced
this pull request
Jul 8, 2026
Sub-project A of the hardening arc. Extract pure logic into src/lib.js (vault, ipAllowed/ip2int, tokenMatches, safeStaticPath) so it can be unit-tested in isolation; server.js keeps the http/db/ws wiring and now guards listen()+poller behind an isMain check so tests can import it. 33 tests (node --test, no new deps): lib unit tests + black-box HTTP tests on a throwaway DB. Each of the 4 bugs below has a regression test that fails on the old logic and passes on the new: #1 static-file containment bypass — fp.startsWith(PUBLIC) with no path separator let a sibling dir (public-secret/) leak. Require boundary. #2 network gate spoofable — X-Forwarded-For was trusted from ANY client, so a direct caller could forge its source IP past AIGATE_ALLOW_CIDR. Now gated behind AIGATE_TRUST_PROXY=1 (secure by default). #3 auth compare could throw — string-length guard let timingSafeEqual throw on equal-strlen/diff-bytelen tokens → unhandledRejection/hang. tokenMatches guards on byte length and never throws. #4 ip2int accepted garbage — '999.1.1.1'/'abc' mapped to a number not null, weakening the CIDR gate. Now validates each octet 0..255. BEHAVIOR CHANGE: #2 is secure-by-default. Set AIGATE_TRUST_PROXY=1 when behind NPM so the gate/audit see the real client IP, not the proxy.
shoemoney
added a commit
that referenced
this pull request
Jul 18, 2026
- vaultOneKey helper (one home for the paste-mistake guards) now warns when a
pasted key doesn't match the provider's catalog prefix — the catalog's 'prefix'
data was previously unused; non-fatal, matches the existing warn philosophy. (F8)
- POST /api/keys/import: vault an array of {provider,key,label} in one call, one
result row per key so a bad entry doesn't sink the batch (VISION pain #1). (F11)
- drop now-unused isKnownProvider import.
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.
Welcome to Renovate! This is an onboarding PR to help you understand and configure settings before regular Pull Requests begin.
🚦 To activate Renovate, merge this Pull Request. To disable Renovate, simply close this Pull Request unmerged.
📚 See our Reading List for relevant documentation you may be interested in reading.
🔡 Do you want to change how Renovate upgrades your dependencies? Add your custom config to
renovate.jsonin this branch. Renovate will update the Pull Request description the next time it runs.Detected Package Files
docker-compose.yml(docker-compose)Dockerfile(dockerfile)package.json(npm)Configuration Summary
Based on the default config's presets, Renovate will:
fixfor dependencies andchorefor all others if semantic commits are in use.node_modules,bower_components,vendorand various test/tests (except for nuget) directories.What to Expect
With your current configuration, Renovate will create 1 Pull Request:
Update dependency ws to v8.21.1
renovate/ws-8.x-lockfilemain8.21.1❓ Got questions? Check out Renovate's Docs, particularly the Getting Started section.
If you need any further assistance then you can also request help here.
This PR was generated by Mend Renovate. View the repository job log.