[PR #6141] [MERGED] Perform same checks when setting kdf #7358

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

📋 Pull Request Information

Original PR: https://github.com/dani-garcia/vaultwarden/pull/6141
Author: @Timshel
Created: 8/6/2025
Status: Merged
Merged: 8/7/2025
Merged by: @dani-garcia

Base: mainHead: check_kdf


📝 Commits (1)

  • d5085ca Perform same checks when setting kdf

📊 Changes

1 file changed (+30 additions, -27 deletions)

View changed files

📝 src/api/core/accounts.rs (+30 -27)

📄 Description

In the SSO PR it was recommended to check the kdf settings in post_set_password.

Since it seemed logical to apply it to the register endpoint decided to create this PR too.

From what I can see the Option for kdf and kdf_iterations was not necessary:


🔄 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/6141 **Author:** [@Timshel](https://github.com/Timshel) **Created:** 8/6/2025 **Status:** ✅ Merged **Merged:** 8/7/2025 **Merged by:** [@dani-garcia](https://github.com/dani-garcia) **Base:** `main` ← **Head:** `check_kdf` --- ### 📝 Commits (1) - [`d5085ca`](https://github.com/dani-garcia/vaultwarden/commit/d5085cacd20b38caaf7bf5c5ee609fbaee3a928b) Perform same checks when setting kdf ### 📊 Changes **1 file changed** (+30 additions, -27 deletions) <details> <summary>View changed files</summary> 📝 `src/api/core/accounts.rs` (+30 -27) </details> ### 📄 Description In the SSO PR it was [recommended](https://github.com/dani-garcia/vaultwarden/pull/3899#discussion_r2254247199) to check the kdf settings in `post_set_password`. Since it seemed logical to apply it to the register endpoint decided to create this PR too. From what I can see the `Option` for `kdf` and `kdf_iterations` was not necessary: - Old [register.request.ts](https://github.com/bitwarden/clients/blob/web-v2025.1.1/libs/common/src/models/request/register.request.ts) - [register-finish.request](https://github.com/bitwarden/clients/blob/main/libs/common/src/auth/models/request/registration/register-finish.request.ts) --- <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:15:58 -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#7358