Skip to content

[PR Preview] Phase 2 security review #2768

@piyalbasu

Description

@piyalbasu

Goal

Run a security review pass on Phase 2 work before the sandbox-backed previews ship broadly. Findings encoded as additional issues the same way Phase 1's review was.

Scope

  • Sandbox isolation model — verify logical separation (Kustomize nameSuffix) holds under the shared wallet-eng-dev namespace; namespace-quota safety; trust assumptions documented
  • freighter-config access controls — restricted to SDF; PR approval requirements; what data leaks if read-public
  • Fork PR gating across iOS Simulator + Android Emulator workflows — verify both Phase 1 mobile workflows apply the same author_association + fork-guard pattern as the extension workflow; verify the forbidden-triggers invariant comment block is present
  • Mobile build artifact secrets — what's baked into the unsigned iOS Simulator .app and the debug Android APK? WalletKit DEV keys, Sentry stubs, etc. should be stripped or stubbed like the extension preview build. (Note: no Apple Connect / Match credentials are involved in Phase 1/2 mobile workflows by design — that surface returns in Phase 3.)
  • Draft-release channel parity across repos — confirm the SDF-only audience boundary verified for stellar/freighter drafts also holds on stellar/freighter-mobile (same org, same model). Quick re-test with an SDF read-only collaborator + a non-SDF account to be sure.

Acceptance criteria

  • Review completed, findings written up in pr-preview-workflow-security-review-phase2.md (same shape as Phase 1's review file)
  • No P0 blockers for Phase 2 broad rollout
  • Action items encoded as additional issues with Fullstack PR Preview label
  • Design doc Security section updated to encode the Phase 2 findings as durable invariants

Approach

Use the same multi-agent review pattern as Phase 1 (trigger model / supply chain / secret leakage / distribution). Spawn 4 parallel agents on the Phase 2 changes once they're staged, before merging.

Dependencies

  • Should run while Phase 2 implementation is in progress (don't block Phase 2 start; review as work lands)

Reference

Fullstack PR Preview Flow design doc — § Security, § Subsequent reviews; pr-preview-workflow-security-review.md (Phase 1 review file as the template)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Fullstack PR PreviewWork tied to the Fullstack PR Preview Flow design doc

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions