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 121.5k 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.
    • necrevistonnezrN necrevistonnezr

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

      @necrevistonnezr - He means delete the DNS entry from your DNS service provider itself for the domain. So if you already have bitwarden.domain.com in your DNS listing for your domain, then remove the bitwarden entry and then re-create with Cloudron.

      That was not the issue since I did not have a subdomain entry in my DNS settings (I have a wildcard DNS entry). The issue was that cloudron-cli was not able to connect to my cloudron properly (TLS, https issues) for reasons I don't know (I told support about it).

      After using cloudron login --allow-selfsigned I was able to build and update the bitwarden...

      d19dotcaD Offline
      d19dotcaD Offline
      d19dotca
      wrote on last edited by
      #86

      @necrevistonnezr Ah interesting, good to know you figured that out then. Normally when that error is seen (I came across it quite a lot when setting up new environments on Cloudron as I learned the platform), it was always because I had already defined a "www" subdomain in my DNS provider, for example, so it then needed me to remove it before it could create it automatically by itself.

      --
      Dustin Dauncey
      www.d19.ca

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

        Ok. So I think I've just figured out the email issue, but don't have a fix yet.

        When using the non-smtps connection, the logs show that lettre, the Rust email library that Bitwarden_rs uses, recognizes that the server supports several authentication methods, including Authentication(Plain), which is what swacks uses when successfully sending on the same port. However, lettre refuses to use it because we aren't using an encrypted connection and it doesn't want to send credentials in the clear. (Checked here, defined as empty here).

        Unfortunately, using smtps is not a solution either because it appears that lettre is trying to validate the certificate, but that certificate is invalid.

        A patch to Bitwarden_rs may be required to tell lettre to allow sending credentials over an insecure connection using this method or by telling it to accept insecure certs.

        I'm working on a patch for Bitwarden_rs to allow insecure SSL connections so that it will accept a self signed cert.

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

          Also, it looks like MySQL support is available now. Once I get all the email support sorted out, I'll try to roll that in as well.

          1 Reply Last reply
          1
          • iamthefijI iamthefij

            Ok. So I think I've just figured out the email issue, but don't have a fix yet.

            When using the non-smtps connection, the logs show that lettre, the Rust email library that Bitwarden_rs uses, recognizes that the server supports several authentication methods, including Authentication(Plain), which is what swacks uses when successfully sending on the same port. However, lettre refuses to use it because we aren't using an encrypted connection and it doesn't want to send credentials in the clear. (Checked here, defined as empty here).

            Unfortunately, using smtps is not a solution either because it appears that lettre is trying to validate the certificate, but that certificate is invalid.

            A patch to Bitwarden_rs may be required to tell lettre to allow sending credentials over an insecure connection using this method or by telling it to accept insecure certs.

            I'm working on a patch for Bitwarden_rs to allow insecure SSL connections so that it will accept a self signed cert.

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

            @iamthefij Ok. My bitwarden_rs patch works. I'm going to submit that upstream.

            1 Reply Last reply
            0
            • girishG Do not disturb
              girishG Do not disturb
              girish
              Staff
              wrote on last edited by
              #90

              @iamthefij Talking to yourself again šŸ™‚ ?

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

                On another note... There is no Docker image built for MySQL support yet, so I'm writing a new Dockerfile that uses a multi stage built to compile Bitwarden_rs with MySQL support.

                fbartelsF 1 Reply Last reply
                0
                • iamthefijI iamthefij

                  On another note... There is no Docker image built for MySQL support yet, so I'm writing a new Dockerfile that uses a multi stage built to compile Bitwarden_rs with MySQL support.

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

                  @iamthefij there is one already at https://github.com/dani-garcia/bitwarden_rs/tree/master/docker/amd64/mysql

                  iamthefijI 1 Reply Last reply
                  0
                  • fbartelsF fbartels

                    @iamthefij there is one already at https://github.com/dani-garcia/bitwarden_rs/tree/master/docker/amd64/mysql

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

                    @fbartels yes. But not an image on Docker Hub that I can pull from. Instead I'm building a multistage build that looks a lot like that Dockerfile but with the an LDAP layer and the Cloudron layer.

                    fbartelsF 1 Reply Last reply
                    0
                    • iamthefijI iamthefij

                      @fbartels yes. But not an image on Docker Hub that I can pull from. Instead I'm building a multistage build that looks a lot like that Dockerfile but with the an LDAP layer and the Cloudron layer.

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

                      @iamthefij it's here https://hub.docker.com/r/bitwardenrs/server-mysql

                      iamthefijI 1 Reply Last reply
                      0
                      • fbartelsF fbartels

                        @iamthefij it's here https://hub.docker.com/r/bitwardenrs/server-mysql

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

                        @fbartels well, I guess I didn't look hard enough! (Edit: Looks like the 1.10.0 release was only 2 hours ago. No wonder I missed it. šŸ™‚ ) It would be good to roll those all into one image with multiple tags, but I can chat with them about that on Matrix.

                        Anyway, adding the multi-stage build wasn't terribly hard and cuts out an extra dependency on that build pipeline, which is probably a good thing for a security sensitive project.

                        Latest on my master is now fully operational. Working email, working ldap sync, working MySQL.

                        BIG WARNING! There is no migration path from SQLite to MySQL. You should export your vault to CSV or something and then re-import it after migration.

                        https://git.cloudron.io/iamthefij/bitwardenrs-app

                        necrevistonnezrN 1 Reply Last reply
                        1
                        • iamthefijI iamthefij

                          @fbartels well, I guess I didn't look hard enough! (Edit: Looks like the 1.10.0 release was only 2 hours ago. No wonder I missed it. šŸ™‚ ) It would be good to roll those all into one image with multiple tags, but I can chat with them about that on Matrix.

                          Anyway, adding the multi-stage build wasn't terribly hard and cuts out an extra dependency on that build pipeline, which is probably a good thing for a security sensitive project.

                          Latest on my master is now fully operational. Working email, working ldap sync, working MySQL.

                          BIG WARNING! There is no migration path from SQLite to MySQL. You should export your vault to CSV or something and then re-import it after migration.

                          https://git.cloudron.io/iamthefij/bitwardenrs-app

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

                          @iamthefij Maybe the migration scripts by the author work that are mentioned here?

                          * Start bitwarden_rs with and empty mysql database, so diesel can run migrations and set up the schema properly. Do not do anything else.
                          * Stop bitwarden_rs.
                          * Dump your existing sqlite database: sqlite3 db.sqlite3 .dump > sqlitedump.sql
                          * Drop schema creation and diesel metadata from your dump, leaving only your actual data: grep "INSERT INTO" sqlitedump.sql | grep -v "__diesel_schema_migrations" > mysqldump.sql
                          
                          * Load your MySQL dump: mysql -u bitwarden -p bitwarden < mysqldump.sql
                          
                          * Start bitwarden_rs
                          ˋˋˋ
                          iamthefijI 1 Reply Last reply
                          0
                          • necrevistonnezrN necrevistonnezr

                            @iamthefij Maybe the migration scripts by the author work that are mentioned here?

                            * Start bitwarden_rs with and empty mysql database, so diesel can run migrations and set up the schema properly. Do not do anything else.
                            * Stop bitwarden_rs.
                            * Dump your existing sqlite database: sqlite3 db.sqlite3 .dump > sqlitedump.sql
                            * Drop schema creation and diesel metadata from your dump, leaving only your actual data: grep "INSERT INTO" sqlitedump.sql | grep -v "__diesel_schema_migrations" > mysqldump.sql
                            
                            * Load your MySQL dump: mysql -u bitwarden -p bitwarden < mysqldump.sql
                            
                            * Start bitwarden_rs
                            ˋˋˋ
                            iamthefijI Offline
                            iamthefijI Offline
                            iamthefij
                            App Dev
                            wrote on last edited by
                            #97

                            @necrevistonnezr I saw that. Yea, it's possible to do, but it's not something that I think is worth automating given that it could be a bit finicky.

                            If someone wants to do this, they are welcome to try using the console.

                            I'm planning to just export and re-import myself.

                            necrevistonnezrN 1 Reply Last reply
                            0
                            • iamthefijI iamthefij

                              @necrevistonnezr I saw that. Yea, it's possible to do, but it's not something that I think is worth automating given that it could be a bit finicky.

                              If someone wants to do this, they are welcome to try using the console.

                              I'm planning to just export and re-import myself.

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

                              @iamthefij but import / export does not work for attachments, right? Or are these somehow migrateable?

                              iamthefijI 1 Reply Last reply
                              0
                              • necrevistonnezrN necrevistonnezr

                                @iamthefij but import / export does not work for attachments, right? Or are these somehow migrateable?

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

                                @necrevistonnezr hmm. I've got no clue. I don't have any attachments and only use Bitwarden to manage passwords.

                                1 Reply Last reply
                                0
                                • L Offline
                                  L Offline
                                  lukaszj
                                  wrote on last edited by
                                  #100

                                  @iamthefij I've used your build with fixed emails and ldap and it installed well however I'm not sure how to get in.

                                  Bitwarden asks for email so I supply email corresponding to my Cloudron login and Cloudron's password but it says username or password is invalid. Can you suggest something?

                                  iamthefijI 1 Reply Last reply
                                  0
                                  • L lukaszj

                                    @iamthefij I've used your build with fixed emails and ldap and it installed well however I'm not sure how to get in.

                                    Bitwarden asks for email so I supply email corresponding to my Cloudron login and Cloudron's password but it says username or password is invalid. Can you suggest something?

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

                                    @lukaszj you should receive an invite email within a few min of the sync task running. I think it runs every 5 min. You'll need to click the link in that email to create your account.

                                    1 Reply Last reply
                                    0
                                    • jimcavoliJ Offline
                                      jimcavoliJ Offline
                                      jimcavoli
                                      App Dev
                                      wrote on last edited by
                                      #102

                                      With all the activity on this thread, is it likely that Bitwarden will see release in the App Store any time soon? Even as an "unstable" package for easier trial by others?

                                      1 Reply Last reply
                                      3
                                      • girishG Do not disturb
                                        girishG Do not disturb
                                        girish
                                        Staff
                                        wrote on last edited by
                                        #103

                                        @jimcavoli We will take this up next week since we are working on getting 4.2 out this week. Will follow up with @iamthefij on what the status is.

                                        iamthefijI 1 Reply Last reply
                                        1
                                        • girishG girish

                                          @jimcavoli We will take this up next week since we are working on getting 4.2 out this week. Will follow up with @iamthefij on what the status is.

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

                                          @girish it should be good to go. My branch is working with MySQL and LDAP.

                                          I've got two working Dockerfiles. One that compiles the entire project and another that just pulls the binary from the published images on Docker Hub. End result is the same.

                                          1 Reply Last reply
                                          1
                                          • L Offline
                                            L Offline
                                            lukaszj
                                            wrote on last edited by
                                            #105

                                            Hello @girish is there any progress with releasing Bitwarden to App Store? Thanks!

                                            1 Reply Last reply
                                            1
                                            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