How To Implement MTA in Chatwoot?
-
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?
-
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?
@IniBudi Which part isn't working? Just tried it out and worked perfectly.
- Go to the web terminal of your Chatwoot application
- enter
rails db:encryption:init - Save the strings that is being displayed
active_record_encryption: primary_key: string deterministic_key: string key_derivation_salt: string- Go to the file manager of the application
- Open the
env.shfile - add these records (replace
stringwith 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- restart the app
- now you can set up 2FA in the user settings.
-
@IniBudi Which part isn't working? Just tried it out and worked perfectly.
- Go to the web terminal of your Chatwoot application
- enter
rails db:encryption:init - Save the strings that is being displayed
active_record_encryption: primary_key: string deterministic_key: string key_derivation_salt: string- Go to the file manager of the application
- Open the
env.shfile - add these records (replace
stringwith 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- restart the app
- now you can set up 2FA in the user settings.
@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=xEY0dt6TZcAMg52K7O84wYzkjvbA62HzWhen 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=stringNow, I can see the 2FA option.
Thank you...