Skip to content
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

register missing push devices at login #3792

Merged
merged 1 commit into from
Jan 30, 2024

Conversation

stefan0xC
Copy link
Contributor

@stefan0xC stefan0xC commented Aug 22, 2023

I've been looking into why enabling push notifications is not enough to get automatic sync to work and why it requires removing the app (or clearing the app data) and as far as I understand this deep dive that is because the endpoint on vaultwarden that registers the token to Bitwarden's Azure Notification Hub is currently only called when the OnNewToken() method is run. (Which only happens in rare instances, i.e. when installing the app or clearing the app data.)

If we save the push_token even when PUSH_ENABLED=false we could register missing push devices later. I've implemented a crude way of doing it (looking for a user's not yet registered devices on login, once mobile push notifications are enabled).

The push_uuid of a device will only be filled when push is enabled, so we know which push devices have not been registered yet.

Note: I'm not sure if there's a way to register the wrong token (which is why I'm skipping devices that have been added before this patch - and also because I don't know what values would be acceptable here). According to the deep dive the mobile clients (both on Android and iOS) should check daily if their token are still correct and will update them if not but I'm not sure what exactly happens in that case. - I'm currently testing what happens if you register the wrong token (if it will start working after 24 hours or if it will keep being broken). If this does not work this whole approach would probably not be viable.

Also since I don't know the API limits of the Bitwarden push relay and I did not want to abuse it (and maybe there's a better way to call the method) I've limited the number of devices that would be processed to <= 2. I think we could probably improve this a bit but I wanted to get some feedback first if this would be a viable approach. (Instead of calling it on login of a user it migh be better to do that on startup for all unregistered devices. Not really sure what is preferable here...)

@BlackDex
Copy link
Collaborator

BlackDex commented Oct 7, 2023

Any progress on this @stefan0xC?

Did you found anything useful too this?

@stefan0xC
Copy link
Contributor Author

stefan0xC commented Oct 9, 2023

Registering the wrong token does not seem to do anything as far as I've tested it. So I'm not sure if this would be an issue or if it would still work if there is much time between storing the device token initially and enabling push notifications. Worst case: it does not work and we would have to do the same steps that are necessary right now to get it to work.

I mean, it could also be an issue if you have a lot of stale devices stored that login takes forever with needlessly registering all saved mobile devices once you enable push notifications. So I'm not sure if we should register more than 2 devices at login.

So all in all the patch as it currently is should work so in the future you would not need to clear the app data or reinstall the app after enabling mobile push notifications. However this would only affect devices that are connected after this patch has been applied and with the caveat that it might not work if too much time has passed.

edit: I'll update my PR and mark it ready for review once I'm home.

@stefan0xC stefan0xC changed the title WIP register missing push devices at login register missing push devices at login Oct 9, 2023
@stefan0xC stefan0xC marked this pull request as ready for review October 9, 2023 15:47
@stefan0xC stefan0xC force-pushed the register-push-token branch 3 times, most recently from ec88d6d to 44db86b Compare October 26, 2023 11:54
@BlackDex
Copy link
Collaborator

BlackDex commented Nov 7, 2023

@stefan0xC
Hmm...

I'm not sure what is happening here.
Shouldn't the devices them self provide a push-token, which the server then needs to check-in into the identity/push endpoint with the correct push-uuid?

If that is the case, and someone does not have push enabled, but we do store the push-token to be sure we have it in the future when someone does enable it. We can then also just tell people to logout and login again to make sure there device gets registered at the push servers. That way, we only have to check if that device has a push-token already, but not a push-uuid, and if push is enabled, then register that specific device, instead of registering all the devices.

That way we also do not accidentally register inactive devices, and only the device which the user at the moment actually uses.

I'm still not sure when Bitwarden sends those push-tokens to the server actually. Is that only on a fresh install, are there other triggers, i really do not know, that would help.

