You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
t.Error("serviceoffer-controller scoped secrets rule must not grant list/watch/update/patch — Secrets are create-only in the reconciler and all reads are by name")
920
+
ifverbs["list"] ||verbs["watch"] {
921
+
t.Error("serviceoffer-controller scoped secrets rule must not grant list/watch — all reads are by name")
922
+
}
923
+
// update/patch is allowed only on remote-signer-keystore, which the
924
+
// reconciler updates via backfillSignerAuthToken to add the bearer
925
+
// token key to keystores minted before signer auth existed.
926
+
ifverbs["update"] ||verbs["patch"] {
927
+
forn:=rangenames {
928
+
ifn!="remote-signer-keystore" {
929
+
t.Errorf("serviceoffer-controller must not grant secrets:update/patch on %s — only remote-signer-keystore is mutated (auth-token backfill)", n)
930
+
}
931
+
}
914
932
}
915
933
ifnames["litellm-secrets"] &&verbs["delete"] {
916
934
t.Error("serviceoffer-controller must not grant secrets:delete on litellm-secrets; the code only reads LITELLM_MASTER_KEY")
0 commit comments