Skip to content

[Draft] OBI-35: ServiceAccounts and allowlisted grants #23

Open

Description

@ephico2real2

Part of #10

Story

As a application operator, I want to request workload access through approved changes.

Business value

The plan (#6) sets this release exit for phase 4: "approved namespace SA edit grant and allowed anyuid SCC audited end to end; token-issuance boundary reviewed."

Context

The service account, grant and SCC grant endpoints are not built (build-tracker.md, "Not built, by area").

Acceptance criteria

  • SA create/delete, Role/ClusterRole grants and SCC grants use normal approval and GitOps, shown by a new test in cmapi/tests/service/, not written yet
  • Denied roles/SCCs and cross-namespace subjects are refused, shown by a new test in cmapi/tests/service/, not written yet
  • User/group grant writes are unavailable, shown by a new test in cmapi/tests/service/, not written yet
  • Approved namespace edit plus configured anyuid SCC is auditable end to end, shown by a new test in cmapi/tests/service/, not written yet

Tasks

  • Build the service account and grant endpoints (Wave 8).

Out of scope

  • The source states none for this story.

Evidence

  • None yet.

Definition of done

  • Mockup approved, or the work has no screen and no API shape
  • Draft pull request open
  • Build: tests fail before the change and pass after it
  • Documented where a reader looks for it
  • Review ruled
  • Merged with its proof
  • Released on the default branch
  • The owner approves, after a comment cites the proof for each criterion and its cluster

Class

INV. The story adds a new capability to the product.

Source

Status: Draft backlog. No sprint commitment.

Owner in Paperclip: Ahsoka. Ahsoka mentors Luke and assigns bounded engineering work after technical review.

Source: OBI-35.
Epic: #10. Plan, release windows, and review gates: #6.

Dependencies: #9 (OBI-31), OBI-19, OBI-20.

Planned story; phase 4, provisional 8 points (Ahsoka/Yoda to validate).

  • Attach automated or reproducible evidence for each criterion; cover denial/failure paths.
  • Read the plan; Yoda owns design choices. Keep this in backlog until prerequisite phase evidence is accepted. Ahsoka may split and delegate to Luke with mentorship.

Language acceptance criterion

Before sprint entry, the owner must define technical terms and attach language review evidence for this text revision.
Use simple-english 2.1.1, Strict mode. Index #6 records the vocabulary source and review limits.

The source criteria remain unchanged. Language review remains open.

Activity

  1. added
    Backlog
    class:INV
    status:open
    story
    on Nov 13, 2026
  2. ephico2real2 commented on Dec 1, 2026

    @ephico2real2
    OwnerAuthor

    Carried over from #257 (coordinator triage, 2026-12-01). When the sa-grants plugin is built, it must always set the approval fact clusterRoles on every grant request. core/approvals.py:271 matches with set(f.get("clusterRoles", [])) <= set(m["clusterRoles"]), and a missing fact is the empty set, which matches every policy. Without the fact, a policy such as baseline-sa-grants would auto-approve any role. Add a test: a grant request with no clusterRoles fact must not match a policy that limits roles.

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

    Backlogclass:INVstatus:openstory

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions