← Back to Pull requests

docs(SA-8748): correct OpenShift cluster access roles #110

Closed
unknown closed this pull request without merging on Nov 23, 2026 14:23 UTC
View on GitHub
unknown unknown commented on Nov 23, 2026 10:09 UTC
Author

What

The API reference and the provision how-to still tell users to grant role: customer-edit / customer-view. Those roles do not exist. access.groups[].role is now a closed enum, so anyone who copies the documented example gets an error when they apply it.

This PR fixes openshift-cluster.md (API reference) and provision-openshift-cluster.md:

  • Roles: lists the real values (view, edit, admin, customer-admin) with a table of what each one grants.

  • Examples: both now use customer-admin and edit.

  • Reserved group names: lists the names the claim rejects (customer-admin, stakater-, -cluster-admin, -stakater-admin).

  • Full cluster administration: customer-admin is restricted by default and can browse but not install operators. The platform can switch it to full cluster administration per organisation or per cluster. The claim can't set this.

  • Sign-in: explains when a member needs to sign in again for a new grant to apply to them.

  • Wording: uses platform terms (organisation group, single sign-on) instead of Keycloak / ClusterRole / OIDC token, per AGENTS.md.
  • Verified against eu-1 (2026-11-23, read-only)

    | Statement | Evidence on eu-1 |
    |---|---|
    | Only view, edit, admin, customer-admin; reserved names rejected | The live openshiftclusters.kubernetes.cloud.stakater.com definition (openshift-hosted-cluster-public 0.0.48) has this exact enum and the same four reserved-name rules |
    | The claim can't set the customer-admin mode | The public definition has no such field. The internal one has access.customerAdminMode, and the Organization has customerAdmin.mode |
    | Roles apply to every project except platform-managed ones | Every composed SubjectPermission binds the role in all namespaces except kube
    , openshift, stakater-, redhat-, open-cluster-management, default and the namespace named after the cluster |
    | customer-admin = admin + selected cluster-wide permissions | Composed SubjectPermission = admin (namespaces as above) + customer-admin-rbac. Live rules on alpha-dev (chart rh-rbac-permissions-operator-config 1.0.14, same templates as main): cluster-wide operator catalog read, nodes and storage classes read-only, cluster resource quotas, anyuid/nonroot SCC. No nodes/proxy, no privileged SCC |
    | Restricted customer-admin can't install operators | None of view, edit, admin or customer-admin-rbac can create operatorgroups. Nobody has a binding in openshift-operators |
    | Full mode makes members cluster administrators | emk6klhp (per-cluster setting customerAdmin.mode: full) has an extra cluster-admin ClusterRoleBinding for each customer-admin group |
    | Membership is read at sign-in | Every hosted cluster's identity provider is OpenID with a groups claim, so OpenShift updates group membership when a user signs in |

    Why a new PR

    This replaces #33. That branch also picked up #42 (private-cluster and mesh access, --mtu 1200). connect-to-openshift-cluster.md, merged on 11-06, now covers that content, and it says the MTU change is needed only on relayed connections. This PR keeps only the role fix and is based on current main.

    Related

  • SA-8748 (customer docs for cluster access roles), under epic SA-8745 (hosted-cluster access model).
  • Checks

  • markdownlint-cli2 with the repo's .markdownlint.yaml: 0 errors

  • vale with the repo's .vale.ini: 0 errors, 0 warnings
  • 🤖 Generated with Claude Code

    Diff: 443 lines (+332 / -111) across 5 files Reviewer: MuneebAijaz Review duration: 254m
    All Vouch review confidence checks passed
    Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.45 · 443 lines diff across 5 files
    0.45
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.365
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #110"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 45.3% (MEDIUM) · Higher = larger blast radius
    45.3%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 17.9% · Safe to merge
    17.9%