This repository was archived by the owner on May 11, 2026. It is now read-only.
Repository navigation
Commit ece226d
committed
Remove telemetry, data exfiltration, and harden security
Phase 1 - Remove PostHog telemetry:
- Gut forge_tracker crate, replace with no-op stubs preserving API surface
- Remove PostHog HTTP collector, machine fingerprinting, email harvesting
- Remove posthog-rs and machineid-rs dependencies
- Remove POSTHOG_API_SECRET from CI workflows and forge_ci
- Keep local file-based logging (daily rolling), remove PostHogWriter
Phase 2 - Remove source code upload:
- No-op all gRPC methods in ForgeContextEngineRepository
- No-op ForgeGrpcClient (dummy channel, no connections)
- Clear default services_url in .forge.toml
- Handle empty services_url gracefully in ForgeInfra init
Phase 3 - Remove auto-update:
- Replace on_update() with no-op stub
- Remove update-informer dependency
- Remove auto-update config from .forge.toml
- Call sites in ui.rs unchanged (they call the no-op)
Phase 4 - Security hardening:
- Restrict default permissions to home dir + /tmp (was allow all)
- Redact Debug impl on all secret types (ApiKey, tokens, etc.)
- Add x-api-key to header sanitization
- Set chmod 600 on credential files after writing
- Filter env vars for MCP clients to safe whitelist1 parent 9510ab5 commit ece226d
29 files changed
Lines changed: 231 additions & 1803 deletions
File tree
- .github/workflows
- crates
- forge_ci/src/jobs
- forge_config
- forge_domain/src/auth
- forge_infra/src
- forge_main
- src
- forge_repo/src
- provider
- forge_services/src
- forge_tracker
- src
- client_id
- collect
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
199 | 198 | | |
200 | 199 | | |
201 | 200 | | |
| |||
290 | 289 | | |
291 | 290 | | |
292 | 291 | | |
293 | | - | |
294 | 292 | | |
295 | 293 | | |
296 | 294 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
110 | 109 | | |
111 | 110 | | |
112 | 111 | | |
| |||
0 commit comments