beads/internal
Harry Miller 7ea14b23d2
security: harden remote URL validation at config parse time (#3210)
Add strict security validation for remote URLs and remote names to prevent
injection attacks when multi-remote support lands.

Changes:
- Add ValidateRemoteURL() with control character rejection, CLI flag
  injection prevention, scheme allowlist, and per-scheme structural
  validation (host/path requirements)
- Add ValidateRemoteName() aligned with existing peer-name policy
  (letter-start, alphanumeric + hyphen/underscore, max 64 chars)
- Add MatchesRemotePattern() and ValidateRemoteURLWithPatterns() for
  enterprise lockdown via federation.allowed-remote-patterns config
- Move config validation from simple IsRemoteURL() classifier to strict
  ValidateRemoteURL() security boundary
- Add defense-in-depth validation in AddCLIRemote/RemoveCLIRemote
- Add validation at clone entry points (cache.Ensure, bootstrap)
- Tighten SCP-style URL regex to exclude control characters in path
- Add comprehensive test coverage for null bytes, control chars,
  newline injection, CLI flag injection, scheme validation, structural
  validation, remote name edge cases, and pattern matching

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-13 09:58:50 -07:00
..
ado fix: recognize ado:NNNNN shorthand in IsExternalRef and ExtractIdentifier (#2966) 2026-04-02 19:20:30 -07:00
audit test(audit): prove concurrent-writer ID uniqueness invariant (#3164) 2026-04-10 21:52:11 -07:00
beads Follow up remaining runtime .beads fallbacks after GH#3124 (#3183) 2026-04-10 21:23:14 -07:00
compact fix(ci): get nightly full tests passing (#2835) 2026-03-26 09:52:03 -07:00
config security: harden remote URL validation at config parse time (#3210) 2026-04-13 09:58:50 -07:00
configfile Add credentials file support for Dolt server passwords (#2854) 2026-04-02 20:35:56 -07:00
debug chore: unexport 14 dead symbols across 8 packages 2026-02-07 09:24:22 -08:00
doltserver fix(doltserver): rotate dolt-server.log at startup to cap size (#3161) 2026-04-10 21:52:37 -07:00
formula fix: include convoy-type formulas in bd formula list text output 2026-03-30 06:45:14 -07:00
git feat: add --list and --doc flags to bd help for CLI doc generation (GH#2527) 2026-03-11 18:25:40 -07:00
github fix: recognize ado:NNNNN shorthand in IsExternalRef and ExtractIdentifier (#2966) 2026-04-02 19:20:30 -07:00
gitlab fix(gitlab): wire issue link dependencies into sync pull (GH#2645) (#3202) 2026-04-11 21:21:49 -07:00
hooks fix: increase TestRun_Async polling timeout to 10s (bd-ldi) 2026-02-28 23:11:46 -08:00
idgen fix(idgen): correct test vectors in hash_test.go 2025-12-19 18:13:56 -08:00
jira /{cmd,internal}: fix lint 2026-04-10 14:40:15 -07:00
linear fix: address PR review feedback 2026-03-30 09:15:55 -07:00
lockfile chore: remove daemon infrastructure (lockfile, activity signal) (bd-9u8zd) 2026-02-18 19:05:31 -08:00
molecules /{cmd,internal}: update global store to be interface 2026-03-17 13:26:17 -07:00
notion feat: reimplement Notion sync on REST data sources (fix-merge PR #2759) 2026-03-27 19:20:40 -07:00
query fix: allow colons in unquoted query identifier values 2026-03-14 05:02:22 +00:00
recipes Enforce .beads/ directory permissions at runtime 2026-03-30 09:15:49 -07:00
remotecache security: harden remote URL validation at config parse time (#3210) 2026-04-13 09:58:50 -07:00
routing Fix init leaving beads.role unset in edge cases (GH#2950) (#2964) 2026-04-01 17:00:41 -07:00
storage security: harden remote URL validation at config parse time (#3210) 2026-04-13 09:58:50 -07:00
telemetry feat: add SlotSet/SlotGet/SlotClear to Storage interface (#2870) 2026-04-02 19:25:18 -07:00
templates/agents fix(init): replace 'bd onboard' references with 'bd prime' in AGENTS.md (#2902) 2026-03-30 10:42:50 -07:00
testutil /internal/testutil/testdoltcommon.go: use latest dolt 2026-04-08 15:09:56 -07:00
timeparsing chore: unexport 14 dead symbols across 8 packages 2026-02-07 09:24:22 -08:00
tracker feat: add IssueIDs filter to SyncOptions for selective sync (#2957) 2026-04-05 22:24:47 -07:00
types fix: backward-compatible JSONL import for all pre-v1.0 formats (#3021) 2026-04-04 22:34:12 -07:00
ui Merge pull request #2814 from harry-miller-trimble/feat/tracker-hardening-and-core 2026-03-30 20:41:05 -07:00
utils cleanup: remove daemon infrastructure remnants (GH#2431) 2026-03-10 15:24:27 -07:00
validation refactor: remove gastown/Gas Town string references from beads code and docs (bd-1ue8) 2026-03-20 18:39:50 -07:00