Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. App Wishlist
  3. Bitwarden - Self-hosted password manager

Bitwarden - Self-hosted password manager

Scheduled Pinned Locked Moved Solved App Wishlist
218 Posts 20 Posters 129.9k Views 29 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • girishG girish

    Just started looking into getting this package published. I also found a related https://github.com/dani-garcia/bitwarden_rs/pull/677 .

    iamthefijI Offline
    iamthefijI Offline
    iamthefij
    App Dev
    wrote on last edited by
    #119

    @girish I'd be neat if that gets merged, but the maintainers rejected a previous patch for direct LDAP support and that's why it was moved to a different binary. See comments here: https://github.com/dani-garcia/bitwarden_rs/pull/396#issuecomment-464059020

    1 Reply Last reply
    0
    • iamthefijI Offline
      iamthefijI Offline
      iamthefij
      App Dev
      wrote on last edited by
      #120

      Hey @girish any updates on this? I've been holding off on migrating from my external instance to my Cloudron one because I'm not sure about the process of migrating from the dev one to an official one. Any guidance on when to expect this or if it's possible to preserve the Docker volume would be helpful.

      1 Reply Last reply
      1
      • W Offline
        W Offline
        will
        wrote on last edited by
        #121

        @iamthefij said in Bitwarden - Self-hosted password manager:

        Hey @girish any updates on this? I've been holding off on migrating from my external instance to my Cloudron one because I'm not sure about the process of migrating from the dev one to an official one. Any guidance on when to expect this or if it's possible to preserve the Docker volume would be helpful.

        I'm in the same boat. I am maintaining a VPS solely for Bitwarden access. Would save $10 a month and time if I could roll this out! Thanks for all the hard work!

        I tried deploying the Cloudron Bitwarden like below:

        Commands run on Cloudron server.

        git clone https://git.cloudron.io/fbartels/bitwardenrs-app #Successfully clones to home directory
        npm install -g cloudron-cli **#Command fails, no cloudron-cli **
        cloudron build # this will ask your cloudron.io login #Never got to this stage
        cloudron install # this will ask you for your cloudron's login #Never got to this stage

        murgeroM 1 Reply Last reply
        0
        • W will

          @iamthefij said in Bitwarden - Self-hosted password manager:

          Hey @girish any updates on this? I've been holding off on migrating from my external instance to my Cloudron one because I'm not sure about the process of migrating from the dev one to an official one. Any guidance on when to expect this or if it's possible to preserve the Docker volume would be helpful.

          I'm in the same boat. I am maintaining a VPS solely for Bitwarden access. Would save $10 a month and time if I could roll this out! Thanks for all the hard work!

          I tried deploying the Cloudron Bitwarden like below:

          Commands run on Cloudron server.

          git clone https://git.cloudron.io/fbartels/bitwardenrs-app #Successfully clones to home directory
          npm install -g cloudron-cli **#Command fails, no cloudron-cli **
          cloudron build # this will ask your cloudron.io login #Never got to this stage
          cloudron install # this will ask you for your cloudron's login #Never got to this stage

          murgeroM Offline
          murgeroM Offline
          murgero
          App Dev
          wrote on last edited by
          #122

          @will Those commands do NOT get ran on the cloudron server.

          The cloudron CLI is ONLY for use outside of the server (it's the management tool for cli users)

          At home, install virtualbox on your computer and create an ubuntu VM. (If you already have a computer with linux, ignore this step, these steps can be installed in windows if you install nodejs and git first)

          Then run:

          git clone https://git.cloudron.io/fbartels/bitwardenrs-app
          cd bitwardenrs-app
          ## Install NodeJS from https://nodejs.org/en/download/package-manager/
          npm install -g cloudron
          cloudron build
          cloudron install
          

          --
          https://urgero.org
          ~ Professional Nerd. Freelance Programmer. ~

          W 1 Reply Last reply
          0
          • murgeroM murgero

            @will Those commands do NOT get ran on the cloudron server.

            The cloudron CLI is ONLY for use outside of the server (it's the management tool for cli users)

            At home, install virtualbox on your computer and create an ubuntu VM. (If you already have a computer with linux, ignore this step, these steps can be installed in windows if you install nodejs and git first)

            Then run:

            git clone https://git.cloudron.io/fbartels/bitwardenrs-app
            cd bitwardenrs-app
            ## Install NodeJS from https://nodejs.org/en/download/package-manager/
            npm install -g cloudron
            cloudron build
            cloudron install
            
            W Offline
            W Offline
            will
            wrote on last edited by
            #123

            @murgero Thanks! I'm running windows subsystem for linux so I'll give it a shot. Thanks again!

            murgeroM 1 Reply Last reply
            1
            • W will

              @murgero Thanks! I'm running windows subsystem for linux so I'll give it a shot. Thanks again!

              murgeroM Offline
              murgeroM Offline
              murgero
              App Dev
              wrote on last edited by
              #124

              @will If you plan on building apps using a local docker install, that can only be done on linux (not the subsystem), otherwise using a build service (either the app one or cloudron's cloud build service) is good on any system with nodejs support

              --
              https://urgero.org
              ~ Professional Nerd. Freelance Programmer. ~

              W 1 Reply Last reply
              0
              • murgeroM murgero

                @will If you plan on building apps using a local docker install, that can only be done on linux (not the subsystem), otherwise using a build service (either the app one or cloudron's cloud build service) is good on any system with nodejs support

                W Offline
                W Offline
                will
                wrote on last edited by
                #125

                @murgero I'm not a developer, but I have stumbled my way through rough spots before. Just so I understand the workflow.
                So lets say I want to deploy the Bitwarden app on my Cloudron instance in production (I don't but let's roll with it for a sec)
                I would configure my dev environment (install Nodejs, cloudron-cli, and install Cloudron build service app on the Web Store)
                I would clone the app I wanted to play with to my local dev machine, cd into that directory and use the cloudron build command to bush this app to the Cloudron Build Service App?
                Lastly use the cloudron install command to install the app on to my production instance.
                How close am I to the right answer? 😰

                Thanks again for taking the time out to help me out. I'm trying to understand this stuff, but it's way out of my swimlane.

                murgeroM 1 Reply Last reply
                0
                • W will

                  @murgero I'm not a developer, but I have stumbled my way through rough spots before. Just so I understand the workflow.
                  So lets say I want to deploy the Bitwarden app on my Cloudron instance in production (I don't but let's roll with it for a sec)
                  I would configure my dev environment (install Nodejs, cloudron-cli, and install Cloudron build service app on the Web Store)
                  I would clone the app I wanted to play with to my local dev machine, cd into that directory and use the cloudron build command to bush this app to the Cloudron Build Service App?
                  Lastly use the cloudron install command to install the app on to my production instance.
                  How close am I to the right answer? 😰

                  Thanks again for taking the time out to help me out. I'm trying to understand this stuff, but it's way out of my swimlane.

                  murgeroM Offline
                  murgeroM Offline
                  murgero
                  App Dev
                  wrote on last edited by murgero
                  #126

                  @will I don't use the build service app because it can delete other apps mistakenly. I use the following process for building my apps (step by step, literally) using a local linux machine with Docker, npm, git, and cloudron-cli.

                  Just make sure you have a free dockerhub account 🙂

                  git clone https://github.com/mitchellurgero/cloudron-vscode
                  cd cloudron-vscode
                  
                  ## Change as you need!
                  docker build -t dockername/projectname:tagname .
                  docker push dockername/projectname:tagname
                  
                  ## End docker changes
                  cloudron login
                  cloudron install --image dockerhuburl/dockername/projectname:tagname
                  

                  Example commands when replacing the variables with real items:

                  git clone https://github.com/murgero/MyApp1-cloudron
                  cd MyApp1-cloudron
                  
                  ## Change as you need!
                  docker build -t murgero/MyApp1:latest .
                  docker push murgero/MyApp1:latest
                  
                  ## End docker changes
                  cloudron login
                  cloudron install --image dockerhuburl/murgero/MyApp1:latest
                  

                  --
                  https://urgero.org
                  ~ Professional Nerd. Freelance Programmer. ~

                  fbartelsF 1 Reply Last reply
                  1
                  • iamthefijI Offline
                    iamthefijI Offline
                    iamthefij
                    App Dev
                    wrote on last edited by
                    #127

                    FYI @murgero @will I don’t think that git repo has any of the fixes or changes I’ve added. Try the one I linked much earlier. (I’m on mobile so I can’t link it now).

                    1 Reply Last reply
                    2
                    • murgeroM murgero

                      @will I don't use the build service app because it can delete other apps mistakenly. I use the following process for building my apps (step by step, literally) using a local linux machine with Docker, npm, git, and cloudron-cli.

                      Just make sure you have a free dockerhub account 🙂

                      git clone https://github.com/mitchellurgero/cloudron-vscode
                      cd cloudron-vscode
                      
                      ## Change as you need!
                      docker build -t dockername/projectname:tagname .
                      docker push dockername/projectname:tagname
                      
                      ## End docker changes
                      cloudron login
                      cloudron install --image dockerhuburl/dockername/projectname:tagname
                      

                      Example commands when replacing the variables with real items:

                      git clone https://github.com/murgero/MyApp1-cloudron
                      cd MyApp1-cloudron
                      
                      ## Change as you need!
                      docker build -t murgero/MyApp1:latest .
                      docker push murgero/MyApp1:latest
                      
                      ## End docker changes
                      cloudron login
                      cloudron install --image dockerhuburl/murgero/MyApp1:latest
                      
                      fbartelsF Offline
                      fbartelsF Offline
                      fbartels
                      App Dev
                      wrote on last edited by fbartels
                      #128

                      @murgero building is much easier now. when you call cloudron build it will ask for the registry to upload to. so you just have to enter your-username/your-chosen-name-for-the image, e.g. fbartels/cloudron-bitwardenrs. cloudron install will then automatically use this image.

                      @will I am still not a huge believer in the ldap sync and the mysql backend of bitwarden. I have updated my repo to the last version and also picked some smtp things from @iamthefij. Sending invites still does not seem to work, will need to look further into this.

                      Edit: Managed to fix the issue with sending invites. the value of SMTP_AUTH_MECHANISM needs to be quoted, but when exporting it, these quotes are normally removed. Working and up to date version is in the git repo.

                      iamthefijI murgeroM 2 Replies Last reply
                      0
                      • fbartelsF fbartels

                        @murgero building is much easier now. when you call cloudron build it will ask for the registry to upload to. so you just have to enter your-username/your-chosen-name-for-the image, e.g. fbartels/cloudron-bitwardenrs. cloudron install will then automatically use this image.

                        @will I am still not a huge believer in the ldap sync and the mysql backend of bitwarden. I have updated my repo to the last version and also picked some smtp things from @iamthefij. Sending invites still does not seem to work, will need to look further into this.

                        Edit: Managed to fix the issue with sending invites. the value of SMTP_AUTH_MECHANISM needs to be quoted, but when exporting it, these quotes are normally removed. Working and up to date version is in the git repo.

                        iamthefijI Offline
                        iamthefijI Offline
                        iamthefij
                        App Dev
                        wrote on last edited by
                        #129

                        @fbartels what issues are you having with the LDAP sync?

                        fbartelsF 1 Reply Last reply
                        0
                        • iamthefijI iamthefij

                          @fbartels what issues are you having with the LDAP sync?

                          fbartelsF Offline
                          fbartelsF Offline
                          fbartels
                          App Dev
                          wrote on last edited by
                          #130

                          @iamthefij its not a technical problem, the approach isn't bad either. I think both (LDAP and MySQL) simply add unneeded complexity.

                          iamthefijI 1 Reply Last reply
                          0
                          • fbartelsF fbartels

                            @murgero building is much easier now. when you call cloudron build it will ask for the registry to upload to. so you just have to enter your-username/your-chosen-name-for-the image, e.g. fbartels/cloudron-bitwardenrs. cloudron install will then automatically use this image.

                            @will I am still not a huge believer in the ldap sync and the mysql backend of bitwarden. I have updated my repo to the last version and also picked some smtp things from @iamthefij. Sending invites still does not seem to work, will need to look further into this.

                            Edit: Managed to fix the issue with sending invites. the value of SMTP_AUTH_MECHANISM needs to be quoted, but when exporting it, these quotes are normally removed. Working and up to date version is in the git repo.

                            murgeroM Offline
                            murgeroM Offline
                            murgero
                            App Dev
                            wrote on last edited by
                            #131

                            @fbartels said in Bitwarden - Self-hosted password manager:

                            building is much easier now. when you call cloudron build it will ask for the registry to upload to. so you just have to enter your-username/your-chosen-name-for-the image, e.g. fbartels/cloudron-bitwardenrs. cloudron install will then automatically use this image.

                            This requires the build service app to be installed on your cloudron which currently has a warning attached to it that it may delete USED docker images from other apps. Until the build service app is more stable, I'll stick to my sure-fire, tried and true way 🙂

                            --
                            https://urgero.org
                            ~ Professional Nerd. Freelance Programmer. ~

                            fbartelsF 1 Reply Last reply
                            0
                            • murgeroM murgero

                              @fbartels said in Bitwarden - Self-hosted password manager:

                              building is much easier now. when you call cloudron build it will ask for the registry to upload to. so you just have to enter your-username/your-chosen-name-for-the image, e.g. fbartels/cloudron-bitwardenrs. cloudron install will then automatically use this image.

                              This requires the build service app to be installed on your cloudron which currently has a warning attached to it that it may delete USED docker images from other apps. Until the build service app is more stable, I'll stick to my sure-fire, tried and true way 🙂

                              fbartelsF Offline
                              fbartelsF Offline
                              fbartels
                              App Dev
                              wrote on last edited by
                              #132

                              @murgero said in Bitwarden - Self-hosted password manager:

                              This requires the build service app to be installed on your cloudron

                              That is not true. Its build locally and then pushed into the github account.

                              necrevistonnezrN 1 Reply Last reply
                              0
                              • fbartelsF fbartels

                                @iamthefij its not a technical problem, the approach isn't bad either. I think both (LDAP and MySQL) simply add unneeded complexity.

                                iamthefijI Offline
                                iamthefijI Offline
                                iamthefij
                                App Dev
                                wrote on last edited by
                                #133

                                @fbartels I see. Yea, totally agree that it’s not really necessary for most folks usage. The instance I run outside of Cloudron today uses neither of them. I’m using it as a simple personal password manager.

                                I believe Cloudron tends to prefer configurations that are ready for a small enterprise. My personal Gogs server was fine with SQLite and local auth as well, but Cloudron is configured with MySQL and LDAP.

                                🤷‍♂️

                                1 Reply Last reply
                                0
                                • yusfY Offline
                                  yusfY Offline
                                  yusf
                                  wrote on last edited by
                                  #134

                                  I think it’s important to scale for at least 50 intended users for Cloudron apps. I think that this number is even specified in the docs somewhere.

                                  1 Reply Last reply
                                  0
                                  • fbartelsF fbartels

                                    @murgero said in Bitwarden - Self-hosted password manager:

                                    This requires the build service app to be installed on your cloudron

                                    That is not true. Its build locally and then pushed into the github account.

                                    necrevistonnezrN Offline
                                    necrevistonnezrN Offline
                                    necrevistonnezr
                                    wrote on last edited by
                                    #135

                                    @fbartels said in Bitwarden - Self-hosted password manager:

                                    @murgero said in Bitwarden - Self-hosted password manager:

                                    This requires the build service app to be installed on your cloudron

                                    That is not true. Its build locally and then pushed into the github account.

                                    When I try to update my bitwarden app at the existing domain 'bit.mydomain.de' this way, I still get a

                                    Failed to install app: 409 message: Domain 'bit.mydomain.de' is in use
                                    

                                    I have a wildcard DNS entry), so a DNS entry for the subdomain should not cause trouble. I also tried cloudron login --allow-selfsigned but it doesn't change anything.

                                    Could the "version" entry in CloudronManifest.jsonbe the culprit?

                                    fbartelsF 1 Reply Last reply
                                    0
                                    • necrevistonnezrN necrevistonnezr

                                      @fbartels said in Bitwarden - Self-hosted password manager:

                                      @murgero said in Bitwarden - Self-hosted password manager:

                                      This requires the build service app to be installed on your cloudron

                                      That is not true. Its build locally and then pushed into the github account.

                                      When I try to update my bitwarden app at the existing domain 'bit.mydomain.de' this way, I still get a

                                      Failed to install app: 409 message: Domain 'bit.mydomain.de' is in use
                                      

                                      I have a wildcard DNS entry), so a DNS entry for the subdomain should not cause trouble. I also tried cloudron login --allow-selfsigned but it doesn't change anything.

                                      Could the "version" entry in CloudronManifest.jsonbe the culprit?

                                      fbartelsF Offline
                                      fbartelsF Offline
                                      fbartels
                                      App Dev
                                      wrote on last edited by
                                      #136

                                      @necrevistonnezr said in Bitwarden - Self-hosted password manager:

                                      Could the "version" entry in CloudronManifest.jsonbe the culprit?

                                      No, at least not from my experience. It always depends from where you installed an app previously. So for example when you initially installed an app from the official appcenter you can not easily update it with a locally build app. To make it recognize an existing app you can add the --app parameter to the install command.

                                      So e.g. cloudron update --app bit

                                      But make sure that the applications are actually compatible with each other.

                                      1 Reply Last reply
                                      1
                                      • necrevistonnezrN Offline
                                        necrevistonnezrN Offline
                                        necrevistonnezr
                                        wrote on last edited by
                                        #137

                                        Still gettin errors:

                                        osboxes@osboxes:~/bitwardenrs-app$ cloudron update --app bit
                                        Will update app at location bit
                                         => Waiting for app to be updated 
                                         => Starting ... ...
                                         => Backup - Snapshotting app bit.mydomain.de ..
                                         => Backup - undefined 
                                         => Downloading image ...........................................
                                        App update error: Installation failed: undefined
                                        
                                        osboxes@osboxes:~/bitwardenrs-app$ sudo cloudron update --app bit
                                        Will update app at location bit
                                        Failed to update app: 409 message: Not allowed in error state
                                        
                                        fbartelsF 1 Reply Last reply
                                        0
                                        • necrevistonnezrN necrevistonnezr

                                          Still gettin errors:

                                          osboxes@osboxes:~/bitwardenrs-app$ cloudron update --app bit
                                          Will update app at location bit
                                           => Waiting for app to be updated 
                                           => Starting ... ...
                                           => Backup - Snapshotting app bit.mydomain.de ..
                                           => Backup - undefined 
                                           => Downloading image ...........................................
                                          App update error: Installation failed: undefined
                                          
                                          osboxes@osboxes:~/bitwardenrs-app$ sudo cloudron update --app bit
                                          Will update app at location bit
                                          Failed to update app: 409 message: Not allowed in error state
                                          
                                          fbartelsF Offline
                                          fbartelsF Offline
                                          fbartels
                                          App Dev
                                          wrote on last edited by
                                          #138

                                          @necrevistonnezr it seems to fail at downloading the image, so it has nothing to do with the app per se.

                                          Can you also post the output of cloudron build?

                                          Maybe it could also help to remove the existing app before (but since it fails at downloading I would doubt that).

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Bookmarks
                                          • Search