Skip to content

docs(adr): record GitHub settings as OpenTofu code the owner applies #5314

Closed

Description

@dan-petty

Problem or Motivation

No record says where repo and org settings live, who changes them, or how we verify a transfer. Three designs compete.

Order 1 of the plan in #5311. The owner approved the plan on 2026-11-13.

Proposed Solution & Architectural Design

Write an ADR with these parts: two stacks, one for each owner, the kubernetes backend in tofu-state, the reader App for plans, owner applies, and the scope split (labels, secret values, webhooks, App registrations, packages, Projects and the org security configuration stay out). Postconditions for hard asserts, because check blocks only warn. The devops-cli 'main' ruleset stays unmanaged until upstream integrations/terraform-provider-github#3664 is fixed. The transfer is an owner API call that an import-only plan verifies. List the alternatives (safe-settings, audit CLI) and the reasons against them.

Target Subsystem

OpenTofu / Infrastructure as Code

Existing Tool Considered

MADR, the ADR format of docs/adr/. No separate cost estimate: the ADR is part of the plan total in the tracker.

Acceptance Criteria

Dependencies

Owner decisions 1, 4, 5, 7 in #5311. Part of #5311.

Source: #5311

Activity

  1. added
    source/agent
    on Nov 13, 2026
  2. added
    type/docs
    scope/adr
    status/new
    value/medium
    effort/low
    on Nov 13, 2026
  3. dan-petty commented on Nov 13, 2026

    @dan-petty
    OwnerAuthor
  4. added
    priority/p2-medium
    on Nov 13, 2026
  5. added
    status/in-review
    and removed
    status/new
    on Nov 15, 2026
  6. removed
    status/in-review
    on Nov 15, 2026
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

    effort/lowpriority/p2-mediumscope/adrsource/agenttype/docsvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions