Files
archie/internal/infrastructure/egress/credentials.go
T
sam f92c5b4536
ci/woodpecker/pr/quality Pipeline was successful
Quality / check (pull_request) Canceled after 7m39s
chore(runtime): delete Kit and external agent harness support (#1877)
Archie runs its own agent loop only. Removes Kit resolution and launch,
the harness runner and adapters, the setup terminal and sandbox view,
harness secrets and OAuth capture (table dropped in migration 0075), the
task-tools contract that only Kit containers reached, and the
sandbox-kit-spec dependency. Agent profiles carry image and tools only.
The egress proxy keeps the model-session path; the sandbox relay code
stays for #1867.
2026-11-12 21:29:05 +11:00

20 lines
606 B
Go

package egress
import (
"context"
"errors"
)
// Sentinel prefixes the value a container sees in place of a proxy-managed
// key, so it can tell a key is wired without ever holding it.
const Sentinel = "archie-proxy-managed"
// ErrUnbound reports that the run has no binding for a service.
var ErrUnbound = errors.New("egress: credential not bound")
// Resolver supplies a key's real value for the run a run credential names.
// An implementation returns only secrets the run's identity is granted.
type Resolver interface {
Resolve(ctx context.Context, credential, service string) (string, error)
}