Commit Graph
1528 Commits
Author SHA1 Message Date
BaaRai 21c678b8d1 Merge pull request #575 from 5P34R/fix/main-security-hardening
fix: custom-tool injection, SOCKS5 open proxy, multipart body cap, example IP
2026-11-26 23:55:22 +01:00
BaaRai c5c3ecf099 Merge main into fix/main-security-hardening (content already landed via #562) 2026-11-26 23:40:05 +01:00
Coff0xc 1c7733e12e fix(traffic): keep store directories out of host deletion
DeleteHostsExact built a directory path from every requested host. A name that sanitizes to _index, _blobs, _ca, or _delete_staging is the store itself, so the batch delete moved those directories out with the host trees. Index rows for the host are still removed.
2026-11-26 23:38:32 +01:00
BaaRai ad27d1d627 Merge pull request #562 from Coff0xc/fix/render-template
fix(server): substitute custom-tool placeholders once
2026-11-26 23:38:30 +01:00
BaaRai d1745dcffb Merge pull request #540 from Phantom-IN/perf/traffic-host-ts-index
perf(traffic): index exchanges on (host, ts)
2026-11-26 23:38:28 +01:00
BaaRai acc383c066 Merge pull request #543 from Phantom-IN/perf/traffic-async-fts-index
perf(traffic): write the full-text index off the request path
2026-11-26 23:37:26 +01:00
BaaRai ee53ebf36a Revert "Merge pull request #556 from Coff0xc/fix/traffic-host-reserved"
This reverts commit 51d17fef8a, reversing
changes made to 00387bf8a7.
2026-11-26 23:36:38 +01:00
BaaRai 51d17fef8a Merge pull request #556 from Coff0xc/fix/traffic-host-reserved
fix(traffic): keep store directories out of host deletion
2026-11-26 23:34:38 +01:00
BaaRai aadd77ff2d Merge main into fix/render-template (resolve CHANGELOG.md) 2026-11-26 23:24:38 +01:00
BaaRai 1b876de687 synthetic main: +#575 2026-11-26 23:24:38 +01:00
BaaRai ed9ae6e84a synthetic main: +#556 2026-11-26 23:24:36 +01:00
BaaRai e47776f1af Merge main into fix/traffic-host-reserved (resolve CHANGELOG.md) 2026-11-26 23:24:34 +01:00
BaaRai a753c4d0d0 synthetic main: +#540 2026-11-26 23:24:33 +01:00
BaaRai c784e23eca Merge main into perf/traffic-host-ts-index (resolve CHANGELOG.md) 2026-11-26 23:24:31 +01:00
BaaRai 20e5d937c3 synthetic main: +#543 2026-11-26 23:24:31 +01:00
BaaRai 6fa104933b Merge main into perf/traffic-async-fts-index (resolve CHANGELOG.md) 2026-11-26 23:24:29 +01:00
BaaRai 00387bf8a7 Merge pull request #418 from ldevbr/contrib/egress-allowlist
feat: optional DNS-driven egress allowlist (separate compose file)
2026-11-26 23:21:47 +01:00
BaaRai 2c363a8e9d Merge pull request #496 from Coff0xc/fix/extension-request-cap
fix(extension): bound in-flight capture requests
2026-11-26 23:21:42 +01:00
BaaRai 16b9802ee7 Merge main into fix/extension-request-cap (resolve CHANGELOG.md) 2026-11-26 23:08:02 +01:00
BaaRai bcfcdc7c11 Merge main into contrib/egress-allowlist (resolve CHANGELOG.md) 2026-11-26 23:07:44 +01:00
BaaRai 4a520fab8b chore(dependabot): also ignore minor bumps for the python and golang images 2026-11-26 23:06:38 +01:00
BaaRai ead4773a5d chore(dependabot): ignore major bumps for the node, python and golang images 2026-11-26 22:42:41 +01:00
BaaRai 3983f14116 Merge pull request #541 from Phantom-IN/feat/llm-profile-prices
feat(llm): set profile prices in the settings dialog
2026-11-26 22:40:38 +01:00
BaaRai a8d0538051 Merge remote-tracking branch 'origin/main' into pr541
# Conflicts:
#	web/src/i18n/locales/tr.json
#	web/src/i18n/locales/zh-CN.json
2026-11-26 22:26:20 +01:00
BaaRai 36e1b1a980 Merge pull request #582 from chuenchen309/fix/redact-unparseable-dsn
fix(config): mask passwords in unparseable DSN URLs
2026-11-26 22:25:34 +01:00
BaaRai 0b1bcfb25a Merge pull request #547 from sisantaChhatoi/refactor/shared-formatters
refactor(web): share display formatters and HTTP status colours
2026-11-26 22:25:27 +01:00
BaaRai 51a0f17f45 Merge pull request #500 from YunzhouLi-hub/fix/noise-status-unavailable
fix(web): distinguish unavailable and stale noise status
2026-11-26 22:25:16 +01:00
BaaRai 7766898ce6 Merge pull request #456 from Shiv9993/feat/chat-bridge-core
feat(chatbridge): inbound chat bridge core with a Telegram long-poll transport (#5, part 1 of 3)
2026-11-26 22:25:11 +01:00
BaaRai 3a24d1d425 Merge pull request #533 from brixtonpham/chore/slog-agent
chore: migrate log.Printf to log/slog in agent and cmd
2026-11-26 22:25:05 +01:00
BaaRai 0768c50a5e Merge pull request #523 from rahulremany/chore/slog-llmpool-llmrec-intercept-db
chore: migrate log.Printf to log/slog in llmpool, llmrec, intercept and db
2026-11-26 22:25:00 +01:00
BaaRai 310211626e Merge pull request #564 from chaitanya0305/fix/traffic-search-default-port
fix(traffic): match default-port captures in traffic_search
2026-11-26 22:24:49 +01:00
BaaRai 1dc2211de1 Merge pull request #566 from chaitanya0305/fix/traffic-index-compressed
fix(traffic): index and match the decoded text of compressed responses
2026-11-26 22:24:44 +01:00
BaaRai a98d01012f Merge pull request #568 from chaitanya0305/fix/asset-dsl-exclude-null
fix(db): keep assets without the field in asset DSL != exclusions
2026-11-26 22:24:38 +01:00
BaaRai 2e956051a7 Merge pull request #570 from chaitanya0305/fix/scope-expansion-company
fix(db): match declared company domains when flagging scope expansion
2026-11-26 22:24:33 +01:00
BaaRai 9cdd6b7172 Merge pull request #572 from chaitanya0305/fix/report-task-asset-counts
fix(server): count only the task's assets in the task report
2026-11-26 22:24:24 +01:00
BaaRai ce74796927 Merge pull request #583 from BaaRai/fix/544-orchestrator-tools
fix(agent): keep Auto and MainAgent on orchestration tools, not Bash/WebFetch
2026-11-26 21:49:11 +01:00
BaaRai 1d949d5359 Merge pull request #561 from chaitanya0305/fix/telegram-digest-pack
fix(notify): pack Telegram digests by their escaped text
2026-11-26 21:45:00 +01:00
BaaRai 19fefb4c4d Merge pull request #538 from Phantom-IN/fix/conntest-no-background-tools
fix(agent): send no tools with the LLM connection test
2026-11-26 21:44:12 +01:00
BaaRai c203af2f5c fix(agent): keep Auto and MainAgent on orchestration tools, not Bash/WebFetch
Fixes #544
2026-11-26 21:35:20 +01:00
chuenchen309 ec8c6a16cf fix(config): mask passwords in unparseable DSN URLs
Redact only masked URL userinfo when url.Parse succeeded. A password
with an unencoded # / ? or % fails to parse, so the startup config
snapshot and the ping error logged it in full.
2026-11-27 04:14:25 +08:00
Phantom-IN a9b692f750 fix(llm): keep stored prices when a profile save omits them
Every save rewrites all four price columns, so an API client that sent
the profile without price fields reset them to 0. Decode the prices as
*float64 and keep the stored value for any that are missing.
2026-11-27 00:54:34 +05:30
Phantom-IN dbfaf82d1a docs(changelog): scope the (host, ts) index entry
The traffic page's list goes through Page(), which this index does not
help. Also note the one-time index build on the first start.
2026-11-27 00:51:50 +05:30
Phantom-IN 8090668aa2 perf(traffic): keep queued index entries across a crash
Review follow-up for the background indexer.

The queue held index text in memory only, so a kill or crash left committed
exchanges that body search never found, and Close drained every queued body
under wmu, which could run past a container stop timeout.

The text now goes into ex_fts_pending in the same transaction as the
exchange. The worker moves one entry into ex_fts and deletes its pending row
in one transaction; Open queues whatever is left. Jobs carry only rowid and
id, so memory no longer grows with body size, and Close stops after the
current entry. wait() gives up after 30 s so a search during a large
post-crash backlog still returns.

Also: TestReclaimMergesFTSTombstones waits for the indexer before deleting,
so it creates tombstones again; recordViews' comment describes the new
flow; the CHANGELOG no longer claims the gain holds under a burst.
2026-11-27 00:51:39 +05:30
shivandkrad b6ec42f15a fix(chatbridge): address review notes on the bridge core
- Require https for base_url. The bot token travels in the URL path and
  the responses are the updates the bridge acts on, so plain http is
  accepted only with ARTEX_NOTIFY_ALLOW_LOCAL=1, for a local test server.
- Cut replies by UTF-16 code units, which is how Telegram counts its 4096
  limit, so emoji-heavy text is no longer rejected. A cut never splits a
  character.
- Cap a server-sent retry_after at the backoff ceiling (1 minute).
- Pause one second after an empty poll, so a self-hosted Bot API that
  ignores the long-poll timeout cannot spin the loop.
- When the refused-chat memory is full, start over instead of muting
  every new chat, which also muted the operator's own chat. Saving the
  configuration of the same bot keeps the memory.
- Fix two stale comments that said an empty allowlist keeps the bridge
  off (migration 0015 is unreleased, so editing its comment is safe).

Co-authored-by: krad <222954346+dar1k0@users.noreply.github.com>
2026-11-26 22:24:28 +05:30
Brixton Pham d880eb289d chore: keep raw config snapshot JSON, multiline panic stack, and isolated slog test 2026-11-26 20:42:19 +07:00
sisantaChhatoiandClaude Opus 5.5 6bcf46de52 refactor(web): keep token precision in formatTokens; restore UserRow comment
Review follow-up:
- formatTokens keeps one decimal and drops a trailing ".0" instead of
  dropping the decimal from 10k up, so dashboard axis ticks keep their
  .5 steps (12.5M, not 13M) and tooltips show 123.5k, not 123k. From
  999,950 it switches to "M" so values never read "1000k".
- transcript.tsx: the UserRow doc comment sat above fmtBytes on main and
  was removed with it; it is back above UserRow.
- src/lib/format.test.mjs covers the shared formatters under plain
  `node --test` (the "@/i18n" import is stubbed with a fixed locale).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 18:52:18 +05:30
Chaitanya Deshpande c1a8025aaf fix(traffic): decode compressed bodies outside the write lock
recordViews decoded gzip/deflate/br bodies (up to maxIndexBody each)
while holding wmu, so concurrent proxied responses waited on the
decode. indexBody is pure, so compute the decoded index text before
taking the lock and apply it after spill.

Also keep the text decoded before the cut when a compressed stream is
truncated (io.ErrUnexpectedEOF) instead of dropping it, and skip
decoding when the Content-Type is already binary, since that text is
never indexed.
2026-11-26 18:50:08 +05:30
5P34R 4d8e752c47 docs(changelog): record the main-branch security fixes 2026-11-26 18:37:28 +05:30
5P34R 7fbed0fe7c fix(traffic): use a documentation address in the traffic_search host example
The host filter description showed a real routable IP (107.172.96.177) to
the model as its example. Use 192.0.2.10 from TEST-NET-1 (RFC 5737) so the
example cannot prime the agent toward a third-party host.
2026-11-26 18:37:18 +05:30
5P34R f19b67c3c3 fix(server): cap request bodies that claim a multipart type
limitRequestBody skipped every request with a multipart Content-Type, so
any handler decoding JSON straight from r.Body (about 30 of them) read an
unbounded body when the client simply labelled the request multipart.
Multipart bodies now get an upload-sized cap (the largest limit an upload
handler sets); upload handlers keep their own tighter limits and messages.
2026-11-26 18:37:14 +05:30