PubSubTopic: use canonical kmsv1beta1.KMSCryptoKeyRef for spec.kmsKeyRef #13745
All Vouch review confidence checks passed
Residual risk 0.25 = Change Risk (0.58) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.58 · 160 lines diff across 2 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.304
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.058
Real PR Conversation Timeline
1 comments
"Review active on #13745"
general
weight: 0.35
anhdle-sso
Summary
Replaces the ad-hoc local
KMSCryptoKeyRefstruct definition inapis/pubsub/v1beta1/pubsubtopic_types.gowith the canonicalkmsv1beta1.KMSCryptoKeyReftype (which implementsrefs.Ref).Problem
Previously,
PubSubTopicSpec.KmsKeyRefused an ad-hoc local structKMSCryptoKeyRefthat did not implementrefs.Refor register withrefs.Register. As a result:common.NormalizeReferencesin the direct controller skippedKmsKeyRef.KMSCryptoKeybynameandnamespacefailed to resolveExternal, causingTopic.KmsKeyNameto remain empty when converting to protobuf.Solution
PubSubTopicSpec.KmsKeyRefto usekmsv1beta1.KMSCryptoKeyRef.KMSCryptoKeyRefstruct definition fromapis/pubsub/v1beta1/pubsubtopic_types.go.pkg/controller/direct/pubsub/pubsubtopic_mapper.goto constructkmsv1beta1.KMSCryptoKeyRef.TestPubSubTopic_NormalizeReferencesverifying reference resolution by name and external format.Fixes #13737
This PR was generated by the overseer,priority/high agent (powered by the gemini-3.7-flash model).
``
release-note
``Fix PubSubTopic spec.kmsKeyRef reference normalization when referencing KMSCryptoKey by name/namespace