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. Roundcube
  3. 2FA on Roundcube

2FA on Roundcube

Scheduled Pinned Locked Moved Solved Roundcube
8 Posts 3 Posters 465 Views 3 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.
  • B Offline
    B Offline
    bazinga
    wrote on last edited by
    #1

    Hi everyone,

    In this day and age I feel uneasy not having 2FA on my apps. I realize this could be more of a "feel good" rather than real security measure (the app being protected should be secure in general, not just the login experience).

    I've just switched from Rainloop after being ignorant and learning that it's no longer being maintained.

    2FA is implemented as a plug-in for Rounbcube. The plugin I see mentioned the most is https://github.com/alexandregz/twofactor_gauthenticator . The instructions on https://docs.cloudron.io/apps/roundcube/ (Plugin section) says I need a tar archive which needs to be extracted into "/app/data/plugins" directory. I cannot find tar for that 2FA plugin anywhere.

    I've never done PHP, so not sure if copying the whole repo content advisable, secure, etc.

    Would appreciate if anyone shares their experience or advice on this subject.

    Thanks!

    1 Reply Last reply
    1
    • B Offline
      B Offline
      bazinga
      wrote on last edited by
      #2

      Wasn't aware git was available in the terminal for each application. Once I cloned the repo directly into RoundCube filesystem and then followed the instructions, everything was easy and simple.

      jdaviescoatesJ 1 Reply Last reply
      3
      • J joseph marked this topic as a question on
      • J joseph has marked this topic as solved on
      • B bazinga

        Wasn't aware git was available in the terminal for each application. Once I cloned the repo directly into RoundCube filesystem and then followed the instructions, everything was easy and simple.

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

        @bazinga said in 2FA on Roundcube:

        Once I cloned the repo directly into RoundCube filesystem

        Sounds to me like that is perhaps a much better method than what is currently described over at https://docs.cloudron.io/apps/roundcube/#plugins !

        I use Cloudron with Gandi & Hetzner

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

          That’s what I do as well.

          Note that for the next git pull, you’ll probably receive an error re dubious ownership (see https://stackoverflow.com/questions/72978485/git-submodule-update-failed-with-fatal-detected-dubious-ownership-in-reposit).
          Since you cannot modify .gitconfig globally to get rid of these warnings (it’s in the read only part of the filesystem), you probably have to change folder permissions temporarily to root:root before git pull and switch back to www-data:www-data afterwards. This can be scripted of course.

          B 1 Reply Last reply
          1
          • necrevistonnezrN necrevistonnezr

            That’s what I do as well.

            Note that for the next git pull, you’ll probably receive an error re dubious ownership (see https://stackoverflow.com/questions/72978485/git-submodule-update-failed-with-fatal-detected-dubious-ownership-in-reposit).
            Since you cannot modify .gitconfig globally to get rid of these warnings (it’s in the read only part of the filesystem), you probably have to change folder permissions temporarily to root:root before git pull and switch back to www-data:www-data afterwards. This can be scripted of course.

            B Offline
            B Offline
            bazinga
            wrote on last edited by bazinga
            #5

            @necrevistonnezr Thank you for your advice! Wouldn't think about ownership change, but will keep in mind from now on.

            One "good" thing about RoundCube plugins is that they are not updated, it seems, ever 😉 So, may not need to update those plugins ever, haha.

            1 Reply Last reply
            1
            • jdaviescoatesJ jdaviescoates

              @bazinga said in 2FA on Roundcube:

              Once I cloned the repo directly into RoundCube filesystem

              Sounds to me like that is perhaps a much better method than what is currently described over at https://docs.cloudron.io/apps/roundcube/#plugins !

              B Offline
              B Offline
              bazinga
              wrote on last edited by
              #6

              @jdaviescoates Yep, essentially I do the following (I've added 5-6 plugins, not sure why they are not added by default by Cloudron devs):

              1. Open terminal for RoundCube
              2. git clone ....
              3. chown -R www-data:www-data PLUGIN_DIR_NAME
              4. Open File Manager for RoundCube
              5. Edit "customconfig.php" and add the plugin in there similar to:
                array_push($config['plugins'], 'twofactor_gauthenticator');
              1 Reply Last reply
              2
              • necrevistonnezrN Offline
                necrevistonnezrN Offline
                necrevistonnezr
                wrote on last edited by
                #7

                Notwithstanding that it’s super annoying that 2FA is not built in. I hate outsourcing core features to „add-ons“ with a passion (see also Nextcloud)

                B 1 Reply Last reply
                2
                • necrevistonnezrN necrevistonnezr

                  Notwithstanding that it’s super annoying that 2FA is not built in. I hate outsourcing core features to „add-ons“ with a passion (see also Nextcloud)

                  B Offline
                  B Offline
                  bazinga
                  wrote on last edited by
                  #8

                  @necrevistonnezr Completely agree with you. Boggles my mind. I too think features like 2FA and Captcha should be built-in.

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