# Source Control Security & Egress

Connecting multiple Git forges and self-hosted CI servers requires strict network, credential, and sandbox boundaries. Every forge connection and CI run on membl enforces four core controls: **strict HTTPS + SSRF/DNS-rebinding protection**, **encrypted credential custody**, **automatic tenant egress allowlisting**, and **single-use sandbox teardown**.

<Cards>
  <Card title="Public Security Overview" href="/security">
    Summary for enterprise security questionnaires and reviews.
  </Card>

  <Card title="Multi-Forge CI Guide" href="/docs/multi-forge">
    All 7 supported forge families and setup paths.
  </Card>

  <Card title="Contact Engineering" href="/contact">
    Request an NDA, walkthrough, or vendor security review.
  </Card>
</Cards>

## 1. Strict HTTPS, SSRF & DNS-rebinding guards

Self-hosted forge instances (GitHub Enterprise Server, GitLab CE/EE, Gitea, Forgejo, Bitbucket Data Center, and Generic Git servers, when enabled) must be reachable over **HTTPS** (`https://` scheme required, plain HTTP rejected).

To prevent server-side request forgery (SSRF) and DNS-rebinding attacks, membl resolves and inspects target IP addresses on **every** DNS lookup and **every** HTTP redirect, rejecting connections to non-public address ranges:

* IPv4 loopback (`127.0.0.0/8`)
* IPv4 private RFC 1918 ranges (`10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`)
* Link-local & cloud metadata IMDS (`169.254.0.0/16`)
* CGNAT & overlay address space (`100.64.0.0/10`)
* IPv6 loopback, ULA, and link-local (`::1`, `fc00::/7`, `fe80::/10`)

## 2. Encrypted credential custody & 1Password `op://` import

* **Envelope encryption & Secrets Manager custody**: Forge OAuth tokens, personal access tokens, webhook secrets, and Ed25519 SSH deploy keys are encrypted using KMS and stored in AWS Secrets Manager / encrypted custody. Plaintext credentials are never stored in unencrypted database columns, read projections, or job workflow histories, and are never printed in application logs.
* **1Password `op://` references**: During setup in **Settings -> Connections -> Source Control**, teams can paste 1Password `op://` references directly instead of raw secret text.
* **Per-forge webhook signature verification**: Every incoming webhook endpoint (`/api/gitlab/webhook`, `/api/gitea/webhook`, `/api/forgejo/webhook`, `/api/bitbucket/webhook`, `/api/azdo/webhook`, and `/api/git/webhook/{connectionId}`) verifies its forge-specific HMAC signature or shared secret before queueing or dispatching a run.

## 3. Automatic workspace egress allowlisting

When a forge connection is verified (via OAuth or **Test Connection**), membl automatically adds that verified customer forge hostname to the workspace's egress allowlist (`egress_rules`). Isolated Linux x64 sandboxes can then clone repositories, fetch submodules, upload artifacts, and post commit or pull/merge request statuses back to your forge without exposing unrestricted egress.

## 4. Single-use sandboxes & repository-isolated caches

* **Zero source-code retention**: Repository source code and runtime secrets exist only inside the single-use Linux x64 sandbox while the job executes. Once the job finishes, the sandbox is destroyed immediately.
* **Repository-scoped cache layers**: On membl runners, shared dependency caches mount read-only, writes stay isolated per repository, and cache entries expire automatically after 7 days.
* **No model training**: Palmetto Interactive never trains AI or machine-learning models on your source code, build artifacts, or workflow logs.

## Need a security review or NDA?

Send your vendor security questionnaire or NDA request through the [contact form](/contact). An engineer at Palmetto Interactive answers directly.

