-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #3624: fix manager permission within groups #3754
Conversation
e7beb25
to
7a1458e
Compare
What if a Manager is member of a group with access to all collections? |
you are right, we lack something since in this case the manager cannot edit the collection. I'm looking into it, thanks =) |
@stefan0xC This d282b32 should do the job. |
Any progress? |
It has to be checked first. Did not had time yet to validate. Working on other issues when i have the time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, it took me a bit but I've finally had time to review your changes.
I think the comments and the naming of some variables/functions could be improved to make it more obvious why something is done so the changes are easier to review. I've added some suggestions for your changes but this probably applies to other variables and comments as well.
With the renamed variables I think it is easier to see how your approach could be improved upon. I.e. instead of returning the two lists of member ids and later checking if they contain the uuid of the current user, we really only care if user_org
has full access via a group or if not, if they have access to a given collection via a group. So we could make two functions that check
- if the given user_org has full access to an organization (either directly or via a group)
- if the given user_org is a member of a group assigned to the given collection.
edit: also we might need to add similar changes to get_org_collection_details
@matlink, could you rebase and address the items mentioned by @stefan0xC? |
@BlackDex will do ;) |
8311f45
to
50048a9
Compare
@BlackDex @stefan0xC I've made the changes you requested and rebased. Needs further testing ;) |
This comment was marked as resolved.
This comment was marked as resolved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@BlackDex Can you review/test the changes? 🙈
And, it needs a rebase of course. |
Hey Guys, I don't want to put pressure on you people, but do you think we can nudge this one over the finish line? I would literally send you pizza :)))) |
So I just need to rebase? |
@matlink no see my request. |
Co-authored-by: Stefan Melmuk <[email protected]>
instead of returning the two lists of member ids and later checking if they contain the uuid of the current user, we really only care if the current user has full access via a group or if they have access to a given collection via a group
Co-authored-by: Mathijs van Veluw <[email protected]>
0570532
to
4d9ff9a
Compare
@BlackDex I've applied you suggestion. |
Done. |
Hey, can this be merged now? The issue seems to be resolved to everybody's satisfaction. If testing is needed I would volunteer. |
…ia#3754) * Fix dani-garcia#3624: fix manager permission within groups * Query returns UUID only * Fix issue when user is manager and in a group having access to all collections * optimize condition check * fix(groups): renaming and optimizations * fix: wrong organization group membership detection * Simplify group membership check Co-authored-by: Stefan Melmuk <[email protected]> * Remove unused statement * improve check if the user has access via groups instead of returning the two lists of member ids and later checking if they contain the uuid of the current user, we really only care if the current user has full access via a group or if they have access to a given collection via a group * improve comments for get_org_collections_details * small refactor to make it easier to review * fix(groups): query full access via group only when necessary Co-authored-by: Mathijs van Veluw <[email protected]> * chore(fmt): apply rustfmt --------- Co-authored-by: Stefan Melmuk <[email protected]> Co-authored-by: Stefan Melmuk <[email protected]> Co-authored-by: Mathijs van Veluw <[email protected]>
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [vaultwarden/server](https://togithub.com/dani-garcia/vaultwarden) | minor | `1.30.5` -> `1.31.0` | --- ### Release Notes <details> <summary>dani-garcia/vaultwarden (vaultwarden/server)</summary> ### [`v1.31.0`](https://togithub.com/dani-garcia/vaultwarden/releases/tag/1.31.0) [Compare Source](https://togithub.com/dani-garcia/vaultwarden/compare/1.30.5...1.31.0) #### Major changes and New Features - Initial support for the beta releases of the new native mobile apps - Removed support for WebSocket traffic on port 3012, as it's been integrated on the main HTTP port for a few releases - Updated included web vault to 2024.5.1 #### General mention Bitwarden has changed the push API endpoints which affects the EU region endpoint users. So if you use the push functionality and use the EU region you need to make some changes. You have to update `push.bitwarden.eu` to `api.bitwarden.eu`. This is also an issue with any previous version of Vaultwarden. #### What's Changed - chore: remove repetitive words by [@​one230six](https://togithub.com/one230six) in [https://github.com/dani-garcia/vaultwarden/pull/4422](https://togithub.com/dani-garcia/vaultwarden/pull/4422) - Fix comment in events.rs by [@​KrappRamiro](https://togithub.com/KrappRamiro) in [https://github.com/dani-garcia/vaultwarden/pull/4408](https://togithub.com/dani-garcia/vaultwarden/pull/4408) - Improve JWT RSA key initialization and avoid saving public key by [@​dani-garcia](https://togithub.com/dani-garcia) in [https://github.com/dani-garcia/vaultwarden/pull/4085](https://togithub.com/dani-garcia/vaultwarden/pull/4085) - Remove custom WebSocket code by [@​BlackDex](https://togithub.com/BlackDex) in [https://github.com/dani-garcia/vaultwarden/pull/4001](https://togithub.com/dani-garcia/vaultwarden/pull/4001) - refactor: replace panic with a graceful exit by [@​tessus](https://togithub.com/tessus) in [https://github.com/dani-garcia/vaultwarden/pull/4402](https://togithub.com/dani-garcia/vaultwarden/pull/4402) - Small improvements around email change by [@​Timshel](https://togithub.com/Timshel) in [https://github.com/dani-garcia/vaultwarden/pull/4415](https://togithub.com/dani-garcia/vaultwarden/pull/4415) - Change timestamp data type. by [@​gzfrozen](https://togithub.com/gzfrozen) in [https://github.com/dani-garcia/vaultwarden/pull/4355](https://togithub.com/dani-garcia/vaultwarden/pull/4355) - Fix [#​3624](https://togithub.com/dani-garcia/vaultwarden/issues/3624): fix manager permission within groups by [@​matlink](https://togithub.com/matlink) in [https://github.com/dani-garcia/vaultwarden/pull/3754](https://togithub.com/dani-garcia/vaultwarden/pull/3754) - automatically use email address as 2fa provider by [@​stefan0xC](https://togithub.com/stefan0xC) in [https://github.com/dani-garcia/vaultwarden/pull/4317](https://togithub.com/dani-garcia/vaultwarden/pull/4317) - fix: typos by [@​testwill](https://togithub.com/testwill) in [https://github.com/dani-garcia/vaultwarden/pull/4440](https://togithub.com/dani-garcia/vaultwarden/pull/4440) - Update chrono and sqlite by [@​BlackDex](https://togithub.com/BlackDex) in [https://github.com/dani-garcia/vaultwarden/pull/4436](https://togithub.com/dani-garcia/vaultwarden/pull/4436) - Update Rust and crates by [@​BlackDex](https://togithub.com/BlackDex) in [https://github.com/dani-garcia/vaultwarden/pull/4445](https://togithub.com/dani-garcia/vaultwarden/pull/4445) - Use async verify for Yubikey by [@​dani-garcia](https://togithub.com/dani-garcia) in [https://github.com/dani-garcia/vaultwarden/pull/4448](https://togithub.com/dani-garcia/vaultwarden/pull/4448) - update web-vault to v2024.3.1 (new vertical layout) by [@​stefan0xC](https://togithub.com/stefan0xC) in [https://github.com/dani-garcia/vaultwarden/pull/4468](https://togithub.com/dani-garcia/vaultwarden/pull/4468) - Update crates and some Clippy fixes by [@​BlackDex](https://togithub.com/BlackDex) in [https://github.com/dani-garcia/vaultwarden/pull/4475](https://togithub.com/dani-garcia/vaultwarden/pull/4475) - Update Key Rotation web-vault v2024.3.x by [@​BlackDex](https://togithub.com/BlackDex) in [https://github.com/dani-garcia/vaultwarden/pull/4446](https://togithub.com/dani-garcia/vaultwarden/pull/4446) - Update Crate and Rust by [@​BlackDex](https://togithub.com/BlackDex) in [https://github.com/dani-garcia/vaultwarden/pull/4522](https://togithub.com/dani-garcia/vaultwarden/pull/4522) - Implement custom DNS resolver by [@​dani-garcia](https://togithub.com/dani-garcia) in [https://github.com/dani-garcia/vaultwarden/pull/3988](https://togithub.com/dani-garcia/vaultwarden/pull/3988) - Add extra (unsupported) container build arch's by [@​BlackDex](https://togithub.com/BlackDex) in [https://github.com/dani-garcia/vaultwarden/pull/4524](https://togithub.com/dani-garcia/vaultwarden/pull/4524) - Pass in collection ids to notifier when sharing cipher. by [@​kristof-mattei](https://togithub.com/kristof-mattei) in [https://github.com/dani-garcia/vaultwarden/pull/4517](https://togithub.com/dani-garcia/vaultwarden/pull/4517) - improve access to collections via groups by [@​stefan0xC](https://togithub.com/stefan0xC) in [https://github.com/dani-garcia/vaultwarden/pull/4441](https://togithub.com/dani-garcia/vaultwarden/pull/4441) - fix emergency access invites by [@​stefan0xC](https://togithub.com/stefan0xC) in [https://github.com/dani-garcia/vaultwarden/pull/4337](https://togithub.com/dani-garcia/vaultwarden/pull/4337) - Some fixes for the new mobile apps by [@​dani-garcia](https://togithub.com/dani-garcia) in [https://github.com/dani-garcia/vaultwarden/pull/4526](https://togithub.com/dani-garcia/vaultwarden/pull/4526) - Update Rust, crates and web-vault by [@​BlackDex](https://togithub.com/BlackDex) in [https://github.com/dani-garcia/vaultwarden/pull/4558](https://togithub.com/dani-garcia/vaultwarden/pull/4558) - Improve Commentary Aesthetics by [@​rich-purnell](https://togithub.com/rich-purnell) in [https://github.com/dani-garcia/vaultwarden/pull/4549](https://togithub.com/dani-garcia/vaultwarden/pull/4549) - Optimize Dockerfiles by [@​dfunkt](https://togithub.com/dfunkt) in [https://github.com/dani-garcia/vaultwarden/pull/4532](https://togithub.com/dani-garcia/vaultwarden/pull/4532) - also delete organization_api_key when deleting organizations by [@​stefan0xC](https://togithub.com/stefan0xC) in [https://github.com/dani-garcia/vaultwarden/pull/4557](https://togithub.com/dani-garcia/vaultwarden/pull/4557) - Fix public api for domains with path prefix by [@​FDHoho007](https://togithub.com/FDHoho007) in [https://github.com/dani-garcia/vaultwarden/pull/4500](https://togithub.com/dani-garcia/vaultwarden/pull/4500) - Update crates by [@​BlackDex](https://togithub.com/BlackDex) in [https://github.com/dani-garcia/vaultwarden/pull/4587](https://togithub.com/dani-garcia/vaultwarden/pull/4587) - Fix web-vault version in Docker(files/Settings) by [@​dfunkt](https://togithub.com/dfunkt) in [https://github.com/dani-garcia/vaultwarden/pull/4575](https://togithub.com/dani-garcia/vaultwarden/pull/4575) - Update Alpine to version 3.20 by [@​dfunkt](https://togithub.com/dfunkt) in [https://github.com/dani-garcia/vaultwarden/pull/4583](https://togithub.com/dani-garcia/vaultwarden/pull/4583) - differentiate external groups by organization id by [@​stefan0xC](https://togithub.com/stefan0xC) in [https://github.com/dani-garcia/vaultwarden/pull/4586](https://togithub.com/dani-garcia/vaultwarden/pull/4586) - Remove old knowndevice route by [@​Timshel](https://togithub.com/Timshel) in [https://github.com/dani-garcia/vaultwarden/pull/4578](https://togithub.com/dani-garcia/vaultwarden/pull/4578) - Update admin interface dependencies by [@​BlackDex](https://togithub.com/BlackDex) in [https://github.com/dani-garcia/vaultwarden/pull/4581](https://togithub.com/dani-garcia/vaultwarden/pull/4581) - Update rust and remove unused header values by [@​dani-garcia](https://togithub.com/dani-garcia) in [https://github.com/dani-garcia/vaultwarden/pull/4645](https://togithub.com/dani-garcia/vaultwarden/pull/4645) - Update crates, web-vault and GHA by [@​BlackDex](https://togithub.com/BlackDex) in [https://github.com/dani-garcia/vaultwarden/pull/4648](https://togithub.com/dani-garcia/vaultwarden/pull/4648) - Fix some nightly build errors by [@​dani-garcia](https://togithub.com/dani-garcia) in [https://github.com/dani-garcia/vaultwarden/pull/4657](https://togithub.com/dani-garcia/vaultwarden/pull/4657) - Fix some more nightly errors and remove lint that will become an error by default by [@​dani-garcia](https://togithub.com/dani-garcia) in [https://github.com/dani-garcia/vaultwarden/pull/4661](https://togithub.com/dani-garcia/vaultwarden/pull/4661) - Change API and structs to camelCase by [@​dani-garcia](https://togithub.com/dani-garcia) in [https://github.com/dani-garcia/vaultwarden/pull/4386](https://togithub.com/dani-garcia/vaultwarden/pull/4386) - Fix cipher creation on new android app by [@​dani-garcia](https://togithub.com/dani-garcia) in [https://github.com/dani-garcia/vaultwarden/pull/4670](https://togithub.com/dani-garcia/vaultwarden/pull/4670) - Remove mimalloc workaround by [@​dfunkt](https://togithub.com/dfunkt) in [https://github.com/dani-garcia/vaultwarden/pull/4606](https://togithub.com/dani-garcia/vaultwarden/pull/4606) - Change some missing PascalCase keys by [@​dani-garcia](https://togithub.com/dani-garcia) in [https://github.com/dani-garcia/vaultwarden/pull/4671](https://togithub.com/dani-garcia/vaultwarden/pull/4671) - Fix collections and native app issue by [@​BlackDex](https://togithub.com/BlackDex) in [https://github.com/dani-garcia/vaultwarden/pull/4685](https://togithub.com/dani-garcia/vaultwarden/pull/4685) - Fix duplicate folder creations during import by [@​BlackDex](https://togithub.com/BlackDex) in [https://github.com/dani-garcia/vaultwarden/pull/4702](https://togithub.com/dani-garcia/vaultwarden/pull/4702) - Remove duplicate registry step by [@​dfunkt](https://togithub.com/dfunkt) in [https://github.com/dani-garcia/vaultwarden/pull/4703](https://togithub.com/dani-garcia/vaultwarden/pull/4703) - add group support for Cipher::get_collections() by [@​stefan0xC](https://togithub.com/stefan0xC) in [https://github.com/dani-garcia/vaultwarden/pull/4592](https://togithub.com/dani-garcia/vaultwarden/pull/4592) - Switch registry cache compression algorithm to zstd by [@​dfunkt](https://togithub.com/dfunkt) in [https://github.com/dani-garcia/vaultwarden/pull/4704](https://togithub.com/dani-garcia/vaultwarden/pull/4704) - Update crates and web-vault by [@​BlackDex](https://togithub.com/BlackDex) in [https://github.com/dani-garcia/vaultwarden/pull/4714](https://togithub.com/dani-garcia/vaultwarden/pull/4714) - Some fixes for emergency access by [@​BlackDex](https://togithub.com/BlackDex) in [https://github.com/dani-garcia/vaultwarden/pull/4715](https://togithub.com/dani-garcia/vaultwarden/pull/4715) #### New Contributors - [@​one230six](https://togithub.com/one230six) made their first contribution in [https://github.com/dani-garcia/vaultwarden/pull/4422](https://togithub.com/dani-garcia/vaultwarden/pull/4422) - [@​KrappRamiro](https://togithub.com/KrappRamiro) made their first contribution in [https://github.com/dani-garcia/vaultwarden/pull/4408](https://togithub.com/dani-garcia/vaultwarden/pull/4408) - [@​testwill](https://togithub.com/testwill) made their first contribution in [https://github.com/dani-garcia/vaultwarden/pull/4440](https://togithub.com/dani-garcia/vaultwarden/pull/4440) - [@​kristof-mattei](https://togithub.com/kristof-mattei) made their first contribution in [https://github.com/dani-garcia/vaultwarden/pull/4517](https://togithub.com/dani-garcia/vaultwarden/pull/4517) - [@​rich-purnell](https://togithub.com/rich-purnell) made their first contribution in [https://github.com/dani-garcia/vaultwarden/pull/4549](https://togithub.com/dani-garcia/vaultwarden/pull/4549) - [@​dfunkt](https://togithub.com/dfunkt) made their first contribution in [https://github.com/dani-garcia/vaultwarden/pull/4532](https://togithub.com/dani-garcia/vaultwarden/pull/4532) - [@​FDHoho007](https://togithub.com/FDHoho007) made their first contribution in [https://github.com/dani-garcia/vaultwarden/pull/4500](https://togithub.com/dani-garcia/vaultwarden/pull/4500) **Full Changelog**: dani-garcia/vaultwarden@1.30.5...1.31.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - "after 10pm every weekday,every weekend,before 5am every weekday" in timezone America/New_York, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/NorkzYT/Wolflith). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjUuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQyNS4xIiwidGFyZ2V0QnJhbmNoIjoic3RhZ2luZyIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiLCJtaW5vciIsInJlbm92YXRlIl19--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…1.31.0@4e28425 by renovate (#24153) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [docker.io/vaultwarden/server](https://togithub.com/dani-garcia/vaultwarden) | minor | `1.30.5` -> `1.31.0` | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>dani-garcia/vaultwarden (docker.io/vaultwarden/server)</summary> ### [`v1.31.0`](https://togithub.com/dani-garcia/vaultwarden/releases/tag/1.31.0) [Compare Source](https://togithub.com/dani-garcia/vaultwarden/compare/1.30.5...1.31.0) #### Major changes and New Features - Initial support for the beta releases of the new native mobile apps - Removed support for WebSocket traffic on port 3012, as it's been integrated on the main HTTP port for a few releases - Updated included web vault to 2024.5.1 #### General mention Bitwarden has changed the push API endpoints which affects the EU region endpoint users. So if you use the push functionality and use the EU region you need to make some changes. You have to update `push.bitwarden.eu` to `api.bitwarden.eu`. This is also an issue with any previous version of Vaultwarden. #### What's Changed - chore: remove repetitive words by [@​one230six](https://togithub.com/one230six) in [https://github.com/dani-garcia/vaultwarden/pull/4422](https://togithub.com/dani-garcia/vaultwarden/pull/4422) - Fix comment in events.rs by [@​KrappRamiro](https://togithub.com/KrappRamiro) in [https://github.com/dani-garcia/vaultwarden/pull/4408](https://togithub.com/dani-garcia/vaultwarden/pull/4408) - Improve JWT RSA key initialization and avoid saving public key by [@​dani-garcia](https://togithub.com/dani-garcia) in [https://github.com/dani-garcia/vaultwarden/pull/4085](https://togithub.com/dani-garcia/vaultwarden/pull/4085) - Remove custom WebSocket code by [@​BlackDex](https://togithub.com/BlackDex) in [https://github.com/dani-garcia/vaultwarden/pull/4001](https://togithub.com/dani-garcia/vaultwarden/pull/4001) - refactor: replace panic with a graceful exit by [@​tessus](https://togithub.com/tessus) in [https://github.com/dani-garcia/vaultwarden/pull/4402](https://togithub.com/dani-garcia/vaultwarden/pull/4402) - Small improvements around email change by [@​Timshel](https://togithub.com/Timshel) in [https://github.com/dani-garcia/vaultwarden/pull/4415](https://togithub.com/dani-garcia/vaultwarden/pull/4415) - Change timestamp data type. by [@​gzfrozen](https://togithub.com/gzfrozen) in [https://github.com/dani-garcia/vaultwarden/pull/4355](https://togithub.com/dani-garcia/vaultwarden/pull/4355) - Fix [#​3624](https://togithub.com/dani-garcia/vaultwarden/issues/3624): fix manager permission within groups by [@​matlink](https://togithub.com/matlink) in [https://github.com/dani-garcia/vaultwarden/pull/3754](https://togithub.com/dani-garcia/vaultwarden/pull/3754) - automatically use email address as 2fa provider by [@​stefan0xC](https://togithub.com/stefan0xC) in [https://github.com/dani-garcia/vaultwarden/pull/4317](https://togithub.com/dani-garcia/vaultwarden/pull/4317) - fix: typos by [@​testwill](https://togithub.com/testwill) in [https://github.com/dani-garcia/vaultwarden/pull/4440](https://togithub.com/dani-garcia/vaultwarden/pull/4440) - Update chrono and sqlite by [@​BlackDex](https://togithub.com/BlackDex) in [https://github.com/dani-garcia/vaultwarden/pull/4436](https://togithub.com/dani-garcia/vaultwarden/pull/4436) - Update Rust and crates by [@​BlackDex](https://togithub.com/BlackDex) in [https://github.com/dani-garcia/vaultwarden/pull/4445](https://togithub.com/dani-garcia/vaultwarden/pull/4445) - Use async verify for Yubikey by [@​dani-garcia](https://togithub.com/dani-garcia) in [https://github.com/dani-garcia/vaultwarden/pull/4448](https://togithub.com/dani-garcia/vaultwarden/pull/4448) - update web-vault to v2024.3.1 (new vertical layout) by [@​stefan0xC](https://togithub.com/stefan0xC) in [https://github.com/dani-garcia/vaultwarden/pull/4468](https://togithub.com/dani-garcia/vaultwarden/pull/4468) - Update crates and some Clippy fixes by [@​BlackDex](https://togithub.com/BlackDex) in [https://github.com/dani-garcia/vaultwarden/pull/4475](https://togithub.com/dani-garcia/vaultwarden/pull/4475) - Update Key Rotation web-vault v2024.3.x by [@​BlackDex](https://togithub.com/BlackDex) in [https://github.com/dani-garcia/vaultwarden/pull/4446](https://togithub.com/dani-garcia/vaultwarden/pull/4446) - Update Crate and Rust by [@​BlackDex](https://togithub.com/BlackDex) in [https://github.com/dani-garcia/vaultwarden/pull/4522](https://togithub.com/dani-garcia/vaultwarden/pull/4522) - Implement custom DNS resolver by [@​dani-garcia](https://togithub.com/dani-garcia) in [https://github.com/dani-garcia/vaultwarden/pull/3988](https://togithub.com/dani-garcia/vaultwarden/pull/3988) - Add extra (unsupported) container build arch's by [@​BlackDex](https://togithub.com/BlackDex) in [https://github.com/dani-garcia/vaultwarden/pull/4524](https://togithub.com/dani-garcia/vaultwarden/pull/4524) - Pass in collection ids to notifier when sharing cipher. by [@​kristof-mattei](https://togithub.com/kristof-mattei) in [https://github.com/dani-garcia/vaultwarden/pull/4517](https://togithub.com/dani-garcia/vaultwarden/pull/4517) - improve access to collections via groups by [@​stefan0xC](https://togithub.com/stefan0xC) in [https://github.com/dani-garcia/vaultwarden/pull/4441](https://togithub.com/dani-garcia/vaultwarden/pull/4441) - fix emergency access invites by [@​stefan0xC](https://togithub.com/stefan0xC) in [https://github.com/dani-garcia/vaultwarden/pull/4337](https://togithub.com/dani-garcia/vaultwarden/pull/4337) - Some fixes for the new mobile apps by [@​dani-garcia](https://togithub.com/dani-garcia) in [https://github.com/dani-garcia/vaultwarden/pull/4526](https://togithub.com/dani-garcia/vaultwarden/pull/4526) - Update Rust, crates and web-vault by [@​BlackDex](https://togithub.com/BlackDex) in [https://github.com/dani-garcia/vaultwarden/pull/4558](https://togithub.com/dani-garcia/vaultwarden/pull/4558) - Improve Commentary Aesthetics by [@​rich-purnell](https://togithub.com/rich-purnell) in [https://github.com/dani-garcia/vaultwarden/pull/4549](https://togithub.com/dani-garcia/vaultwarden/pull/4549) - Optimize Dockerfiles by [@​dfunkt](https://togithub.com/dfunkt) in [https://github.com/dani-garcia/vaultwarden/pull/4532](https://togithub.com/dani-garcia/vaultwarden/pull/4532) - also delete organization_api_key when deleting organizations by [@​stefan0xC](https://togithub.com/stefan0xC) in [https://github.com/dani-garcia/vaultwarden/pull/4557](https://togithub.com/dani-garcia/vaultwarden/pull/4557) - Fix public api for domains with path prefix by [@​FDHoho007](https://togithub.com/FDHoho007) in [https://github.com/dani-garcia/vaultwarden/pull/4500](https://togithub.com/dani-garcia/vaultwarden/pull/4500) - Update crates by [@​BlackDex](https://togithub.com/BlackDex) in [https://github.com/dani-garcia/vaultwarden/pull/4587](https://togithub.com/dani-garcia/vaultwarden/pull/4587) - Fix web-vault version in Docker(files/Settings) by [@​dfunkt](https://togithub.com/dfunkt) in [https://github.com/dani-garcia/vaultwarden/pull/4575](https://togithub.com/dani-garcia/vaultwarden/pull/4575) - Update Alpine to version 3.20 by [@​dfunkt](https://togithub.com/dfunkt) in [https://github.com/dani-garcia/vaultwarden/pull/4583](https://togithub.com/dani-garcia/vaultwarden/pull/4583) - differentiate external groups by organization id by [@​stefan0xC](https://togithub.com/stefan0xC) in [https://github.com/dani-garcia/vaultwarden/pull/4586](https://togithub.com/dani-garcia/vaultwarden/pull/4586) - Remove old knowndevice route by [@​Timshel](https://togithub.com/Timshel) in [https://github.com/dani-garcia/vaultwarden/pull/4578](https://togithub.com/dani-garcia/vaultwarden/pull/4578) - Update admin interface dependencies by [@​BlackDex](https://togithub.com/BlackDex) in [https://github.com/dani-garcia/vaultwarden/pull/4581](https://togithub.com/dani-garcia/vaultwarden/pull/4581) - Update rust and remove unused header values by [@​dani-garcia](https://togithub.com/dani-garcia) in [https://github.com/dani-garcia/vaultwarden/pull/4645](https://togithub.com/dani-garcia/vaultwarden/pull/4645) - Update crates, web-vault and GHA by [@​BlackDex](https://togithub.com/BlackDex) in [https://github.com/dani-garcia/vaultwarden/pull/4648](https://togithub.com/dani-garcia/vaultwarden/pull/4648) - Fix some nightly build errors by [@​dani-garcia](https://togithub.com/dani-garcia) in [https://github.com/dani-garcia/vaultwarden/pull/4657](https://togithub.com/dani-garcia/vaultwarden/pull/4657) - Fix some more nightly errors and remove lint that will become an error by default by [@​dani-garcia](https://togithub.com/dani-garcia) in [https://github.com/dani-garcia/vaultwarden/pull/4661](https://togithub.com/dani-garcia/vaultwarden/pull/4661) - Change API and structs to camelCase by [@​dani-garcia](https://togithub.com/dani-garcia) in [https://github.com/dani-garcia/vaultwarden/pull/4386](https://togithub.com/dani-garcia/vaultwarden/pull/4386) - Fix cipher creation on new android app by [@​dani-garcia](https://togithub.com/dani-garcia) in [https://github.com/dani-garcia/vaultwarden/pull/4670](https://togithub.com/dani-garcia/vaultwarden/pull/4670) - Remove mimalloc workaround by [@​dfunkt](https://togithub.com/dfunkt) in [https://github.com/dani-garcia/vaultwarden/pull/4606](https://togithub.com/dani-garcia/vaultwarden/pull/4606) - Change some missing PascalCase keys by [@​dani-garcia](https://togithub.com/dani-garcia) in [https://github.com/dani-garcia/vaultwarden/pull/4671](https://togithub.com/dani-garcia/vaultwarden/pull/4671) - Fix collections and native app issue by [@​BlackDex](https://togithub.com/BlackDex) in [https://github.com/dani-garcia/vaultwarden/pull/4685](https://togithub.com/dani-garcia/vaultwarden/pull/4685) - Fix duplicate folder creations during import by [@​BlackDex](https://togithub.com/BlackDex) in [https://github.com/dani-garcia/vaultwarden/pull/4702](https://togithub.com/dani-garcia/vaultwarden/pull/4702) - Remove duplicate registry step by [@​dfunkt](https://togithub.com/dfunkt) in [https://github.com/dani-garcia/vaultwarden/pull/4703](https://togithub.com/dani-garcia/vaultwarden/pull/4703) - add group support for Cipher::get_collections() by [@​stefan0xC](https://togithub.com/stefan0xC) in [https://github.com/dani-garcia/vaultwarden/pull/4592](https://togithub.com/dani-garcia/vaultwarden/pull/4592) - Switch registry cache compression algorithm to zstd by [@​dfunkt](https://togithub.com/dfunkt) in [https://github.com/dani-garcia/vaultwarden/pull/4704](https://togithub.com/dani-garcia/vaultwarden/pull/4704) - Update crates and web-vault by [@​BlackDex](https://togithub.com/BlackDex) in [https://github.com/dani-garcia/vaultwarden/pull/4714](https://togithub.com/dani-garcia/vaultwarden/pull/4714) - Some fixes for emergency access by [@​BlackDex](https://togithub.com/BlackDex) in [https://github.com/dani-garcia/vaultwarden/pull/4715](https://togithub.com/dani-garcia/vaultwarden/pull/4715) #### New Contributors - [@​one230six](https://togithub.com/one230six) made their first contribution in [https://github.com/dani-garcia/vaultwarden/pull/4422](https://togithub.com/dani-garcia/vaultwarden/pull/4422) - [@​KrappRamiro](https://togithub.com/KrappRamiro) made their first contribution in [https://github.com/dani-garcia/vaultwarden/pull/4408](https://togithub.com/dani-garcia/vaultwarden/pull/4408) - [@​testwill](https://togithub.com/testwill) made their first contribution in [https://github.com/dani-garcia/vaultwarden/pull/4440](https://togithub.com/dani-garcia/vaultwarden/pull/4440) - [@​kristof-mattei](https://togithub.com/kristof-mattei) made their first contribution in [https://github.com/dani-garcia/vaultwarden/pull/4517](https://togithub.com/dani-garcia/vaultwarden/pull/4517) - [@​rich-purnell](https://togithub.com/rich-purnell) made their first contribution in [https://github.com/dani-garcia/vaultwarden/pull/4549](https://togithub.com/dani-garcia/vaultwarden/pull/4549) - [@​dfunkt](https://togithub.com/dfunkt) made their first contribution in [https://github.com/dani-garcia/vaultwarden/pull/4532](https://togithub.com/dani-garcia/vaultwarden/pull/4532) - [@​FDHoho007](https://togithub.com/FDHoho007) made their first contribution in [https://github.com/dani-garcia/vaultwarden/pull/4500](https://togithub.com/dani-garcia/vaultwarden/pull/4500) **Full Changelog**: dani-garcia/vaultwarden@1.30.5...1.31.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://togithub.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40NDAuNiIsInVwZGF0ZWRJblZlciI6IjM3LjQ0MC42IiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbImF1dG9tZXJnZSIsInVwZGF0ZS9kb2NrZXIvZ2VuZXJhbC9ub24tbWFqb3IiXX0=-->
…#272) [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [docker.io/vaultwarden/server](https://togithub.com/dani-garcia/vaultwarden) | minor | `1.30.5` -> `1.31.0` | --- ### Release Notes <details> <summary>dani-garcia/vaultwarden (docker.io/vaultwarden/server)</summary> ### [`v1.31.0`](https://togithub.com/dani-garcia/vaultwarden/releases/tag/1.31.0) [Compare Source](https://togithub.com/dani-garcia/vaultwarden/compare/1.30.5...1.31.0) #### Major changes and New Features - Initial support for the beta releases of the new native mobile apps - Removed support for WebSocket traffic on port 3012, as it's been integrated on the main HTTP port for a few releases - Updated included web vault to 2024.5.1 #### General mention Bitwarden has changed the push API endpoints which affects the EU region endpoint users. So if you use the push functionality and use the EU region you need to make some changes. You have to update `push.bitwarden.eu` to `api.bitwarden.eu`. This is also an issue with any previous version of Vaultwarden. #### What's Changed - chore: remove repetitive words by [@​one230six](https://togithub.com/one230six) in [https://github.com/dani-garcia/vaultwarden/pull/4422](https://togithub.com/dani-garcia/vaultwarden/pull/4422) - Fix comment in events.rs by [@​KrappRamiro](https://togithub.com/KrappRamiro) in [https://github.com/dani-garcia/vaultwarden/pull/4408](https://togithub.com/dani-garcia/vaultwarden/pull/4408) - Improve JWT RSA key initialization and avoid saving public key by [@​dani-garcia](https://togithub.com/dani-garcia) in [https://github.com/dani-garcia/vaultwarden/pull/4085](https://togithub.com/dani-garcia/vaultwarden/pull/4085) - Remove custom WebSocket code by [@​BlackDex](https://togithub.com/BlackDex) in [https://github.com/dani-garcia/vaultwarden/pull/4001](https://togithub.com/dani-garcia/vaultwarden/pull/4001) - refactor: replace panic with a graceful exit by [@​tessus](https://togithub.com/tessus) in [https://github.com/dani-garcia/vaultwarden/pull/4402](https://togithub.com/dani-garcia/vaultwarden/pull/4402) - Small improvements around email change by [@​Timshel](https://togithub.com/Timshel) in [https://github.com/dani-garcia/vaultwarden/pull/4415](https://togithub.com/dani-garcia/vaultwarden/pull/4415) - Change timestamp data type. by [@​gzfrozen](https://togithub.com/gzfrozen) in [https://github.com/dani-garcia/vaultwarden/pull/4355](https://togithub.com/dani-garcia/vaultwarden/pull/4355) - Fix [#​3624](https://togithub.com/dani-garcia/vaultwarden/issues/3624): fix manager permission within groups by [@​matlink](https://togithub.com/matlink) in [https://github.com/dani-garcia/vaultwarden/pull/3754](https://togithub.com/dani-garcia/vaultwarden/pull/3754) - automatically use email address as 2fa provider by [@​stefan0xC](https://togithub.com/stefan0xC) in [https://github.com/dani-garcia/vaultwarden/pull/4317](https://togithub.com/dani-garcia/vaultwarden/pull/4317) - fix: typos by [@​testwill](https://togithub.com/testwill) in [https://github.com/dani-garcia/vaultwarden/pull/4440](https://togithub.com/dani-garcia/vaultwarden/pull/4440) - Update chrono and sqlite by [@​BlackDex](https://togithub.com/BlackDex) in [https://github.com/dani-garcia/vaultwarden/pull/4436](https://togithub.com/dani-garcia/vaultwarden/pull/4436) - Update Rust and crates by [@​BlackDex](https://togithub.com/BlackDex) in [https://github.com/dani-garcia/vaultwarden/pull/4445](https://togithub.com/dani-garcia/vaultwarden/pull/4445) - Use async verify for Yubikey by [@​dani-garcia](https://togithub.com/dani-garcia) in [https://github.com/dani-garcia/vaultwarden/pull/4448](https://togithub.com/dani-garcia/vaultwarden/pull/4448) - update web-vault to v2024.3.1 (new vertical layout) by [@​stefan0xC](https://togithub.com/stefan0xC) in [https://github.com/dani-garcia/vaultwarden/pull/4468](https://togithub.com/dani-garcia/vaultwarden/pull/4468) - Update crates and some Clippy fixes by [@​BlackDex](https://togithub.com/BlackDex) in [https://github.com/dani-garcia/vaultwarden/pull/4475](https://togithub.com/dani-garcia/vaultwarden/pull/4475) - Update Key Rotation web-vault v2024.3.x by [@​BlackDex](https://togithub.com/BlackDex) in [https://github.com/dani-garcia/vaultwarden/pull/4446](https://togithub.com/dani-garcia/vaultwarden/pull/4446) - Update Crate and Rust by [@​BlackDex](https://togithub.com/BlackDex) in [https://github.com/dani-garcia/vaultwarden/pull/4522](https://togithub.com/dani-garcia/vaultwarden/pull/4522) - Implement custom DNS resolver by [@​dani-garcia](https://togithub.com/dani-garcia) in [https://github.com/dani-garcia/vaultwarden/pull/3988](https://togithub.com/dani-garcia/vaultwarden/pull/3988) - Add extra (unsupported) container build arch's by [@​BlackDex](https://togithub.com/BlackDex) in [https://github.com/dani-garcia/vaultwarden/pull/4524](https://togithub.com/dani-garcia/vaultwarden/pull/4524) - Pass in collection ids to notifier when sharing cipher. by [@​kristof-mattei](https://togithub.com/kristof-mattei) in [https://github.com/dani-garcia/vaultwarden/pull/4517](https://togithub.com/dani-garcia/vaultwarden/pull/4517) - improve access to collections via groups by [@​stefan0xC](https://togithub.com/stefan0xC) in [https://github.com/dani-garcia/vaultwarden/pull/4441](https://togithub.com/dani-garcia/vaultwarden/pull/4441) - fix emergency access invites by [@​stefan0xC](https://togithub.com/stefan0xC) in [https://github.com/dani-garcia/vaultwarden/pull/4337](https://togithub.com/dani-garcia/vaultwarden/pull/4337) - Some fixes for the new mobile apps by [@​dani-garcia](https://togithub.com/dani-garcia) in [https://github.com/dani-garcia/vaultwarden/pull/4526](https://togithub.com/dani-garcia/vaultwarden/pull/4526) - Update Rust, crates and web-vault by [@​BlackDex](https://togithub.com/BlackDex) in [https://github.com/dani-garcia/vaultwarden/pull/4558](https://togithub.com/dani-garcia/vaultwarden/pull/4558) - Improve Commentary Aesthetics by [@​rich-purnell](https://togithub.com/rich-purnell) in [https://github.com/dani-garcia/vaultwarden/pull/4549](https://togithub.com/dani-garcia/vaultwarden/pull/4549) - Optimize Dockerfiles by [@​dfunkt](https://togithub.com/dfunkt) in [https://github.com/dani-garcia/vaultwarden/pull/4532](https://togithub.com/dani-garcia/vaultwarden/pull/4532) - also delete organization_api_key when deleting organizations by [@​stefan0xC](https://togithub.com/stefan0xC) in [https://github.com/dani-garcia/vaultwarden/pull/4557](https://togithub.com/dani-garcia/vaultwarden/pull/4557) - Fix public api for domains with path prefix by [@​FDHoho007](https://togithub.com/FDHoho007) in [https://github.com/dani-garcia/vaultwarden/pull/4500](https://togithub.com/dani-garcia/vaultwarden/pull/4500) - Update crates by [@​BlackDex](https://togithub.com/BlackDex) in [https://github.com/dani-garcia/vaultwarden/pull/4587](https://togithub.com/dani-garcia/vaultwarden/pull/4587) - Fix web-vault version in Docker(files/Settings) by [@​dfunkt](https://togithub.com/dfunkt) in [https://github.com/dani-garcia/vaultwarden/pull/4575](https://togithub.com/dani-garcia/vaultwarden/pull/4575) - Update Alpine to version 3.20 by [@​dfunkt](https://togithub.com/dfunkt) in [https://github.com/dani-garcia/vaultwarden/pull/4583](https://togithub.com/dani-garcia/vaultwarden/pull/4583) - differentiate external groups by organization id by [@​stefan0xC](https://togithub.com/stefan0xC) in [https://github.com/dani-garcia/vaultwarden/pull/4586](https://togithub.com/dani-garcia/vaultwarden/pull/4586) - Remove old knowndevice route by [@​Timshel](https://togithub.com/Timshel) in [https://github.com/dani-garcia/vaultwarden/pull/4578](https://togithub.com/dani-garcia/vaultwarden/pull/4578) - Update admin interface dependencies by [@​BlackDex](https://togithub.com/BlackDex) in [https://github.com/dani-garcia/vaultwarden/pull/4581](https://togithub.com/dani-garcia/vaultwarden/pull/4581) - Update rust and remove unused header values by [@​dani-garcia](https://togithub.com/dani-garcia) in [https://github.com/dani-garcia/vaultwarden/pull/4645](https://togithub.com/dani-garcia/vaultwarden/pull/4645) - Update crates, web-vault and GHA by [@​BlackDex](https://togithub.com/BlackDex) in [https://github.com/dani-garcia/vaultwarden/pull/4648](https://togithub.com/dani-garcia/vaultwarden/pull/4648) - Fix some nightly build errors by [@​dani-garcia](https://togithub.com/dani-garcia) in [https://github.com/dani-garcia/vaultwarden/pull/4657](https://togithub.com/dani-garcia/vaultwarden/pull/4657) - Fix some more nightly errors and remove lint that will become an error by default by [@​dani-garcia](https://togithub.com/dani-garcia) in [https://github.com/dani-garcia/vaultwarden/pull/4661](https://togithub.com/dani-garcia/vaultwarden/pull/4661) - Change API and structs to camelCase by [@​dani-garcia](https://togithub.com/dani-garcia) in [https://github.com/dani-garcia/vaultwarden/pull/4386](https://togithub.com/dani-garcia/vaultwarden/pull/4386) - Fix cipher creation on new android app by [@​dani-garcia](https://togithub.com/dani-garcia) in [https://github.com/dani-garcia/vaultwarden/pull/4670](https://togithub.com/dani-garcia/vaultwarden/pull/4670) - Remove mimalloc workaround by [@​dfunkt](https://togithub.com/dfunkt) in [https://github.com/dani-garcia/vaultwarden/pull/4606](https://togithub.com/dani-garcia/vaultwarden/pull/4606) - Change some missing PascalCase keys by [@​dani-garcia](https://togithub.com/dani-garcia) in [https://github.com/dani-garcia/vaultwarden/pull/4671](https://togithub.com/dani-garcia/vaultwarden/pull/4671) - Fix collections and native app issue by [@​BlackDex](https://togithub.com/BlackDex) in [https://github.com/dani-garcia/vaultwarden/pull/4685](https://togithub.com/dani-garcia/vaultwarden/pull/4685) - Fix duplicate folder creations during import by [@​BlackDex](https://togithub.com/BlackDex) in [https://github.com/dani-garcia/vaultwarden/pull/4702](https://togithub.com/dani-garcia/vaultwarden/pull/4702) - Remove duplicate registry step by [@​dfunkt](https://togithub.com/dfunkt) in [https://github.com/dani-garcia/vaultwarden/pull/4703](https://togithub.com/dani-garcia/vaultwarden/pull/4703) - add group support for Cipher::get_collections() by [@​stefan0xC](https://togithub.com/stefan0xC) in [https://github.com/dani-garcia/vaultwarden/pull/4592](https://togithub.com/dani-garcia/vaultwarden/pull/4592) - Switch registry cache compression algorithm to zstd by [@​dfunkt](https://togithub.com/dfunkt) in [https://github.com/dani-garcia/vaultwarden/pull/4704](https://togithub.com/dani-garcia/vaultwarden/pull/4704) - Update crates and web-vault by [@​BlackDex](https://togithub.com/BlackDex) in [https://github.com/dani-garcia/vaultwarden/pull/4714](https://togithub.com/dani-garcia/vaultwarden/pull/4714) - Some fixes for emergency access by [@​BlackDex](https://togithub.com/BlackDex) in [https://github.com/dani-garcia/vaultwarden/pull/4715](https://togithub.com/dani-garcia/vaultwarden/pull/4715) #### New Contributors - [@​one230six](https://togithub.com/one230six) made their first contribution in [https://github.com/dani-garcia/vaultwarden/pull/4422](https://togithub.com/dani-garcia/vaultwarden/pull/4422) - [@​KrappRamiro](https://togithub.com/KrappRamiro) made their first contribution in [https://github.com/dani-garcia/vaultwarden/pull/4408](https://togithub.com/dani-garcia/vaultwarden/pull/4408) - [@​testwill](https://togithub.com/testwill) made their first contribution in [https://github.com/dani-garcia/vaultwarden/pull/4440](https://togithub.com/dani-garcia/vaultwarden/pull/4440) - [@​kristof-mattei](https://togithub.com/kristof-mattei) made their first contribution in [https://github.com/dani-garcia/vaultwarden/pull/4517](https://togithub.com/dani-garcia/vaultwarden/pull/4517) - [@​rich-purnell](https://togithub.com/rich-purnell) made their first contribution in [https://github.com/dani-garcia/vaultwarden/pull/4549](https://togithub.com/dani-garcia/vaultwarden/pull/4549) - [@​dfunkt](https://togithub.com/dfunkt) made their first contribution in [https://github.com/dani-garcia/vaultwarden/pull/4532](https://togithub.com/dani-garcia/vaultwarden/pull/4532) - [@​FDHoho007](https://togithub.com/FDHoho007) made their first contribution in [https://github.com/dani-garcia/vaultwarden/pull/4500](https://togithub.com/dani-garcia/vaultwarden/pull/4500) **Full Changelog**: dani-garcia/vaultwarden@1.30.5...1.31.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - "on saturday" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View the [repository job log](https://developer.mend.io/github/sp3nx0r/homelab). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjUuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQzOC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZS9jb250YWluZXIiLCJ0eXBlL21pbm9yIl19--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Fix #3624 by checking if the user is member of a group that has access to the collection.