Skip to content

[FEAT repo-guard] - New CRD: GithubOrganizationPolicy for cross-org policy consistency #240

Description

@onuryilmaz

User Story

As a platform operator, I want to define policies that must hold across all managed GitHub orgs, so that drift between orgs is surfaced automatically rather than discovered manually.

Description

Each GithubOrganization CR is independent and drift between orgs is invisible. A cluster-scoped GithubOrganizationPolicy CRD would define rules that must hold across all managed orgs — e.g. "every org must have branch protection on main", "no org may have public forks enabled" — with the controller surfacing violations as status conditions. This is the enterprise governance layer above per-org management, complementary to the per-org GithubOrganizationRuleset CRD (#112).

Acceptance Criteria

  • GithubOrganizationPolicy cluster-scoped CRD defined with schema
  • Controller evaluates policies across all managed GithubOrganization CRs
  • Violations surfaced as status conditions on the policy resource
  • At least two built-in rules implemented: branch protection on default branch, public fork restriction

Reference Issues

Related: #112 (GithubOrganizationRuleset — per-org ruleset management)

Activity

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

    backlogReady for sprint planning; triggers project additiondevsecopsSecurity integration in development and operationsfeatureNew functionality or enhancementkubernetesKubernetes specific features, CRDs, and controllersneeds-refinementNeeds scoping before implementation

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions