feat(metadata-collector): support host-native authentication #1837
All Vouch review confidence checks passed
Residual risk 0.30 = Change Risk (0.68) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.68 · 430 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 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.363
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.068
Real PR Conversation Timeline
1 comments
"Review active on #1837"
general
weight: 0.35
natherz97
Summary
Closes #1836.
Allow metadata-collector to authenticate as a host-native process while retaining hardware inventory and pod-to-GPU mapping.
--kubeconfigfor Kubernetes API access and--kubelet-kubeconfigfor kubelet HTTPS access.ADR-058 records the proposed design and extends the deployment options described in ADR-010. It does not change publisher authentication from ADR-052. Maintainer acceptance is pending.
Credential provisioning, RBAC changes, packaging, release workflows, and remediation are outside this PR.
Type of Change
Component(s) Affected
Testing
make -C metadata-collector lint-testpasses: 104 tests with the race detector, no lint findings. The integration test uses a real local API server and RBAC. It verifies annotation addition, changes, removal, no-op updates, and permission denial. The Linux AMD64 executable builds and exposes both new flags.The complete metadata-collector suite also passes on Linux AMD64 with
go test -race -count=1 -timeout 5m ./....The full
make lint-test-allcheck passes on Linux AMD64 with the pinned build tools. This includes protobuf generation, license headers, all 33 Go module checks, module lint and tests, Helm lint, and script lint. Existing skipped tests remain unchanged. No test assertions or version pins were changed to obtain this result.Live GPU-node/systemd integration remains untested for this change.
Checklist
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
Summary by CodeRabbit
- Added separate configuration options for Kubernetes API server and kubelet authentication.
- Supports bearer tokens, client certificates, exec providers, and authentication plugins.
- Preserves in-cluster authentication when explicit configuration is omitted.
- Refreshes kubelet credentials between requests and retries.
- Improved validation for incomplete credentials, unsafe endpoints, invalid certificates, and missing token files.
- Clarified permissions required to update pod GPU annotations.
- Added guidance and an architecture decision record covering authentication, TLS, permissions, and failure handling.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->