[PR #6411] [MERGED] Improve protected actions #23300

Closed
opened 2026-05-16 05:55:23 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dani-garcia/vaultwarden/pull/6411
Author: @dani-garcia
Created: 10/29/2025
Status: Merged
Merged: 10/29/2025
Merged by: @dani-garcia

Base: mainHead: improve-protected-actions


📝 Commits (4)

  • 0c7ab88 Improve protected actions
  • 8de1915 Match usage on two factor
  • 3cdb557 Use saturating add
  • 8e01bca Don't delete token when tracking attempts

📊 Changes

2 files changed (+25 additions, -15 deletions)

View changed files

📝 src/api/core/two_factor/email.rs (+1 -1)
📝 src/api/core/two_factor/protected_actions.rs (+24 -14)

📄 Description

  • Use saturating ops when counting the attempts
  • Use #[serde(with = "ts_seconds")] to simplify parsing of DB data, and add functions to simplify time handling code.
  • Rate limit email sending.
  • Use email_attempts_limit rather than hardcoded limit

🔄 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/6411 **Author:** [@dani-garcia](https://github.com/dani-garcia) **Created:** 10/29/2025 **Status:** ✅ Merged **Merged:** 10/29/2025 **Merged by:** [@dani-garcia](https://github.com/dani-garcia) **Base:** `main` ← **Head:** `improve-protected-actions` --- ### 📝 Commits (4) - [`0c7ab88`](https://github.com/dani-garcia/vaultwarden/commit/0c7ab88320014415458a7ed2b67bb75a8755cfbe) Improve protected actions - [`8de1915`](https://github.com/dani-garcia/vaultwarden/commit/8de1915e31d080a6e2a9bf1ff6532600cce758ce) Match usage on two factor - [`3cdb557`](https://github.com/dani-garcia/vaultwarden/commit/3cdb557455e13549eb61f18512a8a61b7fd5fb0a) Use saturating add - [`8e01bca`](https://github.com/dani-garcia/vaultwarden/commit/8e01bcac7c1a8db7de1bb334bc7d972a357d99d6) Don't delete token when tracking attempts ### 📊 Changes **2 files changed** (+25 additions, -15 deletions) <details> <summary>View changed files</summary> 📝 `src/api/core/two_factor/email.rs` (+1 -1) 📝 `src/api/core/two_factor/protected_actions.rs` (+24 -14) </details> ### 📄 Description - Use saturating ops when counting the attempts - Use `#[serde(with = "ts_seconds")]` to simplify parsing of DB data, and add functions to simplify time handling code. - Rate limit email sending. - Use `email_attempts_limit` rather than hardcoded limit --- <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-05-16 05:55:23 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vaultwarden#23300