Skip to content

feat: add Static KMS backend support to SSE/KMS configuration page - #179

Merged
overtrue merged 1 commit into
mainfrom
feat/static-kms-backend
Jul 25, 2026
Merged

feat: add Static KMS backend support to SSE/KMS configuration page#179
overtrue merged 1 commit into
mainfrom
feat/static-kms-backend

Conversation

@reatang

@reatang reatang commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds full Console-side support for the Static KMS backend introduced in rustfs/rustfs#5222.

Changes

types/kms.ts

  • Add "Static" to KmsBackendType union
  • Add key_id to KmsBackendSummary
  • Add KmsStaticConfigPayload interface with secret_key field
  • Extend KmsConfigPayload union

app/(dashboard)/sse/page.tsx

  • Wire "static" backend through form state, normalization, deserialization, and payload builder
  • Render secret key password input and backend selector dropdown option
  • Make form read-only when static backend is configured (staticKmsReadOnly)
  • Disable Create Key / Schedule Deletion / Delete Immediately buttons (5 locations: toolbar, mobile cards ×2, desktop dropdown ×2)
  • Exclude Static from canSetCreatedKeyAsDefault

i18n/locales/en-US.json

  • Add 5 translation keys for static KMS UI strings

Verification

  • pnpm tsc --noEmit — no new errors
  • pnpm lint — passed
  • pnpm build — compiled successfully

- Add 'Static' variant to KmsBackendType and KmsConfigPayload union
- Add KmsStaticConfigPayload interface with secret_key field
- Add key_id to KmsBackendSummary for backend status deserialization
- Wire static backend in normalizeBackendType, buildFormStateFromStatus, buildConfigPayload
- Render secret key password input and backend selector for static
- Mark form read-only and disable Create/Delete key buttons when static is configured
- Add 5 i18n keys for static KMS UI strings
@reatang
reatang requested a review from overtrue July 25, 2026 08:24
@overtrue
overtrue merged commit b462a20 into main Jul 25, 2026
9 of 10 checks passed
@overtrue
overtrue deleted the feat/static-kms-backend branch July 25, 2026 12:25
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.

2 participants