Skip to content

feat(helm): grant read-only access to kagent v1alpha3 resources - #113

Open
dimetron wants to merge 1 commit into
mainfrom
feat/helm-kagent-api-rbac
Open

dimetron wants to merge 1 commit into
mainfrom
feat/helm-kagent-api-rbac

Conversation

@dimetron

Copy link
Copy Markdown
Collaborator

Summary

With rbac.readOnly: true, the chart's read-only role had no access to kagent's own CRDs, so tools like k8s_get_resources could not read Agents, ModelConfigs, and other kagent resources.

This change adds get/list/watch on the api.kagent.dev resources in kagent's latest API (v1alpha3). The list matches the kagent chart's reconciliation role:

  • agents, agenttemplates, egresspolicies, harnesses
  • modelconfigs, modelproviderconfigs, remotemcpservers, sandboxtemplates

Full-access mode (rbac.readOnly: false) already covers these resources, so it is unchanged. The new rule also applies to namespaced Roles (rbac.namespaces).

Testing

  • Added a helm unittest case. make helm-test passes (24/24).
  • helm template --set rbac.readOnly=true renders the new rule.

The read-only role now covers the api.kagent.dev resources served by
kagent's latest API (v1alpha3): agents, agenttemplates, egresspolicies,
harnesses, modelconfigs, modelproviderconfigs, remotemcpservers and
sandboxtemplates. Full-access mode already covers them.

Signed-off-by: Dmytro Rashko <dimetron@me.com>
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