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 134.7k 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 Offline
    girishG Offline
    girish
    Staff
    wrote on last edited by
    #192

    @will Mostly, we are just super short on time 😕 To release an app, we need to test the package, write docs, write tests, make sure updates work, make sure we understand packaging, all so that we can support it. Cloudron customers also ask us many app related questions so we have to be in a position to (reasonably) answer them.

    Of course, we can just publish the app and skip all the above. I understand there is a need to "just publish" and we have a great bunch of early adopters here who will put up with all the above. I just spoke to @nebulon about this, we will get unstable package for bitwarden shortly without any of the above.

    1 Reply Last reply
    4
    • W will

      Devs,
      What's keeping bitwarden out of the store? Been running the fbartels version all day with no issues that were not my own fault.
      As seemless as any other app that doesn't tie in with Cloudron SSO/LDAP.

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

      @will just a note, I don't believe fbartels version supports a using a dump for backing up the database. This means that if the backup is taken while the db is in a transaction, it could be corrupted.

      Bitwarden_rs now supports an admin API for making sqlite backups, but does not have any cron embedded. Similar to the way the LDAP sync tool works, an additional script could be added to periodically make dumps of the sqlite database so that it can be properly backed up.

      Instead, the version I have is using MySQL, which leverages the native Cloudron backup and restore functionality.

      That and the LDAP invite service are the real differences between the two forks. If you do not wish to use automated LDAP invites on my fork, you can select to opt out when installing. This is covered in the readme.

      W 1 Reply Last reply
      3
      • iamthefijI iamthefij

        @will just a note, I don't believe fbartels version supports a using a dump for backing up the database. This means that if the backup is taken while the db is in a transaction, it could be corrupted.

        Bitwarden_rs now supports an admin API for making sqlite backups, but does not have any cron embedded. Similar to the way the LDAP sync tool works, an additional script could be added to periodically make dumps of the sqlite database so that it can be properly backed up.

        Instead, the version I have is using MySQL, which leverages the native Cloudron backup and restore functionality.

        That and the LDAP invite service are the real differences between the two forks. If you do not wish to use automated LDAP invites on my fork, you can select to opt out when installing. This is covered in the readme.

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

        @iamthefij I just havent been able to get yours going using the steps I posted above

        iamthefijI 1 Reply Last reply
        0
        • W will

          @iamthefij I just havent been able to get yours going using the steps I posted above

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

          @will Which thing is failing? Building still works for me, even if I clear my cache. Make sure you do a git pull though. It looks like your build command is using the single build Dockerfile rather than the multi-phase one.

          W 1 Reply Last reply
          1
          • iamthefijI iamthefij

            @will Which thing is failing? Building still works for me, even if I clear my cache. Make sure you do a git pull though. It looks like your build command is using the single build Dockerfile rather than the multi-phase one.

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

            @iamthefij How do I use the multi stage dockerfile?

            1 Reply Last reply
            0
            • girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by
              #197

              It seems people are struggling to build. @iamthefij if you have your docker image public, you can just put it here. People can then install it as:

              cloudron install --image <image> # run this in the repo directory
              

              No need to build!

              iamthefijI 1 Reply Last reply
              1
              • girishG girish

                It seems people are struggling to build. @iamthefij if you have your docker image public, you can just put it here. People can then install it as:

                cloudron install --image <image> # run this in the repo directory
                

                No need to build!

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

                @girish good idea. Here's my build: https://hub.docker.com/r/iamthefij/cloudron-app-bitwarden

                @will The multi-stage build should be default if you've pulled the latest. Dockerfile should be a symblink to the multi-stage one.

                1 Reply Last reply
                0
                • girishG Offline
                  girishG Offline
                  girish
                  Staff
                  wrote on last edited by girish
                  #199

                  thanks @iamthefij

                  For those looking to install this:

                  $ git clone ssh://git@git.cloudron.io:6000/iamthefij/bitwardenrs-app.git
                  $ cd bitwardenrs-app
                  $ cloudron install --image iamthefij/cloudron-app-bitwarden:0.3.0
                  

                  Aaaannd it's running:

                  testing.png

                  After installing, both my users got an invite to join bitwarden. Very cool.

                  jdaviescoatesJ yusfY W 3 Replies Last reply
                  2
                  • girishG girish

                    thanks @iamthefij

                    For those looking to install this:

                    $ git clone ssh://git@git.cloudron.io:6000/iamthefij/bitwardenrs-app.git
                    $ cd bitwardenrs-app
                    $ cloudron install --image iamthefij/cloudron-app-bitwarden:0.3.0
                    

                    Aaaannd it's running:

                    testing.png

                    After installing, both my users got an invite to join bitwarden. Very cool.

                    jdaviescoatesJ Offline
                    jdaviescoatesJ Offline
                    jdaviescoates
                    wrote on last edited by
                    #200

                    @girish any reason not to have this in the app store as unstable? I'm assuming the only thing keeping for being officially released are tests need to be written etc?

                    I use Cloudron with Gandi & Hetzner

                    1 Reply Last reply
                    1
                    • girishG girish

                      thanks @iamthefij

                      For those looking to install this:

                      $ git clone ssh://git@git.cloudron.io:6000/iamthefij/bitwardenrs-app.git
                      $ cd bitwardenrs-app
                      $ cloudron install --image iamthefij/cloudron-app-bitwarden:0.3.0
                      

                      Aaaannd it's running:

                      testing.png

                      After installing, both my users got an invite to join bitwarden. Very cool.

                      yusfY Offline
                      yusfY Offline
                      yusf
                      wrote on last edited by
                      #201

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

                      After installing, both my users got an invite to join bitwarden

                      Like, automatically?

                      1 Reply Last reply
                      1
                      • girishG Offline
                        girishG Offline
                        girish
                        Staff
                        wrote on last edited by
                        #202

                        @jdaviescoates Yes, tests plus making sure we can actually maintain it in the long run (for example, if everything is pinned properly in the docker file, things like that). Usually, @nebulon and also do a round of manual testing and put some basic docs before putting it in unstable.

                        @yusf yes, both users got the invite automatically.

                        jdaviescoatesJ 1 Reply Last reply
                        1
                        • girishG girish

                          @jdaviescoates Yes, tests plus making sure we can actually maintain it in the long run (for example, if everything is pinned properly in the docker file, things like that). Usually, @nebulon and also do a round of manual testing and put some basic docs before putting it in unstable.

                          @yusf yes, both users got the invite automatically.

                          jdaviescoatesJ Offline
                          jdaviescoatesJ Offline
                          jdaviescoates
                          wrote on last edited by
                          #203

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

                          @yusf yes, both users got the invite automatically.

                          I'm guessing perhaps @yusf was asking because what if you don't want to invite all users automatically?

                          I use Cloudron with Gandi & Hetzner

                          yusfY 1 Reply Last reply
                          1
                          • jdaviescoatesJ jdaviescoates

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

                            @yusf yes, both users got the invite automatically.

                            I'm guessing perhaps @yusf was asking because what if you don't want to invite all users automatically?

                            yusfY Offline
                            yusfY Offline
                            yusf
                            wrote on last edited by
                            #204

                            @jdaviescoates Namesake reads my mind.

                            jdaviescoatesJ 1 Reply Last reply
                            1
                            • yusfY yusf

                              @jdaviescoates Namesake reads my mind.

                              jdaviescoatesJ Offline
                              jdaviescoatesJ Offline
                              jdaviescoates
                              wrote on last edited by
                              #205

                              @yusf 🙂 heh, I only just realised Yusf is obviously Yussef which of course is the same as Josef 😊

                              I use Cloudron with Gandi & Hetzner

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

                                When installing, uncheck SSO.

                                yusfY 1 Reply Last reply
                                0
                                • iamthefijI iamthefij

                                  When installing, uncheck SSO.

                                  yusfY Offline
                                  yusfY Offline
                                  yusf
                                  wrote on last edited by
                                  #207

                                  @iamthefij I haven't followed the thread continously but is there a specific reason for emailing all users who are granted access to the app through the SSO?

                                  iamthefijI 1 Reply Last reply
                                  1
                                  • yusfY yusf

                                    @iamthefij I haven't followed the thread continously but is there a specific reason for emailing all users who are granted access to the app through the SSO?

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

                                    @yusf Yea, the Readme describe the reasoning.

                                    There is no way to actually do true SSO without breaking the model for Bitwarden. The only thing that we can do is automatically invite users to sign up.

                                    The Bitwarden_rs project doesn't have a way to invite without sending an email as when an SMTP server is configured, it will generate unique invite links for each user.

                                    If you disable SSO, you only disable the auto-invite feature. You will then need to invite yourself via the Admin panel (admin token is echoed in the logs and in /app/data/admin_token). You can then invite anyone else you wish manually.

                                    W 1 Reply Last reply
                                    3
                                    • necrevistonnezrN Offline
                                      necrevistonnezrN Offline
                                      necrevistonnezr
                                      wrote on last edited by
                                      #209

                                      Is there a reliable way to move from Bitwarden SQLite (fbartels build) to Bitwarden MySQL (iamthefij build) including all attachments?

                                      1 Reply Last reply
                                      0
                                      • girishG girish

                                        thanks @iamthefij

                                        For those looking to install this:

                                        $ git clone ssh://git@git.cloudron.io:6000/iamthefij/bitwardenrs-app.git
                                        $ cd bitwardenrs-app
                                        $ cloudron install --image iamthefij/cloudron-app-bitwarden:0.3.0
                                        

                                        Aaaannd it's running:

                                        testing.png

                                        After installing, both my users got an invite to join bitwarden. Very cool.

                                        W Offline
                                        W Offline
                                        will
                                        wrote on last edited by will
                                        #210
                                        This post is deleted!
                                        1 Reply Last reply
                                        0
                                        • iamthefijI iamthefij

                                          @yusf Yea, the Readme describe the reasoning.

                                          There is no way to actually do true SSO without breaking the model for Bitwarden. The only thing that we can do is automatically invite users to sign up.

                                          The Bitwarden_rs project doesn't have a way to invite without sending an email as when an SMTP server is configured, it will generate unique invite links for each user.

                                          If you disable SSO, you only disable the auto-invite feature. You will then need to invite yourself via the Admin panel (admin token is echoed in the logs and in /app/data/admin_token). You can then invite anyone else you wish manually.

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

                                          @iamthefij I can't login to the admin page. It keeps saying "invalid token"
                                          I did a fresh boot of the container, copied everything between access token= and HTTP/1.1"
                                          access_token= copied this giberish HTTP/1.1"

                                          Thoughts?

                                          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