fix(frontend): keep HMAC secret visible for copy after save

API principal HMAC secrets are write-only from the server, so users could
not copy a newly generated or rotated key before the input was cleared.
Retain the plaintext in-session after save, simplify secret field controls,
and add copy guidance across locales.
This commit is contained in:
wizardchen
2026-07-07 16:38:11 +08:00
committed by lyingbug
parent 974231190c
commit f7b427009d
5 changed files with 99 additions and 42 deletions
+2 -1
View File
@@ -5873,7 +5873,8 @@ export default {
tokenHeaderDesc: "클라이언트는 이 고정 헤더에 백엔드가 서명한 JWT를 전달합니다.",
hmacSecret: "HMAC secret",
hmacSecretDesc: "WeKnora에 저장된 것과 동일한 secret. 백엔드에서 JWT 서명에만 사용하며 요청 헤더로 보내지 않습니다.",
secretConfigured: "Secret configured; enter a new value to rotate",
secretConfigured: "Secret configured (not shown again); enter a new value to rotate",
secretSavedCopyHint: "Secret saved. Copy it to your backend now — you will not be able to view it again after leaving this page.",
generateSecret: "Secret 생성",
hmacSecretResetConfirmTitle: "HMAC secret을 재설정할까요?",
hmacSecretResetConfirmBody: "재설정하면 기존 HMAC secret은 즉시 무효화됩니다. 기존 secret으로 JWT를 서명하는 모든 백엔드 서비스는 새 secret으로 교체해야 서명 토큰 호출을 계속 사용할 수 있습니다. 이 작업은 되돌릴 수 없습니다.",