Skip to content
This repository was archived by the owner on May 11, 2026. It is now read-only.

Commit ece226d

Browse files
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 whitelist
1 parent 9510ab5 commit ece226d

29 files changed

Lines changed: 231 additions & 1803 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,6 @@ jobs:
195195
cross-version: '0.2.5'
196196
env:
197197
RUSTFLAGS: ${{ env.RUSTFLAGS }}
198-
POSTHOG_API_SECRET: ${{secrets.POSTHOG_API_SECRET}}
199198
APP_VERSION: ${{ needs.draft_release.outputs.crate_release_name }}
200199
- name: Copy Binary
201200
run: cp ${{ matrix.binary_path }} ${{ matrix.binary_name }}
@@ -290,7 +289,6 @@ jobs:
290289
cross-version: '0.2.5'
291290
env:
292291
RUSTFLAGS: ${{ env.RUSTFLAGS }}
293-
POSTHOG_API_SECRET: ${{secrets.POSTHOG_API_SECRET}}
294292
APP_VERSION: ${{ needs.draft_release_pr.outputs.crate_release_name }}
295293
concurrency:
296294
group: ${{ github.workflow }}-${{ github.ref }}

‎.github/workflows/release.yml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ jobs:
106106
cross-version: '0.2.5'
107107
env:
108108
RUSTFLAGS: ${{ env.RUSTFLAGS }}
109-
POSTHOG_API_SECRET: ${{secrets.POSTHOG_API_SECRET}}
110109
APP_VERSION: ${{ github.event.release.tag_name }}
111110
- name: Copy Binary
112111
run: cp ${{ matrix.binary_path }} ${{ matrix.binary_name }}

0 commit comments

Comments
 (0)