Skip to content

fix(agentgateway-bootstrap): restore get RBAC verb on agentgatewayparameters#307

Merged
Andy Lo-A-Foe (loafoe) merged 1 commit into
mainfrom
fix/agentgateway-bootstrap-postgres-wire-rbac-get
Jul 23, 2026
Merged

fix(agentgateway-bootstrap): restore get RBAC verb on agentgatewayparameters#307
Andy Lo-A-Foe (loafoe) merged 1 commit into
mainfrom
fix/agentgateway-bootstrap-postgres-wire-rbac-get

Conversation

@loafoe

Copy link
Copy Markdown
Member

Summary

A prior review round flagged get on agentgatewayparameters as unused RBAC scope
(the script only ever patches the CR) and it was dropped in #306. Deploying to a
real cluster revealed this was incorrect: kubectl patch fetches the current object
before sending the merge patch, so patch-only RBAC is rejected:

Error from server (Forbidden): agentgatewayparameters.agentgateway.dev
"agentgateway-gw-params" is forbidden: User "system:serviceaccount:
agentgateway:agentgateway-bootstrap-postgres-wire" cannot get resource
"agentgatewayparameters" in API group "agentgateway.dev" in the
namespace "agentgateway"

Restores get alongside patch.

Test plan

  • helm template shows verbs: ["get", "patch"] on the agentgatewayparameters rule
  • helm lint passes
  • Confirmed live on dip-ce-k3s-eu: the Job's kubectl patch succeeds with this RBAC

…ameters

A prior review flagged the get verb as unused (the script only ever
patches the CR) and it was dropped for stricter least-privilege. Live
deployment revealed this was wrong: kubectl patch fetches the current
object before sending the merge patch, so patch-only RBAC is rejected:

  Error from server (Forbidden): agentgatewayparameters.agentgateway.dev
  "agentgateway-gw-params" is forbidden: User "system:serviceaccount:
  agentgateway:agentgateway-bootstrap-postgres-wire" cannot get resource
  "agentgatewayparameters" in API group "agentgateway.dev" in the
  namespace "agentgateway"

Restoring get alongside patch.
@loafoe
Andy Lo-A-Foe (loafoe) requested a review from a team as a code owner July 23, 2026 14:14
@loafoe
Andy Lo-A-Foe (loafoe) merged commit 5878098 into main Jul 23, 2026
5 checks passed
@loafoe
Andy Lo-A-Foe (loafoe) deleted the fix/agentgateway-bootstrap-postgres-wire-rbac-get branch July 23, 2026 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant