Skip to content

feat(core): add scoped authorization for catalog resources - #2710

Draft
codyhartsook wants to merge 1 commit into
kagent-dev:mainfrom
codyhartsook:codyhartsook/scoped-authorization-backend
Draft

feat(core): add scoped authorization for catalog resources#2710
codyhartsook wants to merge 1 commit into
kagent-dev:mainfrom
codyhartsook:codyhartsook/scoped-authorization-backend

Conversation

@codyhartsook

@codyhartsook codyhartsook commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add policy-neutral collection scopes while keeping the default OSS installation open.
  • Enforce scoped access for AgentTemplate, Harness, and ModelConfig using trusted Kubernetes metadata.
  • Return server-computed create, update, and delete capabilities, and load them before a mutation so a failed lookup cannot report failure after a write.

Backend half of #2683. A follow-up PR makes the OSS UI consume the capability fields.

Testing

  • make proto-check
  • go test ./... (in go/)
  • make -C go lint
  • cd ui && yarn typecheck && yarn test — the regenerated protobuf TS ships here, so this proves it does not break a UI that does not yet read the new fields.

Go E2E not run: requires a Kind cluster.

@github-actions github-actions Bot added enhancement New feature or request enhancement-proposal Indicates that this PR is for an enhancement proposal labels Sep 4, 2026
Add policy-neutral collection scopes and enforce them for AgentTemplate, Harness, and ModelConfig using trusted Kubernetes metadata. Filter lists before response construction, authorize mutations before writes, and return server-computed action capabilities while keeping the default OSS installation open.

Include the protobuf contracts, generated clients, focused unit and end-to-end coverage, design, and implementation guidance. UI capability behavior follows in a separate PR.

Signed-off-by: Cody Hartsook <cody.hartsook@solo.io>
@codyhartsook
codyhartsook force-pushed the codyhartsook/scoped-authorization-backend branch from 9a1c7a3 to 55521c0 Compare September 4, 2026 22:50
@github-actions github-actions Bot added enhancement New feature or request and removed enhancement New feature or request labels Sep 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request enhancement-proposal Indicates that this PR is for an enhancement proposal work-in-progress

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant