Skip to content

refactor(dashboard): migrate env-var vault calls to buf-generated connect TS client #6077

@coderabbitai

Description

@coderabbitai

Summary

Currently, the dashboard manually defines TypeScript types and fetch wrappers for vault RPC calls (e.g., EncryptBulkRequest, EncryptBulkResponse, vault.encryptBulk) in web/apps/dashboard/lib/vault.ts.

The proto definitions already exist; we should use buf to generate a TypeScript connect client instead of maintaining hand-written fetch wrappers and type definitions.

Action Items

  • Use buf to generate a TypeScript connect client from the existing vault proto definitions
  • Migrate all env-var related vault calls (encrypt, encryptBulk, decrypt, etc.) to use the generated connect client
  • Remove the hand-crafted types and fetch wrappers from web/apps/dashboard/lib/vault.ts

Context

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions