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


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Bitwarden - Self-hosted password manager

    App Wishlist
    20
    218
    42431
    Loading More Posts
    • 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.
    • murgero
      murgero App Dev @necrevistonnezr last edited by

      @necrevistonnezr in theory sure, but last I tried (about a month ago) it said my user account was denied access (error 503)

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

      1 Reply Last reply Reply Quote 0
      • iamthefij
        iamthefij App Dev last edited by

        Started digging back into email sending and got closer.

        I just noticed that the Cloudron docs say that the STARTLS uses a self signed cert, which makes sense given that the host I'm using is mail and not my.example.com.

        So I switched back to unencrypted and enabled more verbose logging. Ended up with:

        Jul 25 16:34:22 [2019-07-25 16:34:22][rocket::rocket][INFO] POST /admin//invite/ application/json:
        Jul 25 16:34:22 [2019-07-25 16:34:22][_][INFO] Matched: POST /admin/invite (invite_user)
        Jul 25 16:34:22 [2019-07-25 16:34:22][lettre::smtp::client][DEBUG] connecting to 172.18.0.6:2525
        Jul 25 16:34:22 [2019-07-25 16:34:22][lettre::smtp::client][DEBUG] Read: 220 my.example.com ESMTP Haraka/2.8.23 ready<CRLF>
        Jul 25 16:34:22 [2019-07-25 16:34:22][lettre::smtp][INFO] connection established to 172.18.0.6:2525
        Jul 25 16:34:22 [2019-07-25 16:34:22][lettre::smtp::client][DEBUG] Wrote: EHLO 90859b46-d863-4609-a83a-79c5f010254c<CRLF>
        Jul 25 16:34:22 [2019-07-25 16:34:22][lettre::smtp::client][DEBUG] Read: 250-my.example.com Hello 90859b46-d863-4609-a83a-79c5f010254c.cloudron [172.18.0.12]Haraka is at your service.<CRLF>250-PIPELINING<CRLF>250-8BITMIME<CRLF>250-SMTPUTF8<CRLF>250-SIZE 26214400<CRLF>250 AUTH LOGIN PLAIN<CRLF>
        Jul 25 16:34:22 [2019-07-25 16:34:22][lettre::smtp][DEBUG] server my.example.com with {Authentication(Login), Authentication(Plain), SmtpUtfEight, EightBitMime}
        Jul 25 16:34:22 [2019-07-25 16:34:22][lettre::smtp][INFO] No supported authentication mechanisms available
        Jul 25 16:34:22 [2019-07-25 16:34:22][lettre::smtp::client][DEBUG] Wrote: MAIL FROM:<bitwarden.app@example.com> BODY=8BITMIME SMTPUTF8<CRLF>
        Jul 25 16:34:22 [2019-07-25 16:34:22][lettre::smtp::client][DEBUG] Read: 550 Mail from domain 'example.com' is not allowed from your host<CRLF>
        Jul 25 16:34:22 [2019-07-25 16:34:22][lettre::smtp::client][DEBUG] Wrote: QUIT<CRLF>
        Jul 25 16:34:22 [2019-07-25 16:34:22][lettre::smtp::client][DEBUG] Read: 221 my.example.com closing connection. Have a jolly good day.<CRLF>
        Jul 25 16:34:22 [2019-07-25 16:34:22][bitwarden_rs::error][ERROR] Error sending email. Mail from domain 'example.com' is not allowed from your host
        Jul 25 16:34:22 [2019-07-25 16:34:22][_][INFO] Outcome: Success
        Jul 25 16:34:22 172.18.0.1 - User [25/Jul/2019:16:34:22 +0000] "POST /admin/invite/ HTTP/1.1" 400 990 "https://bitwarden.example.com/admin" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Firefox/68.0"
        Jul 25 16:34:22 [2019-07-25 16:34:22][_][INFO] Response succeeded.
        Jul 25 16:34:24 [Thu Jul 25 16:34:24.254775 2019] [access_compat:error] [pid 32] [client 172.18.0.1:37122] AH01797: client denied by server configuration: proxy:http://127.0.0.1:3000/admin/
        

        So this is definitely more descriptive. Seems like the server is rejecting the request.

        1 Reply Last reply Reply Quote 0
        • girish
          girish Staff last edited by

          : 550 Mail from domain 'example.com' is not allowed from your host<CRLF>

          Can you check if the email for example.com is not set to Disabled under the outbound relay email settings?

          1 Reply Last reply Reply Quote 0
          • necrevistonnezr
            necrevistonnezr last edited by

            Tried updating the bitwardenrs-app today to its current domain; usually it would just install (and upgrade) the app. Today I got the following error:

            ➜ cloudron install
            ERROR (node:9463) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification. [ internal/process/warning.js:27:3 ]
            Location: bit
            ERROR Failed to install app. Domain 'bitwarden.domain.com' is in use [ /Users/user/.nvm/versions/node/v12.7.0/lib/node_modules/cloudron/src/helper.js:68:29 ]
            
            necrevistonnezr 1 Reply Last reply Reply Quote 0
            • necrevistonnezr
              necrevistonnezr @necrevistonnezr last edited by

              Tried with the LTS node version today - still the same error "Domain is in use". Anyone have an idea why?

              1 Reply Last reply Reply Quote 0
              • girish
                girish Staff last edited by

                @necrevistonnezr You have to delete the DNS entry manually in the DNS provider. What's hapenned is that the dns already has an entry for the subdomain. Cloudron will never overwrite existing DNS records.

                This is getting fixed with https://git.cloudron.io/cloudron/box/issues/644. Cloudron will then overwrite DNS entries with that flag set.

                If the above is not the issue, maybe there is another app on that subdomain? (Also, check any redirects you have to set for other apps).

                necrevistonnezr 1 Reply Last reply Reply Quote 0
                • necrevistonnezr
                  necrevistonnezr @girish last edited by

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

                  @necrevistonnezr You have to delete the DNS entry manually in the DNS provider. What's hapenned is that the dns already has an entry for the subdomain. Cloudron will never overwrite existing DNS records.

                  Where am I supposed to delete the DNS entry? Is the "DNS provider" something in the cloudron control panel?

                  I have no other apps / redirects regarding that subdomain.

                  d19dotca 1 Reply Last reply Reply Quote 0
                  • d19dotca
                    d19dotca @necrevistonnezr last edited by

                    @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.

                    --
                    Dustin Dauncey
                    www.d19.ca

                    necrevistonnezr 1 Reply Last reply Reply Quote 0
                    • necrevistonnezr
                      necrevistonnezr @d19dotca last edited by 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...

                      d19dotca 1 Reply Last reply Reply Quote 0
                      • d19dotca
                        d19dotca @necrevistonnezr last edited by

                        @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 Reply Quote 0
                        • iamthefij
                          iamthefij App Dev last edited by

                          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.

                          iamthefij 1 Reply Last reply Reply Quote 0
                          • iamthefij
                            iamthefij App Dev last edited by

                            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 Reply Quote 1
                            • iamthefij
                              iamthefij App Dev @iamthefij last edited by

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

                              1 Reply Last reply Reply Quote 0
                              • girish
                                girish Staff last edited by

                                @iamthefij Talking to yourself again 🙂 ?

                                1 Reply Last reply Reply Quote 1
                                • iamthefij
                                  iamthefij App Dev last edited by

                                  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.

                                  fbartels 1 Reply Last reply Reply Quote 0
                                  • fbartels
                                    fbartels App Dev @iamthefij last edited by

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

                                    iamthefij 1 Reply Last reply Reply Quote 0
                                    • iamthefij
                                      iamthefij App Dev @fbartels last edited by

                                      @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.

                                      fbartels 1 Reply Last reply Reply Quote 0
                                      • fbartels
                                        fbartels App Dev @iamthefij last edited by

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

                                        iamthefij 1 Reply Last reply Reply Quote 0
                                        • iamthefij
                                          iamthefij App Dev @fbartels last edited by 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

                                          necrevistonnezr 1 Reply Last reply Reply Quote 1
                                          • necrevistonnezr
                                            necrevistonnezr @iamthefij last edited by 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
                                            ˋˋˋ
                                            iamthefij 1 Reply Last reply Reply Quote 0
                                            • iamthefij
                                              iamthefij App Dev @necrevistonnezr last edited by

                                              @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.

                                              necrevistonnezr 1 Reply Last reply Reply Quote 0
                                              • necrevistonnezr
                                                necrevistonnezr @iamthefij last edited by

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

                                                iamthefij 1 Reply Last reply Reply Quote 0
                                                • iamthefij
                                                  iamthefij App Dev @necrevistonnezr last edited by

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

                                                  1 Reply Last reply Reply Quote 0
                                                  • L
                                                    lukaszj last edited by

                                                    @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?

                                                    iamthefij 1 Reply Last reply Reply Quote 0
                                                    • iamthefij
                                                      iamthefij App Dev @lukaszj last edited by

                                                      @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 Reply Quote 0
                                                      • jimcavoli
                                                        jimcavoli App Dev last edited by

                                                        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 Reply Quote 3
                                                        • girish
                                                          girish Staff last edited by

                                                          @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.

                                                          iamthefij 1 Reply Last reply Reply Quote 1
                                                          • iamthefij
                                                            iamthefij App Dev @girish last edited by

                                                            @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 Reply Quote 1
                                                            • L
                                                              lukaszj last edited by

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

                                                              1 Reply Last reply Reply Quote 1
                                                              • girish
                                                                girish Staff last edited by

                                                                Unfortunately, not this week. The 4.2 release hit some hiccups. Good news is that we are rolling out 4.2 as we speak. So, we should get to this next week.

                                                                L iamthefij 2 Replies Last reply Reply Quote 3
                                                                • L
                                                                  lukaszj @girish last edited by

                                                                  @girish Great, can't wait. Fingers crossed!

                                                                  1 Reply Last reply Reply Quote 0
                                                                  • iamthefij
                                                                    iamthefij App Dev @girish last edited by

                                                                    @girish great to hear! Let me know if there is anything I can do to help.

                                                                    1 Reply Last reply Reply Quote 0
                                                                    • necrevistonnezr
                                                                      necrevistonnezr last edited by

                                                                      Again, there's trouble with cloudron cli. I tried to login but it gives me the following errors:

                                                                      cloudron login --allow-selfsigned
                                                                      Cloudron Admin Domain: my.domain.com
                                                                      ERROR (node:51749) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification. [ internal/process/warning.js:27:3 ]
                                                                      ERROR Cloudron my.domain.com not found.
                                                                      Try providing the admin location, probably my.my.domain.com [ /Users/user/.nvm/versions/node/v12.7.0/lib/node_modules/cloudron/src/helper.js:71:29 ]
                                                                      

                                                                      What am I doing wrong?

                                                                      1 Reply Last reply Reply Quote 0
                                                                      • girish
                                                                        girish Staff last edited by

                                                                        @necrevistonnezr You almost never have to use --allow-selfsigned Does my.domain.com have the correct cert?

                                                                        necrevistonnezr 1 Reply Last reply Reply Quote 0
                                                                        • necrevistonnezr
                                                                          necrevistonnezr @girish last edited by necrevistonnezr

                                                                          @girish Yes, the situation is the same with or without "--allow-selfsigned"
                                                                          BTW I'm on macOS 10.15

                                                                          1 Reply Last reply Reply Quote 0
                                                                          • girish
                                                                            girish Staff last edited by

                                                                            @necrevistonnezr Can you try using the CLI on the demo cloudron? Like:

                                                                            cloudron login my.demo.cloudron.io
                                                                            

                                                                            username and password is cloudron. you can then build and install there. does that entire flow work?

                                                                            necrevistonnezr 1 Reply Last reply Reply Quote 0
                                                                            • necrevistonnezr
                                                                              necrevistonnezr @girish last edited by

                                                                              @girish that gives me the same error but pinging works

                                                                              bitwardenrs-app on master [!?] via ⬢ v12.7.0
                                                                              ➜ cloudron login my.cloudron.io
                                                                              ERROR (node:55034) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification. [ internal/process/warning.js:27:3 ]
                                                                              ERROR Cloudron my.cloudron.io not found.
                                                                              Try providing the admin location, probably my.my.cloudron.io [ /Users/kdj/.nvm/versions/node/v12.7.0/lib/node_modules/cloudron/src/helper.js:71:29 ]
                                                                              bitwardenrs-app on master [!?] via ⬢ v12.7.0 took 18s
                                                                              ➜ ping my.cloudron.io
                                                                              PING my.cloudron.io (45.55.2.141): 56 data bytes
                                                                              64 bytes from 45.55.2.141: icmp_seq=0 ttl=50 time=188.063 ms
                                                                              64 bytes from 45.55.2.141: icmp_seq=1 ttl=50 time=181.041 ms
                                                                              64 bytes from 45.55.2.141: icmp_seq=2 ttl=50 time=237.531 ms
                                                                              
                                                                              1 Reply Last reply Reply Quote 0
                                                                              • L
                                                                                lukaszj last edited by

                                                                                Hi @girish is there any update re pushing official Bitwarden to Marketplace? Thanks.

                                                                                1 Reply Last reply Reply Quote 0
                                                                                • girish
                                                                                  girish Staff last edited by

                                                                                  @lukaszj No ETA but it's on our immediate list. Currently, we are pushing out the release that makes it possible to build custom apps without our build service.

                                                                                  L murgero 2 Replies Last reply Reply Quote 3
                                                                                  • L
                                                                                    lukaszj @girish last edited by

                                                                                    @girish Thanks.

                                                                                    1 Reply Last reply Reply Quote 0
                                                                                    • murgero
                                                                                      murgero App Dev @girish last edited by

                                                                                      @girish But building apps without the build service is already possible - do you mean that the manifest will allow us to specify a repo and docker image to install? Cause that would be nice!

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

                                                                                      1 Reply Last reply Reply Quote 0
                                                                                      • girish
                                                                                        girish Staff last edited by

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

                                                                                        iamthefij 1 Reply Last reply Reply Quote 0
                                                                                        • iamthefij
                                                                                          iamthefij App Dev @girish last edited by

                                                                                          @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 Reply Quote 0
                                                                                          • iamthefij
                                                                                            iamthefij App Dev last edited by

                                                                                            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 Reply Quote 1
                                                                                            • W
                                                                                              will last edited by

                                                                                              @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

                                                                                              murgero 1 Reply Last reply Reply Quote 0
                                                                                              • murgero
                                                                                                murgero App Dev @will last edited by

                                                                                                @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. ~
                                                                                                Matrix: @murgero:urgero.org

                                                                                                W 1 Reply Last reply Reply Quote 0
                                                                                                • W
                                                                                                  will @murgero last edited by

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

                                                                                                  murgero 1 Reply Last reply Reply Quote 1
                                                                                                  • murgero
                                                                                                    murgero App Dev @will last edited by

                                                                                                    @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. ~
                                                                                                    Matrix: @murgero:urgero.org

                                                                                                    W 1 Reply Last reply Reply Quote 0
                                                                                                    • W
                                                                                                      will @murgero last edited by

                                                                                                      @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.

                                                                                                      murgero 1 Reply Last reply Reply Quote 0
                                                                                                      • murgero
                                                                                                        murgero App Dev @will last edited by 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
                                                                                                        

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

                                                                                                        fbartels 1 Reply Last reply Reply Quote 1
                                                                                                        • iamthefij
                                                                                                          iamthefij App Dev last edited by

                                                                                                          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 Reply Quote 2
                                                                                                          • fbartels
                                                                                                            fbartels App Dev @murgero last edited by 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.

                                                                                                            iamthefij murgero 2 Replies Last reply Reply Quote 0
                                                                                                            • iamthefij
                                                                                                              iamthefij App Dev @fbartels last edited by

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

                                                                                                              fbartels 1 Reply Last reply Reply Quote 0
                                                                                                              • fbartels
                                                                                                                fbartels App Dev @iamthefij last edited by

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

                                                                                                                iamthefij 1 Reply Last reply Reply Quote 0
                                                                                                                • murgero
                                                                                                                  murgero App Dev @fbartels last edited by

                                                                                                                  @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. ~
                                                                                                                  Matrix: @murgero:urgero.org

                                                                                                                  fbartels 1 Reply Last reply Reply Quote 0
                                                                                                                  • fbartels
                                                                                                                    fbartels App Dev @murgero last edited by

                                                                                                                    @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.

                                                                                                                    necrevistonnezr 1 Reply Last reply Reply Quote 0
                                                                                                                    • iamthefij
                                                                                                                      iamthefij App Dev @fbartels last edited by

                                                                                                                      @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 Reply Quote 0
                                                                                                                      • yusf
                                                                                                                        yusf last edited by

                                                                                                                        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 Reply Quote 0
                                                                                                                        • necrevistonnezr
                                                                                                                          necrevistonnezr @fbartels last edited by

                                                                                                                          @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?

                                                                                                                          fbartels 1 Reply Last reply Reply Quote 0
                                                                                                                          • fbartels
                                                                                                                            fbartels App Dev @necrevistonnezr last edited by

                                                                                                                            @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 Reply Quote 1
                                                                                                                            • First post
                                                                                                                              Last post
                                                                                                                            Powered by NodeBB