stacklok / stacklok/mecatl

Enforce user, agent, and exact-target authority for the first ToolHive integration

Open
#1,563 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
152
Forks
16
Avg merge
14h 48m
Merged PRs (30d)
536

Description

Outcome

For the selected first ToolHive-backed integration, an allowed operation is performed only for the verified user, by the permitted named agent, on the exact resolved target. A denied request reads no stored credential and reaches no provider.

Proposed approach

Use the protected-operation authority path to verify the admitted workload and agent evidence, intersect it with user authority and the exact target/operation, and perform credential lookup only after successful admission. Pin a ToolHive release whose behavior is demonstrably sufficient for this proof.

Not in this issue

A generic resource-policy language, every provider, scheduled authority, or fallback service credentials.

Dependencies

The external broker boundary (#1562) and selected ToolHive upstream capabilities — see stacklok/toolhive#6199 (spiffe_jwt/spiffe_x509 client auth) and stacklok/toolhive#6204 (scope intersection). Do not begin production wiring until the required release and compatibility matrix are explicit.

Proof

Use two agent definitions with different authority (for example, a read-only reviewer and a write-capable deployer). Prove the reviewer cannot obtain the deployer's authority, the denied path performs no credential read, and successful results contain no credential material.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the protected-operation authority path and the external broker boundary in #1562, then review ToolHive issues #6199 and #6204. Establish the required release and compatibility matrix before production wiring, and prove reviewer/deployer separation, no credential read on denial, and no credential material in successful results.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
authorization, security
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.