[PR #3215] [MERGED] don't nullify key when editing emergency access #6884

Closed
opened 2026-03-07 21:07:25 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dani-garcia/vaultwarden/pull/3215
Author: @stefan0xC
Created: 2/1/2023
Status: Merged
Merged: 2/12/2023
Merged by: @dani-garcia

Base: mainHead: fix-post-emergency-access


📝 Commits (2)

  • e65fbbf don't nullify key when editing emergency access
  • c58aac5 Merge branch 'main' into fix-post-emergency-access

📊 Changes

1 file changed (+3 additions, -1 deletions)

View changed files

📝 src/api/core/emergency_access.rs (+3 -1)

📄 Description

I've looked into this some more and the client does not send the key while editing an emergency access contact, so the field would be emptied on a change of the wait days or access level.

This simple fix should hopefully prevent issues like #3196 where the key has been set to NULL.

Closes #3196


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/dani-garcia/vaultwarden/pull/3215 **Author:** [@stefan0xC](https://github.com/stefan0xC) **Created:** 2/1/2023 **Status:** ✅ Merged **Merged:** 2/12/2023 **Merged by:** [@dani-garcia](https://github.com/dani-garcia) **Base:** `main` ← **Head:** `fix-post-emergency-access` --- ### 📝 Commits (2) - [`e65fbbf`](https://github.com/dani-garcia/vaultwarden/commit/e65fbbfc2105566a3c457dd34d3ae790ce7f4fb5) don't nullify key when editing emergency access - [`c58aac5`](https://github.com/dani-garcia/vaultwarden/commit/c58aac585ba15ae7b02123e9d5eef5d398e37ff5) Merge branch 'main' into fix-post-emergency-access ### 📊 Changes **1 file changed** (+3 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/api/core/emergency_access.rs` (+3 -1) </details> ### 📄 Description I've looked into this some more and the client [does not send the key](https://github.com/bitwarden/clients/blob/7ebedbecfbbdfe17b011ca6490bf98fdd5116016/apps/web/src/app/settings/emergency-access-add-edit.component.ts#L74-L78) while editing an emergency access contact, so the field would be emptied on a change of the wait days or access level. This simple fix should hopefully prevent issues like #3196 where the key has been set to `NULL`. Closes #3196 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-07 21:07:25 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vaultwarden#6884