Skip to content

Scrub infrastructure detail from issues and PR bodies before this repo goes public #101

Closed

Description

@aterga

Is your feature request related to a problem?

Raised as a disclosure review of #89, #81 and #84. Filing the residual as its own item, because the two findings as stated do not survive contact with the current facts, and what is left is a pre-publication hygiene task rather than an incident.

Visibility, established rather than assumed. The repository is private: true but visibility: internal — readable by every member of the DFINITY enterprise, not only the @dfinity/identity code owners. It is Apache-2.0 licensed and .github/CODEOWNERS references a "DFINITY publishing policy", so publication looks intended. Nothing here is on the public internet today; the concern is that when the repo flips to public, the entire issue and PR history goes with it.

Triage of the two findings

1. "#89 names the production hostname; origin IP publicly resolvable." Not a disclosure this repo causes today. The hostname is the service endpoint — clients have to resolve it — and a public DNS query returns the origin address to anyone on the internet. The DNS record is the exposure; #89 documents it, and #89 is in fact the issue that fixes it, by putting Cloudflare in front so the origin address stops being visible.

One correction to that reasoning, and the reason the address itself is genericised in this body rather than left in place: "already public via DNS" holds only for as long as DNS still answers with it. Once #89 lands, the origin address becomes precisely the thing Cloudflare exists to hide, and a public issue quoting it would be a durable way to bypass the proxy. Public-by-DNS is revocable; public-in-an-issue is not.

2. "#81/#84 disclose subnet/VPC IDs and confirm SSH open to the world on a shared security group." Two claims, different verdicts.

  • SSH open to the world — no longer true. Closed on both hosts and verified from outside the VPN; Narrow inbound SSH to the private range and delete the world-facing rule #91's body records the mitigation and how it was verified. Both hosts now time out on 22, where staging previously returned Permission denied (publickey). This was the serious half of the finding and it is remediated. What remains true is that sg-0683705ed8ebb8bff is shared across both hosts, which matters operationally (one edit hits both environments) but no longer implies internet-facing SSH.
  • Subnet / VPC IDs — low value. AWS resource identifiers (vpc-, subnet-, sg-, eni-, i-) are opaque and account-scoped; they grant nothing without credentials in that account, and AWS treats them as non-sensitive. Kept deliberately, so the operational reasoning stays checkable by whoever inherits it.

What actually wants scrubbing before publication

Ranked by value to someone who already has a foothold, which is the realistic threat model — none of this helps an outsider:

  1. Internal IP addresses and network topology. The private addresses of the production host, the staging host, the ship-runner pods and the decommissioned instances, plus the subnet and route-table structure. These are lateral-movement targets, and the most useful thing in the set.
  2. Statements that are now false. Any text asserting SSH is open to the world. Stale and an invitation to probe. This includes Narrow inbound SSH to the private range and delete the world-facing rule #91's body, Deploy production on release-* tags #81's commit messages, and deploy/native/README.md's "Narrowing inbound SSH" section.
  3. Which security groups span which hosts. Blast-radius information.
  4. The decommissioned host's address, used as the DEPLOY_HOST documentation example in deploy-native.yml and deploy-release.yml. Already worth removing on its own merits: it was mistaken for live configuration during an incident and sent an infra engineer chasing a network fault for half an hour.

Approach

Prefer prose that keeps the reasoning over redaction that destroys it. A private address becomes "the production host's private address"; a subnet identifier stays as-is where an operational point depends on it, since account-scoped identifiers are not the sensitive part. The arguments in #91, #89, #81 and #84 took real work to establish and are the main defence against someone re-deriving a wrong conclusion later — deleting them to hide identifiers that were never secret would be a bad trade.

Explicitly a judgement call for a human, not something to do unilaterally: editing merged PR bodies and commit messages. Commit messages cannot be changed without a history rewrite, which is not worth it. So the realistic scope is issue bodies, PR bodies, and files in the tree, with the commit history accepted as-is.

Additional context


This body was itself edited before publication — it had enumerated the very addresses it was filed to remove. Internal IP addresses and the production origin address are replaced with prose; AWS resource identifiers and every argument are kept, per the approach above. No claim was changed.

Activity

  1. added
    enhancement
    on Jul 29, 2026
  2. aterga commented on Jul 29, 2026

    @aterga
    CollaboratorAuthor

    Done — closing

    Tree. #102 (decommissioned host address dropped as the DEPLOY_HOST example), #104 (the "Narrowing inbound SSH" section rewritten — it described a state that no longer exists), #105 (cluster names, runner group and ops repo dropped from the staging runner comment). Verified on merged main: no internal IPs, no vpc-/subnet-/sg-/eni-/i- identifiers, no site codes, no internal repo names — including inside the compiled asset bundle, where the base64 false positives we'd been excluding turned out not to exist under a tightened pattern.

    Issue and PR text. #91's body rewritten and retitled; #81 and #84 corrected; #91's comment history removed; #89's correction comment scrubbed; and this issue's own body, which had enumerated the very addresses it was filed to remove. Every private address, the ship-runner sources, the decommissioned instances and the production origin address are gone from issue and PR text; AWS resource identifiers and all reasoning are deliberately kept.

    Two corrections made while doing this, both worth recording.

    The origin-IP argument was too weak. The triage above said the production origin address is a property of the DNS record rather than a disclosure this repo causes — true, but only for as long as DNS still answers with it. Once #89 lands, that address becomes precisely what Cloudflare exists to hide, and an issue quoting it is a durable way to bypass the proxy. Public-by-DNS is revocable; public-in-an-issue is not. So it was genericised despite the general rule that account-scoped identifiers stay.

    A dangling pointer. #91 opened with "see the comment history for how" and this issue pointed at "the mitigation comment on #91" — both written before that history was deleted. #91's body already carried the full mitigation record, including how the closure was verified, so nothing load-bearing was lost; both references now point there.

    Scope explicitly not attempted: commit messages. #81's still assert the pre-mitigation state. Changing them needs a history rewrite, which is not worth it, and the body of #91 now states the current position — accepted as-is, as this issue proposed.

    Not closed by this, and not blocking publication: #91 (narrow the 22-from-0.0.0.0/0 rule once a source reading from the second runner cluster lands; disassociate staging's unused EIP; retest IPv6 from outside rather than assuming), #89 (Cloudflare, accepted as-is for now), #85 (pin floating actions).


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions