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

How To Implement MTA in Chatwoot?

Scheduled Pinned Locked Moved Chatwoot
4 Posts 3 Posters 28 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
    wrote last edited by
    #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 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
        wrote 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
          wrote 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
          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