API Keys: Display existing keys + copy to clipboard #32
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_aibroker#32
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Expected Behavior
sk-...xxxx)Acceptance Criteria
Implementation Spec for Issue #32
Objective
Display all existing API keys on the API Keys tab with masked values, add a "Copy to clipboard" button for each key, and add a "Reveal/Hide" toggle so the admin can see the full key value when needed.
Requirements
apikeys.listRPC returns bothmasked_keyandkey(full) fieldsdisableApiKey()passes masked key instead of full keyFiles to Modify
crates/hero_aibroker_ui/src/api/mod.rshandle_apikeys_listto return bothkey(full) andmasked_keycrates/hero_aibroker_ui/templates/index.htmlcrates/hero_aibroker_ui/templates/components/api_docs.htmlImplementation Plan
Step 1: Update
apikeys.listRPC to return full key dataFiles:
api/mod.rskey(full) andmasked_keyin JSON responseStep 2: Update API Keys tab HTML and JavaScript
Files:
templates/index.htmlStep 3: Update API Docs template
Files:
templates/components/api_docs.htmlmasked_keyfield inapikeys.listresponseAcceptance Criteria
Notes
disableApiKey()currently passes masked key (will be fixed)