Repository navigation
Added
- In-Process JS Plugin Engine (
boa_engine) & One-Click WebUI Plugin Center (migrations/0004_js_plugins.sql,src/plugins/,ElleryHe/FeedCourier-Plugins):- Embedded a pure-Rust JavaScript sandbox (
boa_engine) running single-file ES moduleplugin.jsplugins (runtime: "js", Plugin API v1) directly inside the FeedCourier binary — zero Docker Compose sidecars, zero extra ports, and zero external runtimes — supporting custom delivery channels (kind: "channel",ChannelKind::Plugin), delivery-time render processors (kind: "processor",onRender), and post-delivery callbacks (onDelivered). - Exposed a hardened
globalThis.fchost API (fc.fetch,fc.sha256,fc.hmacSha256,fc.md5,fc.base64Encode,fc.base64Decode,fc.base64UrlEncode,fc.utf8ByteLength,fc.truncateUtf8Bytes,fc.htmlToText,fc.unixNow,fc.uuid) with zero filesystem/shell/env access.fc.fetchenforces a strict dual allowlist: cloud metadata literal IPs (169.254.169.254,169.254.170.2,100.100.100.200,fd00:ec2::254, including IPv4-mapped IPv6/NAT64 forms), metadata hostnames (metadata.google.internal,metadata.goog,instance-data), unspecified addresses (0.0.0.0,::), and HTTP 3xx redirects are unconditionally blocked across direct and proxied calls (direct and local-DNSsocks5://connections also validate resolved DNS IPs, while remote-DNShttp:///https:///socks5h://proxies enforce client-side hostname & literal-IP checks); only non-emptyformat: "uri"origins explicitly submitted by an administrator enter the private/LANadmin_uri_originsallowlist (schemadefaultvalues onformat: "uri"are only auto-filled/pre-filled when their host is a public domain declared inmeta.allowed_hostsand stay on the public SSRF path without private-origin bypass;validate()normalized_configcannot introduce or alterformat: "uri"origins); plugin-declaredmeta.allowed_hostsroute throughProtectedHttpClientwith connect-time DNS SSRF protection and fail-closeduse_proxysupport onChannelKind::Pluginaccounts. Enforced a global concurrency cap of 4 simultaneous JS executions, per-hook wall-clock deadlines with cancellation checked at everyfc.*host call (clampingfc.fetchtimeouts to remaining hook budget), and a 3-consecutive-timeout automatic circuit breaker counting only genuine hook deadline overruns (never slot-wait or shorter per-requestfc.fetchtimeoutMsexpirations;plugins.disabled_reasonsurfaced as an Auto-disabled alert banner in the WebUI). HTML returned byonRenderis always re-sanitized throughammonia, anddelivercheckpoints are capped at16 KiB. - Added persistent, at-least-once
on_deliveredevent dispatch (plugin_eventstable committed atomically inside the task delivery transaction, dispatched by a dedicated background worker with exponential backoff up to 5 attempts). - Added one-click Marketplace installation & version upgrades (
POST /api/v1/plugins/installwithdry_runpreview, SHA-256 checksum verification,allowed_hostssecurity badges, version changelogs, and409 Conflict/replace_customoverwrite protection for custom-uploaded plugins), custom single-file.jsupload (POST /api/v1/plugins/upload), source inspection (GET /api/v1/plugins/{id}/source), and safe uninstall (DELETE /api/v1/plugins/{id}with409 Conflict+?cascade=truereference guard) alongside fullChannelKind::Pluginsupport and typed schema-driven route/account/destination forms (SchemaFormFields). - Published the official
ntfyandBark(Telegram Compact Card-style summary layout with UTF-8 byte-budget truncation) single-file JS channel plugins inElleryHe/FeedCourier-Pluginswith automatednode --testCI checks and SHA-256 versioned index generation.
- Embedded a pure-Rust JavaScript sandbox (
- Unified Redacting Structured Logging & Isolated Log Storage (
src/logging/,src/config.rs):- Added a unified single-pass redacting
tracinglayer driving bothstdout(LOG_FORMAT=text|json) and bounded non-blocking async log storage (isolated<DATA_DIR>/logs.dbSQLite WAL database by default with 7-day / 100k-row retention, or optional ClickHouse HTTPJSONEachRowbackend viaLOG_STORE=clickhouse&LOG_CLICKHOUSE_*formattingDateTime64(3, 'UTC')tsstrings alongsidets_msepoch milliseconds), with structured keyword-search guardrails (2–128characters, default 24-hour lookback window when unbounded, and 5-second query timeout). - Automatically masks email addresses, sensitive field values (
token/password/secret/signature/api_key/authorization/cookie), URL query strings/userinfo, Telegram bot tokens, and chat IDs across stdout and stored logs, with structuredfeed_id/task_id/route_id/channel_id/destination_id/plugin_idinstrumentation across the full pipeline.
- Added a unified single-pass redacting
Changed
- Outbox Restart & Graceful Shutdown Hardening (
src/db/repo.rs,src/scheduler/mod.rs,src/main.rs):- Automatically reclaims any orphaned
deliveringoutbox leases immediately on startup (Database::reclaim_orphaned_deliveries) while preserving checkpoints and attempt counts, and checks the shutdown cancellation token between outbox tasks so in-flight deliveries finish cleanly without claiming new work (recommendedstop_grace_period: 30s).
- Automatically reclaims any orphaned
- Plugin Kernel Optimizations (
src/plugins/mod.rs,web/src/views/RoutesView.tsx,web/src/views/PluginsView.tsx):- Cached plugin enabled states and loaded JS plugin manifests/scripts in an in-memory
RwLockinvalidated on every mutation; added route-level processor execution ordering (RouteOptions.plugin_orderwith up/down arrows in the route editor), per-plugin 15son_rendertimeouts with non-strict error isolation, localizeddescription_i18nrendering, andmin_core/api_versionmarketplace compatibility checks.
- Cached plugin enabled states and loaded JS plugin manifests/scripts in an in-memory
- WebUI Outbox Table & MCP Settings Redesign (
web/src/views/TasksView.tsx,web/src/views/SettingsView.tsx):- Rebuilt the Outbox queue table with
table-fixed+<colgroup>(zero horizontal overflow at≥ lg, merged Status & Timing column, 2-line clamped Diagnostics with full hover tooltip, structuredDeliveryTaskDto.has_warningswarning badges, fixed Retry All Dead-Letter button state, icon action buttons, and vertical card layout on< lgviewports). - Compacted the System Settings MCP panel with a copyable Endpoint pill, single-row token issuance bar with segmented scope toggle and expandable public tool chips, compact token rows, and a tabbed client configuration reveal modal (Claude Desktop / Cursor / Generic JSON).
- Rebuilt the Outbox queue table with
What's Changed
Maintenance & Dependencies
- feat(release): v0.3.1 — In-Process JS Plugin Engine (boa_engine), Redacted Logging & Outbox/WebUI Hardening by @ElleryHe in #25
Full Changelog: v0.3.0...v0.3.1