Besides this, I'm thinking of making some adjustments to the admin user page for which i was thinking about for a long time already, but now with these individual devices item it makes it a more needed item.
I'm planning on adding a pop-over/modal which shows all devices registered to a user with there individual last usage, but that can now also show if that device has a push-token and a push-uuid of course. That probably helps the users (well admins actually) to check and verify if there device should be able to receive push events.

We might even be able to add a button there to re-register the device upstream if that device was just in the like last x days or week or so, to also prevent devices not being used getting registered.

Those are just some head-spins from me.

@stefan0xC

This comment was marked as outdated.

@BlackDex
Copy link
Collaborator

BlackDex commented Nov 7, 2023

it could also be sent when you login. If that is the case it would make this a lot easier, indeed.

How did we all have missed that haha.
Looks like you have some new testing to do 😂

@stefan0xC
Copy link
Contributor Author

Alas, the device token is not set on login so the mobile client will just sent an empty string.

device_push_token: Some("")

@tessus
Copy link
Contributor

tessus commented Dec 5, 2023

Is something still missing in this PR? I have been playing with push notifications and registering the devices upon login could be very useful.

BlackDex
BlackDex previously approved these changes Dec 10, 2023
@stefan0xC stefan0xC marked this pull request as draft December 10, 2023 23:20
@stefan0xC
Copy link
Contributor Author

I still have to rewrite the PR so only the device that is used to login is registered (if a device push token has been saved).

@stefan0xC
Copy link
Contributor Author

Okay, I think I've finished rewriting this PR. I've also added a warning when the device registration will be skipped (because of an empty push token field) so some users would have an indication of what to do.

The only thing I'm currently unsure about would be whether the behavior of the iOS app differs greatly from the Android app and if we should improve put_device_token (i.e. add a check if the transmitted token is the same as the already saved token before unregistering)...

@stefan0xC stefan0xC force-pushed the register-push-token branch 3 times, most recently from a0fd403 to 80e9f8f Compare January 15, 2024 22:30
@stefan0xC
Copy link
Contributor Author

I've added the check I was thinking of so it should be fine now. (The added check to unregister the token might be unnecessary if put_device_token is only called once but just in case it's not this should work now even for iOS.)

@BlackDex
Copy link
Collaborator

@stefan0xC, it looks all ok, just needs a rebase i think :).

@stefan0xC stefan0xC force-pushed the register-push-token branch 2 times, most recently from 05d07c2 to c72dded Compare January 26, 2024 21:14
save the push token of new device even if push notifications are not
enabled and provide a way to register the push device at login

unregister device if there already is a push token saved unless the
new token has already been registered.

