BitWarden - self hosted password manager using vaultwarden/server image

Docker BitWarden - self hosted password manager using vaultwarden/server image

Currently reading
Docker BitWarden - self hosted password manager using vaultwarden/server image

382
156
NAS
DS212J, DS214play, DS216, DS216play, DS414, DS918+, RS816
Router
  1. RT2600ac
  2. MR2200ac
Operating system
  1. Windows
Mobile operating system
  1. iOS
Rusty, your tutorials for setting up bitwarden (and for reverse proxy to make it easier to get to) are fantastic, thank you.

The only issue I have with Bitwarden is that it appears that my portable devices (iphone, ipad...) running Bitwarden do not keep a local copy of the password database...so that if I don't have a working internet connection, I can't access the database if I have logged out of Bitwarden.

One might ask, "Why would you need to access the database if you don't have a live internet connection? After all, if you don't have a connection, there's nothing you need to log in to." And the answer is that I might maintain passwords to Apps on the devices themselves in Bitwarden. Or, I might have the passwords to various wireless access points in Bitwarden, so it's a Catch-22: I can't log onto the internet without the password to the access point, and I can't get the password until I can bring up Bitwarden, which I can't do without an internet connection...

Do you know of a way around this?
 

Rusty

Moderator
NAS Support
4,364
1,268
www.blackvoid.club
NAS
DS718+, DS918+, 2x RS3614RPxs+
Router
  1. RT1900ac
  2. RT2600ac
  3. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
Tnx for the positive comment. The way BW works is that it does work offline but only for items that are already in the vault and accessible on the device in question.

If you need to make a new entry then you will have to have a connection to BW server side and the use the manual sync option on your devices or wait for the scheduled sync.
 
382
156
NAS
DS212J, DS214play, DS216, DS216play, DS414, DS918+, RS816
Router
  1. RT2600ac
  2. MR2200ac
Operating system
  1. Windows
Mobile operating system
  1. iOS
Tnx for the positive comment. The way BW works is that it does work offline but only for items that are already in the vault and accessible on the device in question.

If you need to make a new entry then you will have to have a connection to BW server side and the use the manual sync option on your devices or wait for the scheduled sync.

How does it work offline for items already in the vault? If I'm logged out of BW on the iPhone, for example, and I want to access the vault, I have to log in. If I go to the "Log in" screen, the only option I'm given is to enter my email address and Master Password, and if I do so, I get "error occurred, not connected to the internet." There is no option for "access database from this device" or similar.
 
44
15
NAS
DS1618+, DS918+
Router
  1. RT1900ac
  2. RT2600ac
  3. MR2200ac
Operating system
  1. Windows
Mobile operating system
  1. Android
Hi, just to mention: I am using a Bitwarden app in my Android mobile device and it WORKS OFFLINE. I can search in the vault while wifi and mobile data were turned off, I can also fill in credentials from Bitwarden vault to local apps. What I don't do is logging off from my Android Bitwarden app. I just only lock on/lock off via fingerprint. By me this is safe enough and user friendly.
Of course, updating, adding new records and syncing the vault will only work when you are online with your device. The same as log on/log off.

And btw. also big thanks to Rusty for his amazing "Bitwarden in Docker" tutorial. :)
 
382
156
NAS
DS212J, DS214play, DS216, DS216play, DS414, DS918+, RS816
Router
  1. RT2600ac
  2. MR2200ac
Operating system
  1. Windows
Mobile operating system
  1. iOS
I think the issue is the "logging off". If I "log off," I'm hosed. If I just close the app, I'm probably fine.
 

Rusty

Moderator
NAS Support
4,364
1,268
www.blackvoid.club
NAS
DS718+, DS918+, 2x RS3614RPxs+
Router
  1. RT1900ac
  2. RT2600ac
  3. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
I think the issue is the "logging off". If I "log off," I'm hosed. If I just close the app, I'm probably fine.
Well I just did another test on iOS. Completely turned the app off, went into airplane mode. After that I managed to log in just fine. But I did forgot to mention that I also use fingerprint to access BW so I’m not entering any credentials.
 
382
156
NAS
DS212J, DS214play, DS216, DS216play, DS414, DS918+, RS816
Router
  1. RT2600ac
  2. MR2200ac
Operating system
  1. Windows
Mobile operating system
  1. iOS
Turning the app off isn’t the problem; it’s “logging off” the app.
 

jeyare

Subscriber
1,960
639
Some findings from after installation procedures (Create account in browser).
Log-in or Create account page is OK
Next stage Account Form is OK (include validations), except "submit" button - doesn't work, seems to be a bug or need an additional setup in the container for browsers (Win OS):
  • Last Chrome Version 74.0.3729.169 (Official Build)
  • Last Opera Version 60.0.3255.95

and the Submit works in IE11 (yes I have this sh.t installed)

Your experiences?
 

Rusty

