clavitor/clavis/clavis-vault/api
James def0c6fb1d test: rewrite agent credential tests for client-side generation
Rewrites 7 skipped integration tests to work with client-side credential generation:

- TestScopedAccess_agent_sees_only_scoped_entries
- TestScopedAccess_agent_forbidden_on_unscoped
- TestScopedAccess_all_access_sees_everything
- TestScopedAccess_agent_cannot_manage_agents
- TestScopedAccess_agent_cannot_create_system_types (renamed from _modify_scopes)
- TestScopedAccess_agent_entries_invisible
- TestKeyLeak_agent_credential_is_opaque

Adds MintCredential/ParseCredential test helpers to lib/cvt.go for creating
type 0x01 client credential tokens in tests. These simulate the client-side
credential generation that normally happens in browser/CLI.

Adds test helper methods to integration_test.go:
- reqAgent(): sends requests with CVT wire token authentication
- mintWireToken(): creates type 0x00 wire tokens for agent auth

Security boundaries tested:
- Agents with limited scope cannot access owner-only entries
- Agents with all_access can see all entries
- Agents cannot manage other agents (create/list)
- Agents cannot create system-type entries (agent, scope)
- Server responses never contain raw L2/L3 key material

Fixes #14
2026-04-09 03:45:42 -04:00
..
handlers.go clavis-vault: api/lib/cmd updates + drop _old scaffolding 2026-04-08 12:10:59 -04:00
importer-mappings.json Multi-project update: import system, edition system, web UI, CLI, website, POP sync 2026-04-05 06:40:40 -04:00
integration_test.go test: rewrite agent credential tests for client-side generation 2026-04-09 03:45:42 -04:00
mappings.go clavis-vault: api/lib/cmd updates + drop _old scaffolding 2026-04-08 12:10:59 -04:00
middleware.go clavis-vault: api/lib/cmd updates + drop _old scaffolding 2026-04-08 12:10:59 -04:00
middleware_test.go clavis-vault: api/lib/cmd updates + drop _old scaffolding 2026-04-08 12:10:59 -04:00
replication.go Complete replication implementation with L0/L1 auth (Commercial Only) 2026-04-02 01:21:20 -04:00
routes.go clavis-vault: api/lib/cmd updates + drop _old scaffolding 2026-04-08 12:10:59 -04:00
routes_commercial.go Complete replication implementation with L0/L1 auth (Commercial Only) 2026-04-02 01:21:20 -04:00
routes_community.go Complete replication implementation with L0/L1 auth (Commercial Only) 2026-04-02 01:21:20 -04:00