Skip to content

fix: enforce hosted api-key controls and audit sanitization#42

Open
sammargolis wants to merge 1 commit intofeat/gcp-stt-provider-hardeningfrom
fix/hosted-api-key-and-audit-sanitization
Open

fix: enforce hosted api-key controls and audit sanitization#42
sammargolis wants to merge 1 commit intofeat/gcp-stt-provider-hardeningfrom
fix/hosted-api-key-and-audit-sanitization

Conversation

@sammargolis
Copy link
Collaborator

Summary

  • enforces hosted-mode restrictions on user-managed API key persistence
  • removes hosted analytics injection in web layout path
  • expands server audit sanitization coverage and tests
  • fixes API-key route encryption/decryption typing for strict TS compatibility

Security impact

  • prevents hosted server-side local filesystem key-management path by default
  • standardizes sanitized server-side logging on sensitive routes

PHI handling impact

  • strengthens non-PHI audit logging guarantees
  • ensures guarded logging checks remain enforced

Tests executed

  • pnpm build:test
  • pnpm exec tsc --project apps/web/tsconfig.json --noEmit
  • pnpm test:no-phi-logs

Rollback plan

  • revert this PR to return prior API key and audit logging behavior

@sammargolis sammargolis force-pushed the feat/gcp-stt-provider-hardening branch from 5bd736a to f9d03e2 Compare March 2, 2026 17:17
@sammargolis sammargolis force-pushed the fix/hosted-api-key-and-audit-sanitization branch from 1485365 to bcdc9cc Compare March 2, 2026 17:17
@sammargolis sammargolis force-pushed the feat/gcp-stt-provider-hardening branch from f9d03e2 to 84c4ade Compare March 2, 2026 17:19
@sammargolis sammargolis force-pushed the fix/hosted-api-key-and-audit-sanitization branch from bcdc9cc to 14499b6 Compare March 2, 2026 17:19
@sammargolis sammargolis force-pushed the feat/gcp-stt-provider-hardening branch from 84c4ade to 64e13b6 Compare March 2, 2026 17:23
@sammargolis sammargolis force-pushed the fix/hosted-api-key-and-audit-sanitization branch from 14499b6 to cad6bfb Compare March 2, 2026 17:24
@sammargolis sammargolis force-pushed the feat/gcp-stt-provider-hardening branch from 64e13b6 to e54dadc Compare March 3, 2026 00:13
@sammargolis sammargolis force-pushed the fix/hosted-api-key-and-audit-sanitization branch from cad6bfb to 8e1bcc7 Compare March 3, 2026 00:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant