GeezerVison is showing github.com — Model org-level settings, rulesets & branch protection in deploy/ · Issue #52 · devantler-tech/.github
Model org-level settings, rulesets & branch protection in deploy/ #52Description
🤖 Generated by the Daily AI Assistant
Problem
The org enforces real configuration that is not in the declarative source of truth: org-level rulesets (e.g. squash-only merge, webCommitSignoffRequired), default member permissions, org security settings, and per-repo branch protection. Today these live only in GitHub's UI/API, so the "manage GitHub declaratively" guarantee has a hole — these settings can drift and aren't audited through the GitOps path. The shared repo patch in deploy/kustomization.yaml already encodes merge/signoff repo settings, but the org-level ruleset that actually enforces commit signoff is not declared.
Proposed direction
- Model org settings + rulesets as CRs (verify provider-upjet-github support, e.g.
Membership, an org-settings kind, OrganizationRuleset / organization_ruleset, BranchProtection / repository ruleset).
- Adopt Observe-first (read live state into
status.atProvider, backfill forProvider), then promote to manage — the same safe pattern already used for the Repository CRs.
- Decide org-level ruleset vs per-repo ruleset granularity (org-level is the lighter-touch starting point that matches today's enforcement).
Rough size
M — touches security-relevant org state; ruleset granularity is a maintainer call. Activitydevantler commented on Jul 8, 2026 ContributorAuthor More actions
🤖 Generated by the Daily AI Assistant
Re-audited this against the live deploy/ tree — the ruleset half of this issue is already fully delivered, so I'm narrowing scope and closing.
Delivered (verify-before-build check confirms):
deploy/organization-rulesets/ (10 org rulesets, Observe-first) + deploy/repository-rulesets/ (repo-scoped, e.g. platform's merge queue) — exactly the "Observe-first, promote to manage" pattern this issue proposed, already applied.
- The provider's real limitations (narrower ruleset schema, a
terraform-provider-github panic on required_status_checks create) are documented in the organization-rulesets/README.md and already tracked in #69 — no need for a duplicate tracking issue.
Genuinely still missing, and blocked: org-wide settings (as opposed to rulesets) — e.g. web_commit_signoff_required (the issue's own motivating example), default_repository_permission, two_factor_requirement_enabled. provider-upjet-github's CRD set (checked its package/crds/) has no general org-settings resource — only an Enterprise-scoped Organization (org creation, needs an enterpriseId, doesn't fit adopting an existing non-Enterprise org), ruleset CRDs, and Actions-specific permission CRDs. There's no github_organization_settings-equivalent wrapped by this provider today.
Filed the settings gap as its own narrow issue: #. Closing this one as delivered for the ruleset scope. devantler commented on Jul 8, 2026 ContributorAuthor More actions
🤖 Generated by the Daily AI Assistant
Follow-up filed: #85 (org-wide settings, blocked on provider support). Closing this one — its addressable scope (rulesets) is fully delivered.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|