GitNexus/gitnexus/src/core/auto-sync
Gergő Magyar e137daf63b
fix(auto-sync): allow self-hosted remotes via allowed_hosts (#3391)
* fix(auto-sync): allow self-hosted remotes via allowed_hosts

Auto-sync skipped any remote whose host was not github.com, gitlab.com, or gitee.com. Operators can now name exact extra DNS hosts in watch_config.yml without opening the default set.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Address PR review feedback (#3391)

- Dial auto-sync DNS names as absolute hosts and store that URL so a later fetch cannot follow a search domain.
- Reject ambiguous numeric host spellings; an exact dotted IPv4 the operator listed stays opt-in.
- Document allowed_hosts on the root auto-sync contract.

Note: pre-existing failure in unit tests that require dist/cli/index.js and parse-worker.js (this worktree has no build); not addressed by this PR.
Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Gergo Magyar <gergomagyar0@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-27 10:18:57 +01:00
..
analysis-worker-launch.ts feat(auto-sync): preserve PDG indexes across updates (#3290) 2026-09-16 20:12:45 +01:00
config.ts fix(auto-sync): allow self-hosted remotes via allowed_hosts (#3391) 2026-09-27 10:18:57 +01:00
index.ts fix(auto-sync): HTTPS remotes, OpenSSH image, and rc embeddings (#3378) 2026-09-25 19:42:26 +01:00
path-security.ts feat: add gitnexus auto-sync for scheduled remote clone and analyze (#2493) 2026-09-02 19:40:18 +01:00
repo.ts fix(auto-sync): allow self-hosted remotes via allowed_hosts (#3391) 2026-09-27 10:18:57 +01:00
runner.ts fix(auto-sync): allow self-hosted remotes via allowed_hosts (#3391) 2026-09-27 10:18:57 +01:00
starter.ts feat(auto-sync): preserve PDG indexes across updates (#3290) 2026-09-16 20:12:45 +01:00
state.ts feat(auto-sync): preserve PDG indexes across updates (#3290) 2026-09-16 20:12:45 +01:00