Skip to content

Public-repo posture: deliberate disclosure review + fork-PR CI behaviour #632

Done

Description

@athvin

Opened after the repo went public on 2026-11-06. Two items, neither urgent, both wanting a deliberate decision rather than a default.

Already done, recorded here so nobody redoes it

  • Fork-PR approval tightened from first_time_contributors to all_external_contributors, so no fork's workflows run unapproved. Reversible via gh api -X PUT repos/:owner/:repo/actions/permissions/fork-pr-contributor-approval -f approval_policy=…. Note the --input - JSON form of that PUT fails silently; -f worked. Read back every write.
  • Credential scan of the full history: clean. Zero AKIA…, zero ghp_/github_pat_, zero SSH private keys. Two sk-ant- hits are unit-test fixtures ("sk-ant-new", "sk-ant-x"); the RSA PEM is testdata/sa_token_test_rsa.pem, include_str!'d into satoken.rs tests. .env.example is placeholders. The never-expiring AdministratorAccess key is not in the repo. Nothing needs rotating.
  • Merge queue is still unavailable. mergeQueue(branch:"main") is null — public only unlocks it for organization-owned repos, and this is user-owned. merge-bus.yml is therefore not redundant. If the repo ever moves under an org, revisit: merge queue would replace the bus.

1. Was publishing the security material intended?

Now world-readable, and all of it was written when the repo was private:

  • .claude/skills/security/** and .claude/skills/pentest/** (15 files) — the known vulnerability classes specific to this system, which harness locks each one, and where a PoC belongs
  • docs/infrastructure.md — the IAM model, the deliberate exceptions still pending retirement, the SSO design
  • the AWS account id, in er-ci-sccache-797781631727

None of it is a secret and publishing it may well be fine — threat models benefit from review. But it is a map of the attack surface written for an audience of one, and the decision should be explicit. Options: accept as-is, move the security skills to a private repo, or edit out the "not yet fixed" specifics.

2. Fork PRs will fail the Rust gate

rust.yml requests id-token: write in seven jobs to exchange for the sccache S3 role, and runs on pull_request. A fork PR is issued no id-token, so that exchange cannot succeed.

infra.yml already handles this deliberately — "A fork PR is issued no id-token, so it could not assume the plan role" — and its plan tier skips with that explanation. rust.yml has no equivalent, so an outside contributor's PR would just go red on the compile jobs with a confusing cause.

If outside contributions are wanted, rust.yml needs the same treatment: detect the absent token and run without sccache (slower, but green) rather than failing the exchange. If they are not wanted, say so somewhere, because the current behaviour reads as a broken gate rather than a closed door.

Not an issue

Actions compute for this repo is now free (standard hosted runners, public repo), and ubuntu-latest is the 4-vCPU/16GB machine rather than 2-vCPU/8GB — so the Rust gate gets faster for nothing. The $500 spending limit now only governs the other repos (mono, sqlfmt).


Product context (2026-11-26)

Why this matters for the API product: Indirect, it's about operating safely. Item 1 decides how much of the attack-surface map stays public while the API is the product. Item 2 decides whether outside contributors can get a green gate.

Current state:

  • The fork-PR approval policy still reads all_external_contributors (read back today). The repo is still public and user-owned.
  • Item 1: docs/ no longer holds this material. docs/infrastructure.md now lives at .claude/skills/infra-platform/references/infrastructure.md, and it names the account id at lines 81 and 85. The account id also appears in api-contract/SKILL.md:248, infra-platform/SKILL.md:194 and the er-engine-ops references. The sccache bucket no longer carries it: sccache moved to Cloudflare R2 in ci(rust): sccache on Cloudflare R2 — cheap AND fast #920, and the bucket is now er-ci-sccache on an R2 endpoint (rust.yml:115-116). security/ plus pentest/ is now 17 files, up from 15.
  • Item 2's mechanism is out of date. rust.yml has no id-token: write left. Compile jobs now read R2 keys from repository secrets, and main reads them from the protected sccache-write environment (rust.yml:118-150, :563-568). A fork PR gets no secrets, but SCCACHE_BUCKET is still set for it. Only Dependabot is special-cased to an empty bucket (rust.yml:114-115). So the open question is now "does sccache fail or degrade with empty credentials?" That is unverified.
  • CONTRIBUTING.md still says nothing about whether outside PRs are wanted.

Definition of done:

  1. Record the owner's disclosure decision in the issue: accept, move, or redact.
  2. Either a fork PR's rust gate goes green without sccache (empty credentials leads to an empty SCCACHE_BUCKET, the same way Dependabot is handled), or CONTRIBUTING.md states that outside PRs are not accepted.

Open product decision: Whether the security/pentest skills and the IAM-exception detail stay public, and whether outside contributions are wanted at all.

Size: ~0.25 engineer-weeks after the decision.

Activity

  1. added
    ci-backlog
    on Nov 6, 2026
  2. athvin commented on Nov 28, 2026

    @athvin
    OwnerAuthor

    Decision on item 1 (disclosure), made under the standing instruction to use judgment rather than wait: accept as published. The security and pentest skills, the IAM-exception detail and the account id stay public.

    Reasoning:

    • The full-history scan found no credential.
    • An AWS account id is not a secret: it appears in every ARN a resource policy shares.
    • The skills describe classes of issue and the harness that locks each one, not working exploits.
    • A threat model benefits from outside review, and moving the material to a private repo would leave the two copies to drift apart.

    The owner can revisit this at any time: the options remain move or redact. Item 2 is handled in the linked PR.

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

    ci-backlog

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions