mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-03-16 03:40:42 -05:00
[PR #4143] [MERGED] Several small fixes for open issues #7023
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dani-garcia/vaultwarden/pull/4143
Author: @BlackDex
Created: 12/6/2023
Status: ✅ Merged
Merged: 12/9/2023
Merged by: @dani-garcia
Base:
main← Head:small-fixes📝 Commits (7)
56d47d9Fix BWDC when re-run with cleared cache327a8d7Remove useless variablefd9a059Check some.gitpaths to force a rebuild15d6520Do not delete dir on file delete46fb588Fix healthcheck when using an ENV filee85ecc4Add missing routeebb70b9Update crates to update the openssl crate📊 Changes
8 files changed (+41 additions, -39 deletions)
View changed files
📝
Cargo.lock(+18 -19)📝
Cargo.toml(+2 -5)📝
build.rs(+5 -0)📝
docker/healthcheck.sh(+10 -0)📝
src/api/core/ciphers.rs(+3 -5)📝
src/api/core/emergency_access.rs(+1 -0)📝
src/db/models/organization.rs(+1 -1)📝
src/util.rs(+1 -9)📄 Description
Fix healthcheck when using an ENV file
If someone is using a
.envfile or configured theENV_FILEvariableto use that as it's configuration, this was missed by the healthcheck.
So,
DOMAINandROCKET_TLSwere not seen, and not used in these cases.This commit fixes this by checking for this file and if it exists, then
it will load those variables first.
Fixes #4112
Do not delete dir on file delete
Previously during a
delete_filecheck we also tried to delete theparent directory and ignored all errors, like not being empty for
example.
Since this function is called
delete_fileand does not mentionanything in regards to a directory i have removed that code and it will
now only delete the file and leave the rest as-is.
If this somehow is still needed or wanted, which i do not think we want,
then we should create a new function.
Fixes #4081
Check some
.gitpaths to force a rebuildWhen a checked-out repo switches to a specific tag, and that tag does
not have anything else changed in the files except the tag, it could
happen that the build process doesn't see any changes, while it could be
that the version string needs to be different.
This commit ensures that if some specific paths are changed within the
.git directory, cargo will be triggered to rebuild.
Fixes #4087
Remove useless variable
During some refactoring this seems to be overlooked.
This variable gets filled but isn't used at all afterwards.
Fixes #4105
Fix BWDC when re-run with cleared cache
Using the BWDC with a cleared cache caused invited users to be converted
to accepted users.
The problem was a wrong check for the
restorefunction.Fixes #4114
Add missing route
While there was a function and a derive, this endpoint wasn't part of
the routes. Since Bitwarden does have this endpoint ill add the route
instead of deleting it.
Fixes #4076
Fixes #4144
Update crates to update the openssl crate
Because of a bug in the openssl-sys crate we pinned the version to an
older version. This issue has been fixed and was released 2 days ago.
This commit updates the openssl crates including others.
This should also fix the issues with building Vaultwarden using newer
versions of LibreSSL.
And also fixes the security/dependabot tickets.
Fixes #4051
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.