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
  • Brite
  • 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 - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. Chatwoot
  3. How To Implement MFA in Chatwoot?

How To Implement MFA in Chatwoot?

Scheduled Pinned Locked Moved Solved Chatwoot
4 Posts 3 Posters 640 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.
  • I Offline
    I Offline
    IniBudi
    translator
    wrote on last edited by nebulon
    #1

    I'd like to implement MTA/2FA in Chatwoot and I already followed this instruction:

    https://developers.chatwoot.com/self-hosted/configuration/multi-factor-authentication

    However, the security setting is not available. Have you experience this setup?

    andreasduerenA 1 Reply Last reply
    1
    • J Offline
      J Offline
      joseph
      Staff
      wrote on last edited by
      #2

      I guess you meant MFA correct?

      1 Reply Last reply
      0
      • I IniBudi

        I'd like to implement MTA/2FA in Chatwoot and I already followed this instruction:

        https://developers.chatwoot.com/self-hosted/configuration/multi-factor-authentication

        However, the security setting is not available. Have you experience this setup?

        andreasduerenA Offline
        andreasduerenA Offline
        andreasdueren
        App Dev
        wrote on last edited by
        #3

        @IniBudi Which part isn't working? Just tried it out and worked perfectly.

        1. Go to the web terminal of your Chatwoot application
        2. enter rails db:encryption:init
        3. Save the strings that is being displayed
        active_record_encryption:
          primary_key: string
          deterministic_key: string
          key_derivation_salt: string
        
        1. Go to the file manager of the application
        2. Open the env.sh file
        3. add these records (replace string with the values from the previous prompt)
        # Active Record Encryption keys (required for MFA/2FA functionality)
        # Replace with the actual keys from rails db:encryption:init output
        export ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY=string
        export ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY=string
        export ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT=string
        
        1. restart the app
        2. now you can set up 2FA in the user settings.
        I 1 Reply Last reply
        3
        • andreasduerenA andreasdueren

          @IniBudi Which part isn't working? Just tried it out and worked perfectly.

          1. Go to the web terminal of your Chatwoot application
          2. enter rails db:encryption:init
          3. Save the strings that is being displayed
          active_record_encryption:
            primary_key: string
            deterministic_key: string
            key_derivation_salt: string
          
          1. Go to the file manager of the application
          2. Open the env.sh file
          3. add these records (replace string with the values from the previous prompt)
          # Active Record Encryption keys (required for MFA/2FA functionality)
          # Replace with the actual keys from rails db:encryption:init output
          export ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY=string
          export ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY=string
          export ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT=string
          
          1. restart the app
          2. now you can set up 2FA in the user settings.
          I Offline
          I Offline
          IniBudi
          translator
          wrote on last edited by
          #4

          @andreasdueren thank you Andreas, it works perfectly.

          I think it's different code with the tutorial that come from here https://developers.chatwoot.com/self-hosted/configuration/multi-factor-authentication:

          # Active Record Encryption keys (required for MFA/2FA functionality)
          # Replace with the actual keys from rails db:encryption:init output
          ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY=EGY8WhulUOXixybod7ZWwMIL68R9o5kC
          ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY=aPA5XyALhf75NNnMzaspW7akTfZp0lPY
          ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT=xEY0dt6TZcAMg52K7O84wYzkjvbA62Hz
          

          When I tried your code, now it appears on my dashboard:

          # Active Record Encryption keys (required for MFA/2FA functionality)
          # Replace with the actual keys from rails db:encryption:init output
          export ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY=string
          export ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY=string
          export ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT=string
          

          Now, I can see the 2FA option.

          Thank you...

          1 Reply Last reply
          1
          • nebulonN nebulon marked this topic as a question on
          • nebulonN nebulon has marked this topic as solved on

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          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