Skip to content

Harden gateway and iOS credential storage - #22

Merged
codepilotios merged 42 commits into
mainfrom
agent/security-scan-2026-07-17
Jul 19, 2026
Merged

codepilotios merged 42 commits into
mainfrom
agent/security-scan-2026-07-17

Conversation

@codepilotios

@codepilotios codepilotios commented Jul 17, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Bound gateway request bodies and constrained localhost capability sessions to their selected loopback origin.
  • Made remote-control routes fail closed until trusted-device lease enforcement is wired through the public gateway.
  • Restricted file previews to configured CodePilot roots, removed wildcard CORS, and enforced owner-only permissions for tokens, uploads, environment files, and generated launch agents.
  • Migrated the iOS gateway bearer token from preferences into a device-only Keychain item, with tested legacy migration.
  • Removed APNs authorization JWTs and device push tokens from process arguments.
  • Kept sensitive repository-history remediation details in the private maintainer escalation.

Verification

  • 127 Python gateway and remote-desktop tests
  • 78 Swift package tests
  • 38 signed iOS simulator tests
  • iOS simulator build
  • Agent guard and scheduler script tests
  • Fastlane syntax check
  • Privacy audit and staged-sensitive-pattern scan
  • Git diff check

Release note

  • OTA/TestFlight distribution and beta gateway-token rotation remain maintainer actions. This draft does not publish a build or mutate non-GitHub systems.

@codepilotios codepilotios changed the title Constrain gateway capability surfaces Harden gateway and iOS credential storage Jul 17, 2026
@codepilotios
codepilotios force-pushed the agent/security-scan-2026-07-17 branch 2 times, most recently from 081194c to 6570326 Compare July 19, 2026 02:24
@codepilotios
codepilotios force-pushed the agent/security-scan-2026-07-17 branch from b10dd2b to 31de5d6 Compare July 19, 2026 02:30
@codepilotios
codepilotios marked this pull request as ready for review July 19, 2026 02:35
@codepilotios
codepilotios merged commit 8e401e9 into main Jul 19, 2026
1 check passed
codepilotios added a commit that referenced this pull request Jul 19, 2026
Merged after owner approval and passing CI.
@codepilotios
codepilotios deleted the agent/security-scan-2026-07-17 branch July 19, 2026 02:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant