mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-25 17:25:57 +03:00
[GH-ISSUE #993] Bitwarden RS container hangs when is not allowed to access the Internet #705
Labels
No labels
SSO
Third party
better for forum
bug
bug
documentation
duplicate
enhancement
future Vault
future Vault
future Vault
good first issue
help wanted
low priority
notes
pull-request
question
troubleshooting
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vaultwarden#705
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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?
Originally created by @ajgon on GitHub (May 13, 2020).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/993
Subject of the issue
So here is the problem. I run my personal home-lab with plenty of services. To prevent them from "calling home" default policy for containers is to disallow any access to the Internet. However since I have problem with "internal loopbacks" with bitwarden and some other apps, containers can access themselves using their own domain name (so
bitwarden.example.comcan access any endpoint usingbitwarden.example.com/somethingwithout any problem).This setup worked flawlessly until recently. When I try to create a new item, Bitwarden hangs. When I enable access to the Internet, everything works as expected.
It happens both in OSX client and in web interface.
Your environment
Steps to reproduce
--internalparam and attach it as a only network)Expected behaviour
Item should be saved properly.
Actual behaviour
Bitwarden container hangs.
Relevant logs
Nothing extraordinary except failed icons download (which is expected as container has no access to the Internet):
I really appreciate any help - should I allow some extra domains, or is it related to something else?
Thanks!
@mqus commented on GitHub (May 13, 2020):
Hey! thanks for the report!
Did you try to disable Icon downloading? (using the environment variable, see https://github.com/dani-garcia/bitwarden_rs/blob/master/.env.template#L71) I think bitwarden_rs should not hang even if it isn't disabled but maybe that helps in you case?
@ajgon commented on GitHub (May 13, 2020):
Ha! My initial idea was to disable that, but wasn't aware of the option. After disabling it, everything went back to normal.
Thank you!
@dani-garcia commented on GitHub (May 13, 2020):
I assume the hang is caused by the server trying to connect and waiting on a timeout, which by default is 10 seconds. The version of rocket that we currently use has a fixed number of threads, so once all of them are saturated waiting on a timeout the server will hang. This is particularly bad when a client has a lot of ciphers with a lot of icons.
That said, yeah in your case disabling them is the correct choice, so this can be closed.