WeKnora/internal/handler/dto
wizardchen d60614475e test(api-keys): add unit tests for tenant API key validation
Introduce unit tests for the tenant API key validation logic, ensuring that scoped keys require capabilities, while full-access keys are validated without them. The tests cover various scenarios, reinforcing the expected behavior of the API key validation function.
2026-07-07 12:00:13 +08:00
..
auth.go fix(security): redact secrets in login and tenant KV update responses 2026-07-02 14:41:42 +08:00
auth_test.go fix(api-keys): enforce scope from request context after attach 2026-07-07 12:00:13 +08:00
datasource.go fix(datasource): harden RSS connector and editor UX after review 2026-06-23 17:30:38 +08:00
datasource_test.go fix(datasource): harden RSS connector and editor UX after review 2026-06-23 17:30:38 +08:00
mcp.go fix(security): harden secret redaction follow-ups for PR #1884 2026-07-02 14:41:42 +08:00
mcp_test.go fix(security): harden secret redaction follow-ups for PR #1884 2026-07-02 14:41:42 +08:00
model.go fix(security): harden secret redaction follow-ups for PR #1884 2026-07-02 14:41:42 +08:00
model_test.go fix(security): harden secret redaction follow-ups for PR #1884 2026-07-02 14:41:42 +08:00
role.go test(api-keys): add unit tests for tenant API key validation 2026-07-07 12:00:13 +08:00
role_test.go test(api-keys): add unit tests for tenant API key validation 2026-07-07 12:00:13 +08:00
tenant.go feat: add scoped tenant api keys 2026-07-07 12:00:13 +08:00
tenant_test.go fix(api-keys): enforce scope from request context after attach 2026-07-07 12:00:13 +08:00
test_helpers.go fix(security): redact integration secrets from viewer-accessible endpoints 2026-07-02 14:41:42 +08:00
web_search_provider.go fix(security): redact integration secrets from viewer-accessible endpoints 2026-07-02 14:41:42 +08:00
web_search_provider_test.go fix(security): redact integration secrets from viewer-accessible endpoints 2026-07-02 14:41:42 +08:00