🐛 Move Anthropic API key from localStorage to sessionStorage#13414
Conversation
Use sessionStorage instead of localStorage for the Anthropic API key so it is automatically cleared when the browser tab closes, reducing the window of exposure from XSS or malicious extensions. Signed-off-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
✅ Deploy Preview for kubestellarconsole ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
👋 Hey @kubestellar-hive[bot] — thanks for opening this PR!
This is an automated message. |
There was a problem hiding this comment.
🔒 Security review passed — Moves Anthropic API key from localStorage to sessionStorage. All 2 read locations + tests updated. Correctly addresses #13411. LGTM.
|
Thank you for your contribution! Your PR has been merged. Check out what's new:
Stay connected: Slack #kubestellar-dev | Multi-Cluster Survey |
|
Post-merge build verification passed ✅ Both Go and frontend builds compiled successfully against merge commit |
❌ Post-Merge Verification: failedCommit: |
Fixes #13411
Problem
The Anthropic API key is stored in
localStorage, which:Fix
localStorageusage for the Anthropic key withsessionStorageRisk
LOW — behavioral change is that the key no longer persists across browser sessions. Users will need to re-enter it when opening a new tab.