Moderator
NAS Support
4,364
1,268
www.blackvoid.club
NAS
DS718+, DS918+, 2x RS3614RPxs+
Router
  1. RT1900ac
  2. RT2600ac
  3. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
So what you are saying is that you can't complete new user creation? Also, that happens in multiple browsers. Haven't had a similar problem with Safari and Firefox browsers that I use.
 

Rusty

Moderator
NAS Support
4,364
1,268
www.blackvoid.club
NAS
DS718+, DS918+, 2x RS3614RPxs+
Router
  1. RT1900ac
  2. RT2600ac
  3. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS

Telos

Subscriber
1,850
621
NAS
DS418play, DS213j, DS3622+, DSM 7.1.4-11091
So we have to start over? Or can we export settings from mparsil to the new image?
 

Rusty

Moderator
NAS Support
4,364
1,268
www.blackvoid.club
NAS
DS718+, DS918+, 2x RS3614RPxs+
Router
  1. RT1900ac
  2. RT2600ac
  3. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
So we have to start over? Or can we export settings from mparsil to the new image?
Stop your current container, download the new image and create a new container from it connecting to the same volumes that mparsil image/container was using. That's it. Few min transitions.

The image is identical, just under a different name. Looks like mparsil image will be deprecated.
 
382
156
NAS
DS212J, DS214play, DS216, DS216play, DS414, DS918+, RS816
Router
  1. RT2600ac
  2. MR2200ac
Operating system
  1. Windows
Mobile operating system
  1. iOS
Probably a good idea, after creating the new container, to then delete the mparsil container, to avoid confusion going forward. (Also, if you've set the mparsil container to automatically start up on boot, and don't delete it, you'd end up with two bitwarden containers running simultaneously the next time your system restarted, wouldn't you?)
 
44
15
NAS
DS1618+, DS918+
Router
  1. RT1900ac
  2. RT2600ac
  3. MR2200ac
Operating system
  1. Windows
Mobile operating system
  1. Android
And how about exporting (backing up) user data? Do I have to do it or will this new version run with them without problem?
 

Rusty

Moderator
NAS Support
4,364
1,268
www.blackvoid.club
NAS
DS718+, DS918+, 2x RS3614RPxs+
Router
  1. RT1900ac
  2. RT2600ac
  3. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
Probably a good idea, after creating the new container, to then delete the mparsil container, to avoid confusion going forward. (Also, if you've set the mparsil container to automatically start up on boot, and don't delete it, you'd end up with two bitwarden containers running simultaneously the next time your system restarted, wouldn't you?)
Definitely no need to have the old image/container running or turned off. When you verify that its working its safe to kill the old container.
 

Rusty

Moderator
NAS Support
4,364
1,268
www.blackvoid.club
NAS
DS718+, DS918+, 2x RS3614RPxs+
Router
  1. RT1900ac
  2. RT2600ac
  3. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
And how about exporting (backing up) user data? Do I have to do it or will this new version run with them without problem?
All user data are in a DB located inside a /data folder. That folder is connected to the container using an external volume. So the idea is just to connect the new container to that same volume and fire it up. It will connect to the DB and all your data and config will be loaded.
 

Telos

Subscriber
1,850
621
NAS
DS418play, DS213j, DS3622+, DSM 7.1.4-11091
Last edited:
Stop your current container, download the new image and create a new container from it connecting to the same volumes that mparsil image/container was using. That's it. Few min transitions.
That worked. Thanks. The only issue I had was reassigning the port. Even though mprasil was stopped, Docker wouldn't allow me to use the same port. So I set mprasil container to "auto" to release the port.

Logged off the Edge Chrome extension and logged in and all was well.
 
20
4
NAS
DS916+
Router
  1. RT2600ac
Safety question: Are the local DB copies from chrome extension or android app encrypted?
 

Rusty

Moderator
NAS Support
4,364
1,268
www.blackvoid.club
NAS
DS718+, DS918+, 2x RS3614RPxs+
Router
  1. RT1900ac
  2. RT2600ac
  3. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
That worked. Thanks. The only issue I had was reassigning the port. Even though mprasil was stopped, Docker wouldn't allow me to use the same port. So I set mprasil container to "auto" to release the port.

Logged off the Edge Chrome extension and logged in and all was well.
True, but that's a default for any situation where you have 2 containers with same ports. Still you figured it out.
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads

I'll delete everything I can containers/images/etc, and start fresh over the weekend. While I really like...
Replies
48
Views
1,907
Note to self: Don't blindly go and download Docker ':latest' images especially for PostgreSQL. I started...
Replies
39
Views
3,489
I ran across a very complete how-to-install-nextcloud on Docker using the Synology UI (just the UI, not...
Replies
28
Views
4,608
Hello, i just tried to follow these steps above, but all I get is a psql: could not connect to server...
Replies
43
Views
5,349
I found a way to do this using portainer and stacks. DB Stack is a great source for all things docker.
Replies
33
Views
9,573

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Top