Skip to content

Fix Access Key security updates#17

Open
Mcrich23 wants to merge 2 commits intomasterfrom
fix/access-key-security-updates
Open

Fix Access Key security updates#17
Mcrich23 wants to merge 2 commits intomasterfrom
fix/access-key-security-updates

Conversation

@Mcrich23
Copy link
Copy Markdown
Contributor

Complements ProxLock/Backend#16 with the new API changes.

@Mcrich23 Mcrich23 requested a review from Copilot February 21, 2026 22:03
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying proxlock-frontend-old with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4c7af62
Status: ✅  Deploy successful!
Preview URL: https://34a26ee8.proxlock-frontend.pages.dev
Branch Preview URL: https://fix-access-key-security-upda.proxlock-frontend.pages.dev

View logs

@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
proxlock-frontend 4c7af62 Commit Preview URL

Branch Preview URL
Feb 21 2026, 10:03 PM

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the frontend to align with backend security improvements for access key management. The key security enhancement is that access keys are now only shown in full during creation and cannot be retrieved afterward, with only a display prefix shown in the keys list.

Changes:

  • Updated UserAccessKey interface to use id for identification and added optional key (only present on creation) and displayPrefix fields
  • Removed the ability to copy existing keys from the list view, as full keys are no longer available after creation
  • Changed access key deletion to use id instead of the key value
  • Updated modal message to emphasize that keys must be copied immediately upon creation

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/types/index.ts Updated UserAccessKey interface to include id, make key optional, and add displayPrefix field for secure key display
src/pages/UserAccessKeysPage.tsx Removed key mapping logic, updated delete handler to use id, removed copy functionality from list view, updated display formatting, and changed modal warning message
src/App.css Adjusted layout styles for the new key display format including flexbox properties and text alignment

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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