Skip to content

Generate, reveal and copy endpoint API keys in the endpoint dialog - #6

Merged
adospace merged 1 commit into
mainfrom
feature/endpoint-api-key-generate
Oct 21, 2026
Merged

adospace merged 1 commit into
mainfrom
feature/endpoint-api-key-generate

Conversation

@adospace

Copy link
Copy Markdown
Owner

Summary

  • The API Key field in the Add/Edit Endpoint dialog gets a Generate new key action: 32 random bytes, base64url-encoded (same format as agent keys, without the csa_ prefix), generated client-side and persisted only on Save.
  • Show/hide toggle to reveal an existing key.
  • Copy-to-clipboard button for new or existing keys (disabled when empty, brief check-mark feedback).
  • app.css regenerated by Tailwind for the new utility classes.

Notes

  • Regenerating the key on a published endpoint invalidates the old one on save; clients using it will stop authenticating.

Test plan

  • Add endpoint → API Key auth → Generate, copy, save; sync with the key succeeds
  • Edit existing API-key endpoint → show/copy the stored key
  • Copy button disabled when field is empty

The API Key field in the Add/Edit Endpoint dialog now offers a
"Generate new key" action (32 random bytes, base64url), a show/hide
toggle, and a copy-to-clipboard button for new or existing keys.
@adospace
adospace merged commit 366e4be into main Oct 21, 2026
2 checks passed
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