[PR #3059] [MERGED] Validate YUBICO_SERVER string (#3003) #3104

Closed
opened 2025-10-09 18:17:14 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dani-garcia/vaultwarden/pull/3059
Author: @BlackDex
Created: 12/28/2022
Status: Merged
Merged: 1/9/2023
Merged by: @dani-garcia

Base: mainHead: issue-3003


📝 Commits (1)

📊 Changes

1 file changed (+11 additions, -2 deletions)

View changed files

📝 src/config.rs (+11 -2)

📄 Description

If the YUBICO_SERVER is defined to an empty string, the whole yubikey implementation doesn't work anymore.

This PR adds a check for this variable that it at least starts with https://.

Resolves #3003


🔄 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/3059 **Author:** [@BlackDex](https://github.com/BlackDex) **Created:** 12/28/2022 **Status:** ✅ Merged **Merged:** 1/9/2023 **Merged by:** [@dani-garcia](https://github.com/dani-garcia) **Base:** `main` ← **Head:** `issue-3003` --- ### 📝 Commits (1) - [`ca417d3`](https://github.com/dani-garcia/vaultwarden/commit/ca417d32578c3b6224c5aa8df56eb776712941b7) Validate YUBICO_SERVER string (#3003) ### 📊 Changes **1 file changed** (+11 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `src/config.rs` (+11 -2) </details> ### 📄 Description If the `YUBICO_SERVER` is defined to an empty string, the whole yubikey implementation doesn't work anymore. This PR adds a check for this variable that it at least starts with `https://`. Resolves #3003 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2025-10-09 18:17:14 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/vaultwarden#3104