stacklok / stacklok/toolhive

Scoped secret store: wire callers to use ScopedProvider and UserProvider

Open
#4,227 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

authentication enhancement go
Dominant language
Go
Stars
2.2k
Forks
300
Avg merge
1d 15h
Merged PRs (30d)
184

Description

Summary

Phase 4 of the scoped secret store implementation (#4192).

Update all callers to use the correct provider wrapper so system secrets are isolated in practice, not just in theory.

Work

  • Registry auth (pkg/registry/auth/): use CreateScopedSecretProvider(ScopeRegistry)
  • Workload auth (pkg/auth/): use CreateScopedSecretProvider(ScopeWorkloads)
  • All user-facing entry points (CLI secret commands, API secrets routes, MCP tool server): use CreateUserSecretProvider
  • Integration tests verifying isolation end-to-end

Dependencies

Depends on Phase 3. Must ship in the same PR as Phase 3 (migration infrastructure) — callers must not be updated before migration runs, and migration is useless without updated callers.

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

Review the callers in pkg/registry/auth/ and pkg/auth/, then locate the CLI secret commands, API secrets routes, and MCP tool server entry points. Coordinate this work with Phase 3 migration infrastructure, and add integration tests showing registry, workload, and user secrets remain isolated end-to-end.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api, authentication, cli, security, testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.