SPLAT-3064: vsphere: add privilege scopes and tighten credential validation #11119
All Vouch review confidence checks passed
Residual risk 0.23 = Change Risk (0.43) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 391 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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.357
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #11119"
general
weight: 0.35
vr4manta
Follow-up to #10895, which is now merged.
This adds the vSphere object scope to every privilege in the component-scoped credential matrix, using the OpenShift Container Platform 5.0 vCenter requirements tables (2.6, and 2.8 through 2.12). It also fixes the validation and client-management issues found while reviewing the original change.
Changes
docs/user/vsphere/component-privileges.md, splitting rows where privileges belong at different scopes. Record the propagation rules (Table 2.8) and mark the privileges that the 5.0 tables do not cover (for exampleHost.Inventory.EditCluster, and the Cloud Controller Manager and Problem Detector rows, which have no published 5.0 privilege table).credentialsMode: Manualfor vSphere only with component-scoped credentials. Global credentials previously passed validation withManualbut generated neither99_cloud-creds-secret.yamlnor the component Secrets, leaving the cluster without vCenter credentials.Host.Inventory.EditClusterfor HostGroup failure domains, so existing global-credential install configs keep their previous validation even when the gate is enabled for another feature.openshift/apiupdate that enables the gate in another feature set does not require wording changes.Testing
go testresult: 569 passed.🤖 Generated with Claude Code
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
New Features
Component-scoped vSphere credentials can include an optional installer account. Installer-provisioned installations require it; user-provisioned installations can fall back to the machine-management account. Installer credentials are not delivered to the cluster.
Component-scoped credentials support Manual credentials mode; global credentials do not.
The Machine Config Operator can use its own vCenter account.
Bug Fixes
Privilege validation now reflects credential scope and checks HostGroup reconfiguration permissions when required by topology and feature settings.
Installer operations select the appropriate credentials, including the machine-management fallback for user-provisioned installations.
Documentation
* Expanded guidance on component accounts, privilege scopes, conditional operations, and credential setup.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->