ADR-0011: Public-repository standards while private#

  • Status: accepted
  • Date: 2026-07-30

Context#

The repository is private today — it is a learning and exploration space — and is intended to become public once it is worth showing off.

The tempting shortcut while private is to commit account IDs, role ARNs and an email address inline, because "it's private". The problem is that Git history is permanent: anything committed while private is still there when visibility flips, and the cleanup is a history rewrite rather than a delete.

Decision#

Write the repository to public standards from the first commit, and treat the current private state as incidental.

Concretely:

  • No AWS account IDs in committed files. Names derive from

data.aws_caller_identity.current.account_id at plan time. The state bucket name is a partial backend config supplied at init.

  • No email addresses. alert_email is a sensitive variable with no default,

supplied via TF_VAR_alert_email.

  • No role ARNs, and no account ID in public logs. Workflows derive every

ARN from the AWS_ACCOUNT_ID repository secret. Neither is a credential, but both identify the account. It is a secret rather than a variable because GitHub prints variables verbatim in step headers, and masks secrets. Plan output posted to pull requests is redacted explicitly, since masking only covers logs.

  • terraform.tfvars is committed, and contains only genuinely non-sensitive

configuration. That is deliberate: a plan should be reproducible from a clean clone.

  • gitleaks runs in CI and pre-commit from the start, so the history stays

clean rather than being audited later.

  • Documentation is written for an outside reader — no unexplained internal

shorthand, no "as discussed".

Alternatives considered#

Be relaxed now, clean up before going public. Requires rewriting history with git filter-repo, invalidates every existing clone and commit SHA, and reliably misses something. The cleanup is strictly harder than the discipline.

Make it public immediately. Attractive for forcing the discipline, but the stated intent is to explore and get things wrong first. A public repository during that phase means the mistakes are permanently in the history — which is fine for code, less fine for a half-configured DNSSEC experiment.

Use a private repository forever and only publish the website. Loses most of the demonstration value; the Terraform is the interesting artefact.

Consequences#

Positive: flipping visibility is a settings change with no cleanup. Nothing sensitive ever enters the history. The documentation is already readable by strangers, which is a useful forcing function — writing for an outside reader exposes reasoning you would otherwise leave implicit. Contributors could be added at any point.

Negative: more friction now. Every apply needs TF_VAR_alert_email and TF_VAR_permissions_boundary_arn in the environment, and init needs -backend-config. That is genuinely more awkward than hardcoding, and it is the cost of the decision. A .envrc or a gitignored local.auto.tfvars makes it tolerable.

Neutral: some CI features behave differently while private. Sigstore attestation in particular is designed around public verification, so its full value arrives with the visibility change — noted in the tech radar under Trial rather than Adopt. In practice it does not run at all yet: GitHub refuses to store attestations for private repositories owned by a user account ("Feature not available for user-owned private repositories"), which failed the first site deploy. site-deploy therefore attests only when the repository is public, records the skip in its run summary otherwise, and needs no change when the visibility flips.

Revisit when#

The repository goes public. At that point re-check: the Sigstore attestation workflow (it should start attesting on the next deploy, and gh attestation verify should pass against the live bundle), whether the README reads well as a landing page, and whether anything in the history needs a second look before it gets attention.

Built 2026-11-25 from commit 33bfabf6a27d4baeecf228c31bd5d636a3965070. This page was generated from the same source that provisions the infrastructure it describes.