server icon indicating copy to clipboard operation
server copied to clipboard

On-Premise Hosting w/ Docker - Beta

Open kspearrin opened this issue 9 years ago • 89 comments

I am opening this issue to gather feedback for beta testing on-premise hosting of bitwarden.

Docs

  • Installing & Deploying: https://help.bitwarden.com/article/install-on-premise/
  • Updating: https://help.bitwarden.com/article/updating-on-premise/

These docs are a WIP so if you have any feedback on then, please let me know.

Licensing

On-premise hosting requires a license for certain features such as premium membership and creating an organization (enterprise only).

You can use the following beta license files when upgrading your account to premium or creating an organization from the web vault. Note that these licenses will only work on beta installations and expire 30 days from now.

BETA_bitwarden_licenses.zip

Note that premium licenses are tired to the user's email address. This means that to use the beta testing premium license above you must create a user account with the email address [email protected]. It will not work with any other email address.

Installation id and key for these licenses is:

Installation Id: 20A048D1-F854-47E3-934D-8796473981B0 Installation Key: NBRu5oWbJs7MNpRyVdDbJSU

Feedback

Please provide feedback in this issue. Do not open new issues about problems with Docker deployments. We are interested in knowing any issues you run into or any general feedback with the installation/deployment process in general (even if only positive feedback).

Warning

You should only use this beta for testing. DO NOT STORE SENSITIVE DATA IN THESE BETA INSTALLATIONS. There could be bugs and other vulnerabilities in these installations. There will be no upgrade path to the production builds from these beta installations and they should be removed when you are done.

kspearrin avatar Aug 21 '17 20:08 kspearrin

Latest dev build of the browser extension allow you to set the environment URLs from the login page.

image

kspearrin avatar Aug 22 '17 16:08 kspearrin

TVP issue mentioned has been temporarily resolved for now, so you should be able to use everything without issue. If you have already deployed you can update with

  • ./bitwarden.sh stop
  • ./bitwarden.sh update
  • ./bitwarden.sh start

kspearrin avatar Aug 22 '17 17:08 kspearrin

Quick Question: The On-Premise Hosting or the Docker Container Features, are they just available for Enterprise customers later or available for everybody? image

ghost avatar Aug 23 '17 08:08 ghost

@stev-it It will be free for everyone to self-host, however, if you want to unlock the premium features it will require a premium license. If you want to create an organization it will require an enterprise license.

kspearrin avatar Aug 23 '17 11:08 kspearrin

@kspearrin Hi. Thanks for the work! Will we get a release soon of Bitwarden Mobile with your last great commit?

Btw, I would love an integration of Bitwarden as an extension of Nextcloud. It would be a killer-app.

HLFH avatar Aug 24 '17 10:08 HLFH

@HLFH You can download the latest mobile apk from here: https://ci.appveyor.com/project/bitwarden/mobile/build/artifacts

Note that this APK is not compatible with the current bitwarden production server, though it will work with your locally hosted installations if you change the environment URLs.

kspearrin avatar Aug 24 '17 12:08 kspearrin

I've started working on some of the official help documentation for installing and deploying bitwarden via Docker in our help center here: https://help.bitwarden.com/article/install-on-premise/

kspearrin avatar Aug 24 '17 21:08 kspearrin

Hello! There is an issue with attached files download: application returns 404 with empty response body.

migolovanov avatar Aug 25 '17 11:08 migolovanov

@migolovanov Thanks! This has now been fixed. Just run the update command. Please let me know if it is working for you now.

kspearrin avatar Aug 25 '17 15:08 kspearrin

@kspearrin During update it didn't pull new version of docker containers, but when i done that step manually everything works fine. Thank you very much!

migolovanov avatar Aug 26 '17 18:08 migolovanov

@migolovanov I think I need to add docker pull to the update.

kspearrin avatar Aug 26 '17 18:08 kspearrin

wow have been watching this project for quite some while as my last solution was a passopolis based server, but it s not really maintained anymore and was a pain to setup. I had a bitwarden docker server up and running in notime, very nice! I have a few question now though, Is it possible to disable registration, or a system that would need admin approval? Will the ios app get an update to enter a custom server url in the future? Any hint where i can change the email template? it seems it still got a wrong sender adress included.

tcjew avatar Aug 27 '17 19:08 tcjew

@tcjew

  • Currently, no, but that is a good idea for personal users. I will add something.
  • Yes, the iOS app is already ready. We just need to push out the update when we go live.
  • Yes, you can change the "from" address in the ./bitwarden/env/global.override.env file. Add a line like this:
[email protected]

kspearrin avatar Aug 28 '17 11:08 kspearrin

Awesome job, @kspearrin

I just took it for a spin on localhost and it works great.

I also tried it with the browser extension (also easy instructions on how to set it up) and it also works great. The only thing is that if I change a password on the web ui, the browser extension won't pick up the change unless I log out and in again.

As per the installation, I have no further feedback. Everything is nice and smooth with the whole Docker workflow.

mongrelion avatar Aug 28 '17 13:08 mongrelion

@mongrelion that is expected behavior. It will eventually log you out automatically. Usually on your next automated sync.

kspearrin avatar Aug 28 '17 14:08 kspearrin

Currently using a personal organization for my family, will self-hosting be available to me for them or would I need an enterprise license? Want to utilize for my wife, two teenagers, and myself.

DailenG avatar Aug 28 '17 17:08 DailenG

@DailenG Any self-hosted organization account will require an enterprise license.

kspearrin avatar Aug 28 '17 17:08 kspearrin

@kspearrin thanks! i'll probably spring for it at some point!

DailenG avatar Aug 28 '17 17:08 DailenG

This is awesome stuff, do you have an idea on when it will go live?

bspradling avatar Aug 29 '17 02:08 bspradling

@bspradling8 We cant go live until our dependency on sql server 2017 does. It is currently in public preview so I am guessing sometime in the next month or two.

kspearrin avatar Aug 29 '17 04:08 kspearrin