Skip to content

docs(adr): record the four homes of the infrastructure - #6683

Merged
dan-petty merged 3 commits into
mainfrom
docs/6674-four-homes-adr
Nov 21, 2026
Merged

dan-petty merged 3 commits into
mainfrom
docs/6674-four-homes-adr

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

ADR 0032 records the four homes of the infrastructure templates: devops-cli keeps its own deployment, a service repository keeps its own stack, dan-petty/infra keeps the shared templates and general settings, and dan-petty/homelab keeps the sensitive values and the homelab configuration. A template with two or more consumers goes to infra. Consumers pin infra at a release tag, and Renovate updates each pin. infra holds no private data.

The devops-cli release App tags infra. The shared module of ADR 0026 goes to infra, and its root stacks go to homelab. Renovate moves to homelab on the upstream chart, so the license exception of ADR 0027 covers that unmodified chart.

ADR 0026 and ADR 0027 get amended-by: ["0032"] and a dated line. ADR 0011 is superseded, so it gets a dated Fact out of date line and no amendment key.

Closes #6674

Change: openspec/changes/archive/2026-11-21-6674-four-homes-adr/

Add ADR 0032, amend ADR 0026 and ADR 0027, note the out-of-date fact of
ADR 0011 point 3, regenerate the index and archive the change.

Refs #6674
@dan-petty dan-petty added type/docs Type docs: a change to the documents scope/adr The architecture decision records and their rules labels Nov 21, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Owner review points. ADR 0032 stays status: proposed until the owner confirms points 1 and 2. The record writes the recommendation of each point as its decision text, with the marker "Open choice: the owner confirms it in the review of this record."

1. Which GitHub App makes the release tags of dan-petty/infra (section 4).

  • Option A, recommended: the devops-cli release App. Its credentials go in an environment release of infra. The App is already installed on every dan-petty repository, so infra needs only the environment and its two values.
  • Option B: a new App for infra only. It keeps the request budget of the devops-cli release path apart, but it is one more App and one more private key to keep.
  • Option C: another App of the account, such as the roadmap Service App. ADR 0011 kept the release App apart from the Service identity, so the release path waits for neither. This option breaks that rule.
  • GITHUB_TOKEN is not an option: a pull request that it opens starts no workflow, so the release pull request of infra gets no checks.

This point changes point 3 of ADR 0011. ADR 0011 is superseded, and docs/adr/README.md says "Do not amend a superseded record". So ADR 0011 gets a dated Fact out of date line that names ADR 0032, and no amended-by key.

2. Where the root stacks of ADR 0026 go (section 8). The shared module goes to infra as tf/modules/github-repository with each option.

  • Option A, recommended: dan-petty/homelab tf/github/. homelab is private, and the stacks name private repositories.
  • Option B: keep them in devops-cli tf/github/. devops-cli is the public product, and the stacks are not templates of its own deployment.
  • Option C: public dan-petty/infra. The stacks name private repositories, so the private-data rule of infra refuses them.
  • Option D: a new private repository for the settings of the accounts. It keeps the settings apart from the homelab environment, but it is one more repository to onboard.

3. Confirm by the merge: the license exception of ADR 0027 grows (section 8). ADR 0027 says that its exception covers the unmodified Renovate image only, and not the Helm chart. renovatebot/helm-charts has the license AGPL-3.0. So the move of Renovate to the upstream chart in homelab widens the exception to the unmodified upstream chart. ADR 0027 is still proposed, so ADR 0032 is the record in force for this rule after the merge.

Person steps: none in this pull request. The App environment of infra is a person step of dan-petty/infra#5.

The owner decided on 2026-11-21 that the devops-cli release App tags
dan-petty/infra, and that the root stacks of ADR 0026 go to
dan-petty/homelab tf/github/. ADR 0032 and its archived change now
state both points as owner decisions, with no open-choice marker.
@dan-petty

Copy link
Copy Markdown
Owner Author

Correction to the earlier comment on owner review points. Points 1 and 2 are not open. The owner decided both on 2026-11-21 (#6674, Person steps):

  1. The devops-cli release App makes the release tags of dan-petty/infra.
  2. The root stacks of ADR 0026 go to dan-petty/homelab tf/github/, because they name private repositories.

ADR 0032 now writes both as owner decisions (sections 4 and 8), with no open-choice marker. The archived change agrees.

Point 3 (the license exception of ADR 0027 also covers the unmodified upstream Renovate chart) stays: the merge confirms it.

Person steps: none in this pull request.

@dan-petty
dan-petty marked this pull request as ready for review November 21, 2026 20:46
@dan-petty
dan-petty merged commit 37b498a into main Nov 21, 2026
27 checks passed
@dan-petty
dan-petty deleted the docs/6674-four-homes-adr branch November 21, 2026 20:46
dan-petty added a commit that referenced this pull request Nov 21, 2026
Part 1: ADR 0033 records the path of service Secrets. The External
Secrets Operator makes each service Secret with its Kubernetes provider,
and `devops k8s push-secrets` keeps the platform Secrets. Each service
gets one store namespace, and its repository holds only
`ExternalSecret`, `PushSecret` and `Password` objects. A `Password`
generator makes each value that nobody types, and a `PushSecret` with
`updatePolicy: IfNotExists` keeps it. A typed value comes only from a
person. CF4 and CF5 of `docs/SERVICE_PATTERNS.md`, principle 1 of
`SECURITY.md`, the production readiness guideline and the Helm and
Kustomize knowledge base name this path.

Part 2: The merge of #6683 accepted ADR 0032. It gets `status:
accepted`, its `body-hash` and a dated Status History line, and its
body does not change.

Closes #6675

Change:
`openspec/changes/archive/2026-11-21-6675-eso-service-secrets-adr/`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/adr The architecture decision records and their rules type/docs Type docs: a change to the documents

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs(adr): record the four homes of the infrastructure

1 participant