refactor: depend on SecretStore instead of the VaultStore class (P1.2)
Connectors, the connector SDK and registry, setup-connectors, provider-env, the LiteLLM runtime config and the sidecar's `vault` decoration only read and write secrets, so they now take the SecretStore interface. VaultStore is still constructed in the sidecar and the service startup, and its file format is unchanged. AGENTS.md now points at the interface.
This commit is contained in:
@@ -272,9 +272,9 @@ interface AgentPersona {
|
||||
|
||||
## 8. Security Constraints (Non-Negotiable)
|
||||
|
||||
1. **Secrets** belong in the secret store (`packages/core/src/vault.ts` until P1.2 replaces
|
||||
it with a `SecretStore` interface) or an untracked local `.env`. Never in git. `.env.example`
|
||||
holds placeholders only.
|
||||
1. **Secrets** belong in the secret store (the `SecretStore` interface in
|
||||
`packages/core/src/secret-store.ts`, implemented by `VaultStore` in `vault.ts`) or an
|
||||
untracked local `.env`. Never in git. `.env.example` holds placeholders only.
|
||||
2. **Injection defense.** Call `scanForInjection()` from `injection-scanner.ts` on all
|
||||
connector and external input.
|
||||
3. **No eval and no dynamic require.**
|
||||
|
||||
Reference in New Issue
Block a user