also the `unregister_push_device` function used the wrong argument
cf. https://github.com/bitwarden/server/blob/08d380900b540f8d1a734c7abccaf80e59a91ced/src/Core/Services/Implementations/RelayPushRegistrationService.cs#L43
@dani-garcia dani-garcia merged commit 3b283c2 into dani-garcia:main Jan 30, 2024
5 checks passed
@stefan0xC stefan0xC deleted the register-push-token branch January 30, 2024 19:28
truecharts-admin added a commit to truecharts/charts that referenced this pull request Jan 31, 2024
…1.30.2@ab34a7b by renovate (#17766)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
|
[docker.io/vaultwarden/server](https://togithub.com/dani-garcia/vaultwarden)
| patch | `1.30.1` -> `1.30.2` |

---

> [!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.30.2`](https://togithub.com/dani-garcia/vaultwarden/releases/tag/1.30.2)

[Compare
Source](https://togithub.com/dani-garcia/vaultwarden/compare/1.30.1...1.30.2)

⚠️ **Note:** The WebSockets service for live sync has been integrated in
the main HTTP server, which means simpler proxy setups that don't
require a separate rule to redirect WS traffic to port 3012. Please
check the updated examples in the
[wiki](https://togithub.com/dani-garcia/vaultwarden/wiki/Proxy-examples).
It's recommended to migrate to this new setup as using the old server on
port 3012 is deprecated, won't receive new features and will be removed
in the next release.

#### What's Changed

- Prevent generating an error during ws close by
[@&#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4127
- Update Rust, Crates, Profile and Actions by
[@&#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4126
- Several small fixes for open issues by
[@&#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4143
- Fix the version string by
[@&#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4153
- Decrease JWT Refresh/Auth token by
[@&#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4163
- Update crates by [@&#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4173
- Add additional build target which optimizes for size by
[@&#8203;gladiac](https://togithub.com/gladiac) in
[dani-garcia/vaultwarden#4096
- Update web-vault to v2023.12.0 by
[@&#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4201
- Update Rust and Crates by
[@&#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4211
- Fix Single Org Policy check by
[@&#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4207
- Allow customizing the featureStates by
[@&#8203;PKizzle](https://togithub.com/PKizzle) in
[dani-garcia/vaultwarden#4168
- Fix
[#&#8203;3413](https://togithub.com/dani-garcia/vaultwarden/issues/3413):
push to users accessing the collections using groups by
[@&#8203;matlink](https://togithub.com/matlink) in
[dani-garcia/vaultwarden#3757
- US or EU Data Region Selection by
[@&#8203;toto-xoxo](https://togithub.com/toto-xoxo) in
[dani-garcia/vaultwarden#3752
- enforce 2FA policy on removal of second factor and login by
[@&#8203;stefan0xC](https://togithub.com/stefan0xC) in
[dani-garcia/vaultwarden#3803
- improve emergency access when not enabled by
[@&#8203;stefan0xC](https://togithub.com/stefan0xC) in
[dani-garcia/vaultwarden#4227
- Update crates and fix icon issue by
[@&#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4237
- Bump h2 from 0.3.23 to 0.3.24 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[dani-garcia/vaultwarden#4260
- Fix bulk collection deletion by
[@&#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4257
- fix: use black text for update badge (better contrast) by
[@&#8203;tessus](https://togithub.com/tessus) in
[dani-garcia/vaultwarden#4245
- prevent side effects if groups are disabled by
[@&#8203;stefan0xC](https://togithub.com/stefan0xC) in
[dani-garcia/vaultwarden#4265
- Update crates, web-vault to 2024.1.2 and GHA by
[@&#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4275
- Return 404 when user public_key is empty by
[@&#8203;Timshel](https://togithub.com/Timshel) in
[dani-garcia/vaultwarden#4271
- Improve file limit handling by
[@&#8203;dani-garcia](https://togithub.com/dani-garcia) in
[dani-garcia/vaultwarden#4242
- Fix attachment upload size check by
[@&#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4282
- err on invalid feature flag by
[@&#8203;stefan0xC](https://togithub.com/stefan0xC) in
[dani-garcia/vaultwarden#4263
- register missing push devices at login by
[@&#8203;stefan0xC](https://togithub.com/stefan0xC) in
[dani-garcia/vaultwarden#3792
- Update env template file by
[@&#8203;gzfrozen](https://togithub.com/gzfrozen) in
[dani-garcia/vaultwarden#4276

#### New Contributors

- [@&#8203;gladiac](https://togithub.com/gladiac) made their first
contribution in
[dani-garcia/vaultwarden#4096
- [@&#8203;PKizzle](https://togithub.com/PKizzle) made their first
contribution in
[dani-garcia/vaultwarden#4168
- [@&#8203;matlink](https://togithub.com/matlink) made their first
contribution in
[dani-garcia/vaultwarden#3757
- [@&#8203;toto-xoxo](https://togithub.com/toto-xoxo) made their first
contribution in
[dani-garcia/vaultwarden#3752
- [@&#8203;Timshel](https://togithub.com/Timshel) made their first
contribution in
[dani-garcia/vaultwarden#4271
- [@&#8203;gzfrozen](https://togithub.com/gzfrozen) made their first
contribution in
[dani-garcia/vaultwarden#4276

**Full Changelog**:
dani-garcia/vaultwarden@1.30.1...1.30.2

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 10pm on monday" in timezone
Europe/Amsterdam, 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:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNjIuMiIsInVwZGF0ZWRJblZlciI6IjM3LjE2Mi4yIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIn0=-->
GabrielBarzen pushed a commit to GabrielBarzen/charts that referenced this pull request Feb 2, 2024
…1.30.2@ab34a7b by renovate (truecharts#17766)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
|
[docker.io/vaultwarden/server](https://togithub.com/dani-garcia/vaultwarden)
| patch | `1.30.1` -> `1.30.2` |

---

> [!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.30.2`](https://togithub.com/dani-garcia/vaultwarden/releases/tag/1.30.2)

[Compare
Source](https://togithub.com/dani-garcia/vaultwarden/compare/1.30.1...1.30.2)

⚠️ **Note:** The WebSockets service for live sync has been integrated in
the main HTTP server, which means simpler proxy setups that don't
require a separate rule to redirect WS traffic to port 3012. Please
check the updated examples in the
[wiki](https://togithub.com/dani-garcia/vaultwarden/wiki/Proxy-examples).
It's recommended to migrate to this new setup as using the old server on
port 3012 is deprecated, won't receive new features and will be removed
in the next release.

#### What's Changed

- Prevent generating an error during ws close by
[@&truecharts#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4127
- Update Rust, Crates, Profile and Actions by
[@&truecharts#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4126
- Several small fixes for open issues by
[@&truecharts#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4143
- Fix the version string by
[@&truecharts#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4153
- Decrease JWT Refresh/Auth token by
[@&truecharts#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4163
- Update crates by [@&truecharts#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4173
- Add additional build target which optimizes for size by
[@&truecharts#8203;gladiac](https://togithub.com/gladiac) in
[dani-garcia/vaultwarden#4096
- Update web-vault to v2023.12.0 by
[@&truecharts#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4201
- Update Rust and Crates by
[@&truecharts#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4211
- Fix Single Org Policy check by
[@&truecharts#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4207
- Allow customizing the featureStates by
[@&truecharts#8203;PKizzle](https://togithub.com/PKizzle) in
[dani-garcia/vaultwarden#4168
- Fix
[#&truecharts#8203;3413](https://togithub.com/dani-garcia/vaultwarden/issues/3413):
push to users accessing the collections using groups by
[@&truecharts#8203;matlink](https://togithub.com/matlink) in
[dani-garcia/vaultwarden#3757
- US or EU Data Region Selection by
[@&truecharts#8203;toto-xoxo](https://togithub.com/toto-xoxo) in
[dani-garcia/vaultwarden#3752
- enforce 2FA policy on removal of second factor and login by
[@&truecharts#8203;stefan0xC](https://togithub.com/stefan0xC) in
[dani-garcia/vaultwarden#3803
- improve emergency access when not enabled by
[@&truecharts#8203;stefan0xC](https://togithub.com/stefan0xC) in
[dani-garcia/vaultwarden#4227
- Update crates and fix icon issue by
[@&truecharts#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4237
- Bump h2 from 0.3.23 to 0.3.24 by
[@&truecharts#8203;dependabot](https://togithub.com/dependabot) in
[dani-garcia/vaultwarden#4260
- Fix bulk collection deletion by
[@&truecharts#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4257
- fix: use black text for update badge (better contrast) by
[@&truecharts#8203;tessus](https://togithub.com/tessus) in
[dani-garcia/vaultwarden#4245
- prevent side effects if groups are disabled by
[@&truecharts#8203;stefan0xC](https://togithub.com/stefan0xC) in
[dani-garcia/vaultwarden#4265
- Update crates, web-vault to 2024.1.2 and GHA by
[@&truecharts#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4275
- Return 404 when user public_key is empty by
[@&truecharts#8203;Timshel](https://togithub.com/Timshel) in
[dani-garcia/vaultwarden#4271
- Improve file limit handling by
[@&truecharts#8203;dani-garcia](https://togithub.com/dani-garcia) in
[dani-garcia/vaultwarden#4242
- Fix attachment upload size check by
[@&truecharts#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4282
- err on invalid feature flag by
[@&truecharts#8203;stefan0xC](https://togithub.com/stefan0xC) in
[dani-garcia/vaultwarden#4263
- register missing push devices at login by
[@&truecharts#8203;stefan0xC](https://togithub.com/stefan0xC) in
[dani-garcia/vaultwarden#3792
- Update env template file by
[@&truecharts#8203;gzfrozen](https://togithub.com/gzfrozen) in
[dani-garcia/vaultwarden#4276

#### New Contributors

- [@&truecharts#8203;gladiac](https://togithub.com/gladiac) made their first
contribution in
[dani-garcia/vaultwarden#4096
- [@&truecharts#8203;PKizzle](https://togithub.com/PKizzle) made their first
contribution in
[dani-garcia/vaultwarden#4168
- [@&truecharts#8203;matlink](https://togithub.com/matlink) made their first
contribution in
[dani-garcia/vaultwarden#3757
- [@&truecharts#8203;toto-xoxo](https://togithub.com/toto-xoxo) made their first
contribution in
[dani-garcia/vaultwarden#3752
- [@&truecharts#8203;Timshel](https://togithub.com/Timshel) made their first
contribution in
[dani-garcia/vaultwarden#4271
- [@&truecharts#8203;gzfrozen](https://togithub.com/gzfrozen) made their first
contribution in
[dani-garcia/vaultwarden#4276

**Full Changelog**:
dani-garcia/vaultwarden@1.30.1...1.30.2

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 10pm on monday" in timezone
Europe/Amsterdam, 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:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNjIuMiIsInVwZGF0ZWRJblZlciI6IjM3LjE2Mi4yIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIn0=-->
mruoss pushed a commit to mruoss/truecharts that referenced this pull request Feb 4, 2024
…1.30.2@ab34a7b by renovate (truecharts#17766)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
|
[docker.io/vaultwarden/server](https://togithub.com/dani-garcia/vaultwarden)
| patch | `1.30.1` -> `1.30.2` |

---

> [!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.30.2`](https://togithub.com/dani-garcia/vaultwarden/releases/tag/1.30.2)

[Compare
Source](https://togithub.com/dani-garcia/vaultwarden/compare/1.30.1...1.30.2)

⚠️ **Note:** The WebSockets service for live sync has been integrated in
the main HTTP server, which means simpler proxy setups that don't
require a separate rule to redirect WS traffic to port 3012. Please
check the updated examples in the
[wiki](https://togithub.com/dani-garcia/vaultwarden/wiki/Proxy-examples).
It's recommended to migrate to this new setup as using the old server on
port 3012 is deprecated, won't receive new features and will be removed
in the next release.

#### What's Changed

- Prevent generating an error during ws close by
[@&truecharts#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4127
- Update Rust, Crates, Profile and Actions by
[@&truecharts#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4126
- Several small fixes for open issues by
[@&truecharts#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4143
- Fix the version string by
[@&truecharts#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4153
- Decrease JWT Refresh/Auth token by
[@&truecharts#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4163
- Update crates by [@&truecharts#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4173
- Add additional build target which optimizes for size by
[@&truecharts#8203;gladiac](https://togithub.com/gladiac) in
[dani-garcia/vaultwarden#4096
- Update web-vault to v2023.12.0 by
[@&truecharts#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4201
- Update Rust and Crates by
[@&truecharts#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4211
- Fix Single Org Policy check by
[@&truecharts#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4207
- Allow customizing the featureStates by
[@&truecharts#8203;PKizzle](https://togithub.com/PKizzle) in
[dani-garcia/vaultwarden#4168
- Fix
[#&truecharts#8203;3413](https://togithub.com/dani-garcia/vaultwarden/issues/3413):
push to users accessing the collections using groups by
[@&truecharts#8203;matlink](https://togithub.com/matlink) in
[dani-garcia/vaultwarden#3757
- US or EU Data Region Selection by
[@&truecharts#8203;toto-xoxo](https://togithub.com/toto-xoxo) in
[dani-garcia/vaultwarden#3752
- enforce 2FA policy on removal of second factor and login by
[@&truecharts#8203;stefan0xC](https://togithub.com/stefan0xC) in
[dani-garcia/vaultwarden#3803
- improve emergency access when not enabled by
[@&truecharts#8203;stefan0xC](https://togithub.com/stefan0xC) in
[dani-garcia/vaultwarden#4227
- Update crates and fix icon issue by
[@&truecharts#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4237
- Bump h2 from 0.3.23 to 0.3.24 by
[@&truecharts#8203;dependabot](https://togithub.com/dependabot) in
[dani-garcia/vaultwarden#4260
- Fix bulk collection deletion by
[@&truecharts#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4257
- fix: use black text for update badge (better contrast) by
[@&truecharts#8203;tessus](https://togithub.com/tessus) in
[dani-garcia/vaultwarden#4245
- prevent side effects if groups are disabled by
[@&truecharts#8203;stefan0xC](https://togithub.com/stefan0xC) in
[dani-garcia/vaultwarden#4265
- Update crates, web-vault to 2024.1.2 and GHA by
[@&truecharts#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4275
- Return 404 when user public_key is empty by
[@&truecharts#8203;Timshel](https://togithub.com/Timshel) in
[dani-garcia/vaultwarden#4271
- Improve file limit handling by
[@&truecharts#8203;dani-garcia](https://togithub.com/dani-garcia) in
[dani-garcia/vaultwarden#4242
- Fix attachment upload size check by
[@&truecharts#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4282
- err on invalid feature flag by
[@&truecharts#8203;stefan0xC](https://togithub.com/stefan0xC) in
[dani-garcia/vaultwarden#4263
- register missing push devices at login by
[@&truecharts#8203;stefan0xC](https://togithub.com/stefan0xC) in
[dani-garcia/vaultwarden#3792
- Update env template file by
[@&truecharts#8203;gzfrozen](https://togithub.com/gzfrozen) in
[dani-garcia/vaultwarden#4276

#### New Contributors

- [@&truecharts#8203;gladiac](https://togithub.com/gladiac) made their first
contribution in
[dani-garcia/vaultwarden#4096
- [@&truecharts#8203;PKizzle](https://togithub.com/PKizzle) made their first
contribution in
[dani-garcia/vaultwarden#4168
- [@&truecharts#8203;matlink](https://togithub.com/matlink) made their first
contribution in
[dani-garcia/vaultwarden#3757
- [@&truecharts#8203;toto-xoxo](https://togithub.com/toto-xoxo) made their first
contribution in
[dani-garcia/vaultwarden#3752
- [@&truecharts#8203;Timshel](https://togithub.com/Timshel) made their first
contribution in
[dani-garcia/vaultwarden#4271
- [@&truecharts#8203;gzfrozen](https://togithub.com/gzfrozen) made their first
contribution in
[dani-garcia/vaultwarden#4276

**Full Changelog**:
dani-garcia/vaultwarden@1.30.1...1.30.2

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 10pm on monday" in timezone
Europe/Amsterdam, 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:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNjIuMiIsInVwZGF0ZWRJblZlciI6IjM3LjE2Mi4yIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIn0=-->
arthurgeek pushed a commit to arthurgeek/vaultwarden-fly-template that referenced this pull request Mar 18, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [vaultwarden/server](https://togithub.com/dani-garcia/vaultwarden) |
stage | patch | `1.30.1-alpine` -> `1.30.5-alpine` |

---

### Release Notes

<details>
<summary>dani-garcia/vaultwarden (vaultwarden/server)</summary>

###
[`v1.30.5`](https://togithub.com/dani-garcia/vaultwarden/releases/tag/1.30.5)

[Compare
Source](https://togithub.com/dani-garcia/vaultwarden/compare/1.30.4...1.30.5)

#### What's Changed

- fix: web API call for jquery 3.7.1 by
[@&#8203;calvin-li-developer](https://togithub.com/calvin-li-developer)
in
[dani-garcia/vaultwarden#4400

#### New Contributors

-
[@&#8203;calvin-li-developer](https://togithub.com/calvin-li-developer)
made their first contribution in
[dani-garcia/vaultwarden#4400

**Full Changelog**:
dani-garcia/vaultwarden@1.30.4...1.30.5

###
[`v1.30.4`](https://togithub.com/dani-garcia/vaultwarden/releases/tag/1.30.4)

[Compare
Source](https://togithub.com/dani-garcia/vaultwarden/compare/1.30.3...1.30.4)

⚠️ Note: The WebSockets service for live sync has been integrated in the
main HTTP server, which means simpler proxy setups that don't require a
separate rule to redirect WS traffic to port 3012. Please check the
updated examples in the
[wiki](https://togithub.com/dani-garcia/vaultwarden/wiki/Proxy-examples).
It's recommended to migrate to this new setup as using the old server on
port 3012 is deprecated, won't receive new features and will be removed
in the next release.

#### What's Changed

- Update crates to fix new builds by
[@&#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4308
- Add Kubernetes environment detection by
[@&#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4290
- Update GHA Workflows by
[@&#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4309
- Update Rust, crates and web-vault by
[@&#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4328
- Change the codegen-units for low resources by
[@&#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4336
- Fix env templateto ensure compatibility with systemd's EnvironmentFile
parsing by [@&#8203;seiuneko](https://togithub.com/seiuneko) in
[dani-garcia/vaultwarden#4315
- Update crates, GHA and a Python script by
[@&#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4357

#### New Contributors

- [@&#8203;seiuneko](https://togithub.com/seiuneko) made their first
contribution in
[dani-garcia/vaultwarden#4315

**Full Changelog**:
dani-garcia/vaultwarden@1.30.3...1.30.4

###
[`v1.30.3`](https://togithub.com/dani-garcia/vaultwarden/releases/tag/1.30.3)

[Compare
Source](https://togithub.com/dani-garcia/vaultwarden/compare/1.30.2...1.30.3)

This is a minor release to fix some issues with push notification device
registration and docker healthcheck.

⚠️ **Note:** The WebSockets service for live sync has been integrated in
the main HTTP server, which means simpler proxy setups that don't
require a separate rule to redirect WS traffic to port 3012. Please
check the updated examples in the
[wiki](https://togithub.com/dani-garcia/vaultwarden/wiki/Proxy-examples).
It's recommended to migrate to this new setup as using the old server on
port 3012 is deprecated, won't receive new features and will be removed
in the next release.

#### What's Changed

- fix push device registration by
[@&#8203;stefan0xC](https://togithub.com/stefan0xC) in
[dani-garcia/vaultwarden#4297
- Fix healthcheck when using .env file by
[@&#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4299

**Full Changelog**:
dani-garcia/vaultwarden@1.30.2...1.30.3

###
[`v1.30.2`](https://togithub.com/dani-garcia/vaultwarden/releases/tag/1.30.2)

[Compare
Source](https://togithub.com/dani-garcia/vaultwarden/compare/1.30.1...1.30.2)

⚠️ **Note:** The WebSockets service for live sync has been integrated in
the main HTTP server, which means simpler proxy setups that don't
require a separate rule to redirect WS traffic to port 3012. Please
check the updated examples in the
[wiki](https://togithub.com/dani-garcia/vaultwarden/wiki/Proxy-examples).
It's recommended to migrate to this new setup as using the old server on
port 3012 is deprecated, won't receive new features and will be removed
in the next release.

#### What's Changed

- Prevent generating an error during ws close by
[@&#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4127
- Update Rust, Crates, Profile and Actions by
[@&#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4126
- Several small fixes for open issues by
[@&#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4143
- Fix the version string by
[@&#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4153
- Decrease JWT Refresh/Auth token by
[@&#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4163
- Update crates by [@&#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4173
- Add additional build target which optimizes for size by
[@&#8203;gladiac](https://togithub.com/gladiac) in
[dani-garcia/vaultwarden#4096
- Update web-vault to v2023.12.0 by
[@&#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4201
- Update Rust and Crates by
[@&#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4211
- Fix Single Org Policy check by
[@&#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4207
- Allow customizing the featureStates by
[@&#8203;PKizzle](https://togithub.com/PKizzle) in
[dani-garcia/vaultwarden#4168
- Fix
[#&#8203;3413](https://togithub.com/dani-garcia/vaultwarden/issues/3413):
push to users accessing the collections using groups by
[@&#8203;matlink](https://togithub.com/matlink) in
[dani-garcia/vaultwarden#3757
- US or EU Data Region Selection by
[@&#8203;toto-xoxo](https://togithub.com/toto-xoxo) in
[dani-garcia/vaultwarden#3752
- enforce 2FA policy on removal of second factor and login by
[@&#8203;stefan0xC](https://togithub.com/stefan0xC) in
[dani-garcia/vaultwarden#3803
- improve emergency access when not enabled by
[@&#8203;stefan0xC](https://togithub.com/stefan0xC) in
[dani-garcia/vaultwarden#4227
- Update crates and fix icon issue by
[@&#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4237
- Bump h2 from 0.3.23 to 0.3.24 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[dani-garcia/vaultwarden#4260
- Fix bulk collection deletion by
[@&#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4257
- fix: use black text for update badge (better contrast) by
[@&#8203;tessus](https://togithub.com/tessus) in
[dani-garcia/vaultwarden#4245
- prevent side effects if groups are disabled by
[@&#8203;stefan0xC](https://togithub.com/stefan0xC) in
[dani-garcia/vaultwarden#4265
- Update crates, web-vault to 2024.1.2 and GHA by
[@&#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4275
- Return 404 when user public_key is empty by
[@&#8203;Timshel](https://togithub.com/Timshel) in
[dani-garcia/vaultwarden#4271
- Improve file limit handling by
[@&#8203;dani-garcia](https://togithub.com/dani-garcia) in
[dani-garcia/vaultwarden#4242
- Fix attachment upload size check by
[@&#8203;BlackDex](https://togithub.com/BlackDex) in
[dani-garcia/vaultwarden#4282
- err on invalid feature flag by
[@&#8203;stefan0xC](https://togithub.com/stefan0xC) in
[dani-garcia/vaultwarden#4263
- register missing push devices at login by
[@&#8203;stefan0xC](https://togithub.com/stefan0xC) in
[dani-garcia/vaultwarden#3792
- Update env template file by
[@&#8203;gzfrozen](https://togithub.com/gzfrozen) in
[dani-garcia/vaultwarden#4276

#### New Contributors

- [@&#8203;gladiac](https://togithub.com/gladiac) made their first
contribution in
[dani-garcia/vaultwarden#4096
- [@&#8203;PKizzle](https://togithub.com/PKizzle) made their first
contribution in
[dani-garcia/vaultwarden#4168
- [@&#8203;matlink](https://togithub.com/matlink) made their first
contribution in
[dani-garcia/vaultwarden#3757
- [@&#8203;toto-xoxo](https://togithub.com/toto-xoxo) made their first
contribution in
[dani-garcia/vaultwarden#3752
- [@&#8203;Timshel](https://togithub.com/Timshel) made their first
contribution in
[dani-garcia/vaultwarden#4271
- [@&#8203;gzfrozen](https://togithub.com/gzfrozen) made their first
contribution in
[dani-garcia/vaultwarden#4276

**Full Changelog**:
dani-garcia/vaultwarden@1.30.1...1.30.2

</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 has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/arthurgeek/vaultwarden-fly-template).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNTMuMiIsInVwZGF0ZWRJblZlciI6IjM3LjIyMC4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants