mirror of
https://github.com/langgenius/dify.git
synced 2026-06-27 07:31:09 +08:00
Previously the console api-key list returned every key's full plaintext token, so anyone with console access could retrieve the secret of an already-created key (via the copy button or the raw API response). This is contrary to the reveal-once norm. - List endpoints (app keys, workspace dataset keys, per-dataset keys) now return a masked token (prefix + last 4); the full secret is only ever returned by the create endpoint, at creation time. - Frontend secret-key modal displays the masked token as-is and drops the copy affordance for existing keys (copying a masked value is pointless). Applies to both app and dataset keys since they share the modal and the ApiKeyItem response model. |
||
|---|---|---|
| .. | ||
| __tests__ | ||
| hooks | ||
| secret-key | ||
| template | ||
| ApiServer.tsx | ||
| code.tsx | ||
| doc.tsx | ||
| index.tsx | ||
| md.tsx | ||
| tag.tsx | ||
| toc-panel.tsx | ||