You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

213 lines
11 KiB

Add WebAuthn as an alternative 2FA method (#14466) * feat: add possibility of adding WebAuthn security keys to use as 2FA This adds a basic UI for enabling WebAuthn 2FA. We did a little refactor to the Settings page for editing the 2FA methods – now it will list the methods that are available to the user (TOTP and WebAuthn) and from there they'll be able to add or remove any of them. Also, it's worth mentioning that for enabling WebAuthn it's required to have TOTP enabled, so the first time that you go to the 2FA Settings page, you'll be asked to set it up. This work was inspired by the one donde by Github in their platform, and despite it could be approached in different ways, we decided to go with this one given that we feel that this gives a great UX. Co-authored-by: Facundo Padula <facundo.padula@cedarcode.com> * feat: add request for WebAuthn as second factor at login if enabled This commits adds the feature for using WebAuthn as a second factor for login when enabled. If users have WebAuthn enabled, now a page requesting for the use of a WebAuthn credential for log in will appear, although a link redirecting to the old page for logging in using a two-factor code will also be present. Co-authored-by: Facundo Padula <facundo.padula@cedarcode.com> * feat: add possibility of deleting WebAuthn Credentials Co-authored-by: Facundo Padula <facundo.padula@cedarcode.com> * feat: disable WebAuthn when an Admin disables 2FA for a user Co-authored-by: Facundo Padula <facundo.padula@cedarcode.com> * feat: remove ability to disable TOTP leaving only WebAuthn as 2FA Following examples form other platforms like Github, we decided to make Webauthn 2FA secondary to 2FA with TOTP, so that we removed the possibility of removing TOTP authentication only, leaving users with just WEbAuthn as 2FA. Instead, users will have to click on 'Disable 2FA' in order to remove second factor auth. The reason for WebAuthn being secondary to TOPT is that in that way, users will still be able to log in using their code from their phone's application if they don't have their security keys with them – or maybe even lost them. * We had to change a little the flow for setting up TOTP, given that now it's possible to setting up again if you already had TOTP, in order to let users modify their authenticator app – given that now it's not possible for them to disable TOTP and set it up again with another authenticator app. So, basically, now instead of storing the new `otp_secret` in the user, we store it in the session until the process of set up is finished. This was because, as it was before, when users clicked on 'Edit' in the new two-factor methods lists page, but then went back without finishing the flow, their `otp_secret` had been changed therefore invalidating their previous authenticator app, making them unable to log in again using TOTP. Co-authored-by: Facundo Padula <facundo.padula@cedarcode.com> * refactor: fix eslint errors The PR build was failing given that linting returning some errors. This commit attempts to fix them. * refactor: normalize i18n translations The build was failing given that i18n translations files were not normalized. This commits fixes that. * refactor: avoid having the webauthn gem locked to a specific version * refactor: use symbols for routes without '/' * refactor: avoid sending webauthn disabled email when 2FA is disabled When an admins disable 2FA for users, we were sending two mails to them, one notifying that 2FA was disabled and the other to notify that WebAuthn was disabled. As the second one is redundant since the first email includes it, we can remove it and send just one email to users. * refactor: avoid creating new env variable for webauthn_origin config * refactor: improve flash error messages for webauthn pages Co-authored-by: Facundo Padula <facundo.padula@cedarcode.com>
3 years ago
Add WebAuthn as an alternative 2FA method (#14466) * feat: add possibility of adding WebAuthn security keys to use as 2FA This adds a basic UI for enabling WebAuthn 2FA. We did a little refactor to the Settings page for editing the 2FA methods – now it will list the methods that are available to the user (TOTP and WebAuthn) and from there they'll be able to add or remove any of them. Also, it's worth mentioning that for enabling WebAuthn it's required to have TOTP enabled, so the first time that you go to the 2FA Settings page, you'll be asked to set it up. This work was inspired by the one donde by Github in their platform, and despite it could be approached in different ways, we decided to go with this one given that we feel that this gives a great UX. Co-authored-by: Facundo Padula <facundo.padula@cedarcode.com> * feat: add request for WebAuthn as second factor at login if enabled This commits adds the feature for using WebAuthn as a second factor for login when enabled. If users have WebAuthn enabled, now a page requesting for the use of a WebAuthn credential for log in will appear, although a link redirecting to the old page for logging in using a two-factor code will also be present. Co-authored-by: Facundo Padula <facundo.padula@cedarcode.com> * feat: add possibility of deleting WebAuthn Credentials Co-authored-by: Facundo Padula <facundo.padula@cedarcode.com> * feat: disable WebAuthn when an Admin disables 2FA for a user Co-authored-by: Facundo Padula <facundo.padula@cedarcode.com> * feat: remove ability to disable TOTP leaving only WebAuthn as 2FA Following examples form other platforms like Github, we decided to make Webauthn 2FA secondary to 2FA with TOTP, so that we removed the possibility of removing TOTP authentication only, leaving users with just WEbAuthn as 2FA. Instead, users will have to click on 'Disable 2FA' in order to remove second factor auth. The reason for WebAuthn being secondary to TOPT is that in that way, users will still be able to log in using their code from their phone's application if they don't have their security keys with them – or maybe even lost them. * We had to change a little the flow for setting up TOTP, given that now it's possible to setting up again if you already had TOTP, in order to let users modify their authenticator app – given that now it's not possible for them to disable TOTP and set it up again with another authenticator app. So, basically, now instead of storing the new `otp_secret` in the user, we store it in the session until the process of set up is finished. This was because, as it was before, when users clicked on 'Edit' in the new two-factor methods lists page, but then went back without finishing the flow, their `otp_secret` had been changed therefore invalidating their previous authenticator app, making them unable to log in again using TOTP. Co-authored-by: Facundo Padula <facundo.padula@cedarcode.com> * refactor: fix eslint errors The PR build was failing given that linting returning some errors. This commit attempts to fix them. * refactor: normalize i18n translations The build was failing given that i18n translations files were not normalized. This commits fixes that. * refactor: avoid having the webauthn gem locked to a specific version * refactor: use symbols for routes without '/' * refactor: avoid sending webauthn disabled email when 2FA is disabled When an admins disable 2FA for users, we were sending two mails to them, one notifying that 2FA was disabled and the other to notify that WebAuthn was disabled. As the second one is redundant since the first email includes it, we can remove it and send just one email to users. * refactor: avoid creating new env variable for webauthn_origin config * refactor: improve flash error messages for webauthn pages Co-authored-by: Facundo Padula <facundo.padula@cedarcode.com>
3 years ago
  1. ---
  2. en:
  3. simple_form:
  4. hints:
  5. account_alias:
  6. acct: Specify the username@domain of the account you want to move from
  7. account_migration:
  8. acct: Specify the username@domain of the account you want to move to
  9. account_warning_preset:
  10. text: You can use toot syntax, such as URLs, hashtags and mentions
  11. title: Optional. Not visible to the recipient
  12. admin_account_action:
  13. include_statuses: The user will see which toots have caused the moderation action or warning
  14. send_email_notification: The user will receive an explanation of what happened with their account
  15. text_html: Optional. You can use toot syntax. You can <a href="%{path}">add warning presets</a> to save time
  16. type_html: Choose what to do with <strong>%{acct}</strong>
  17. warning_preset_id: Optional. You can still add custom text to end of the preset
  18. announcement:
  19. all_day: When checked, only the dates of the time range will be displayed
  20. ends_at: Optional. Announcement will be automatically unpublished at this time
  21. scheduled_at: Leave blank to publish the announcement immediately
  22. starts_at: Optional. In case your announcement is bound to a specific time range
  23. text: You can use toot syntax. Please be mindful of the space the announcement will take up on the user's screen
  24. defaults:
  25. autofollow: People who sign up through the invite will automatically follow you
  26. avatar: PNG, GIF or JPG. At most %{size}. Will be downscaled to %{dimensions}px
  27. bot: This account mainly performs automated actions and might not be monitored
  28. context: One or multiple contexts where the filter should apply
  29. current_password: For security purposes please enter the password of the current account
  30. current_username: To confirm, please enter the username of the current account
  31. digest: Only sent after a long period of inactivity and only if you have received any personal messages in your absence
  32. discoverable: The profile directory is another way by which your account can reach a wider audience
  33. email: You will be sent a confirmation e-mail
  34. fields: You can have up to 4 items displayed as a table on your profile
  35. header: PNG, GIF or JPG. At most %{size}. Will be downscaled to %{dimensions}px
  36. inbox_url: Copy the URL from the frontpage of the relay you want to use
  37. irreversible: Filtered toots will disappear irreversibly, even if filter is later removed
  38. locale: The language of the user interface, e-mails and push notifications
  39. locked: Requires you to manually approve followers
  40. password: Use at least 8 characters
  41. phrase: Will be matched regardless of casing in text or content warning of a toot
  42. scopes: Which APIs the application will be allowed to access. If you select a top-level scope, you don't need to select individual ones.
  43. setting_aggregate_reblogs: Do not show new boosts for toots that have been recently boosted (only affects newly-received boosts)
  44. setting_default_sensitive: Sensitive media is hidden by default and can be revealed with a click
  45. setting_display_media_default: Hide media marked as sensitive
  46. setting_display_media_hide_all: Always hide media
  47. setting_display_media_show_all: Always show media
  48. setting_hide_network: Who you follow and who follows you will not be shown on your profile
  49. setting_noindex: Affects your public profile and status pages
  50. setting_show_application: The application you use to toot will be displayed in the detailed view of your toots
  51. setting_use_blurhash: Gradients are based on the colors of the hidden visuals but obfuscate any details
  52. setting_use_pending_items: Hide timeline updates behind a click instead of automatically scrolling the feed
  53. username: Your username will be unique on %{domain}
  54. whole_word: When the keyword or phrase is alphanumeric only, it will only be applied if it matches the whole word
  55. domain_allow:
  56. domain: This domain will be able to fetch data from this server and incoming data from it will be processed and stored
  57. email_domain_block:
  58. domain: This can be the domain name that shows up in the e-mail address, the MX record that domain resolves to, or IP of the server that MX record resolves to. Those will be checked upon user sign-up and the sign-up will be rejected.
  59. with_dns_records: An attempt to resolve the given domain's DNS records will be made and the results will also be blocked
  60. featured_tag:
  61. name: 'You might want to use one of these:'
  62. form_challenge:
  63. current_password: You are entering a secure area
  64. imports:
  65. data: CSV file exported from another Mastodon server
  66. invite_request:
  67. text: This will help us review your application
  68. ip_block:
  69. comment: Optional. Remember why you added this rule.
  70. expires_in: IP addresses are a finite resource, they are sometimes shared and often change hands. For this reason, indefinite IP blocks are not recommended.
  71. ip: Enter an IPv4 or IPv6 address. You can block entire ranges using the CIDR syntax. Be careful not to lock yourself out!
  72. severities:
  73. no_access: Block access to all resources
  74. sign_up_requires_approval: New sign-ups will require your approval
  75. severity: Choose what will happen with requests from this IP
  76. sessions:
  77. otp: 'Enter the two-factor code generated by your phone app or use one of your recovery codes:'
  78. webauthn: If it's an USB key be sure to insert it and, if necessary, tap it.
  79. tag:
  80. name: You can only change the casing of the letters, for example, to make it more readable
  81. user:
  82. chosen_languages: When checked, only toots in selected languages will be displayed in public timelines
  83. labels:
  84. account:
  85. fields:
  86. name: Label
  87. value: Content
  88. account_alias:
  89. acct: Handle of the old account
  90. account_migration:
  91. acct: Handle of the new account
  92. account_warning_preset:
  93. text: Preset text
  94. title: Title
  95. admin_account_action:
  96. include_statuses: Include reported toots in the e-mail
  97. send_email_notification: Notify the user per e-mail
  98. text: Custom warning
  99. type: Action
  100. types:
  101. disable: Freeze
  102. none: Send a warning
  103. sensitive: Sensitive
  104. silence: Limit
  105. suspend: Suspend
  106. warning_preset_id: Use a warning preset
  107. announcement:
  108. all_day: All-day event
  109. ends_at: End of event
  110. scheduled_at: Schedule publication
  111. starts_at: Start of event
  112. text: Announcement
  113. defaults:
  114. autofollow: Invite to follow your account
  115. avatar: Avatar
  116. bot: This is a bot account
  117. chosen_languages: Filter languages
  118. confirm_new_password: Confirm new password
  119. confirm_password: Confirm password
  120. context: Filter contexts
  121. current_password: Current password
  122. data: Data
  123. discoverable: List this account on the directory
  124. display_name: Display name
  125. email: E-mail address
  126. expires_in: Expire after
  127. fields: Profile metadata
  128. header: Header
  129. honeypot: "%{label} (do not fill in)"
  130. inbox_url: URL of the relay inbox
  131. irreversible: Drop instead of hide
  132. locale: Interface language
  133. locked: Lock account
  134. max_uses: Max number of uses
  135. new_password: New password
  136. note: Bio
  137. otp_attempt: Two-factor code
  138. password: Password
  139. phrase: Keyword or phrase
  140. setting_advanced_layout: Enable advanced web interface
  141. setting_aggregate_reblogs: Group boosts in timelines
  142. setting_auto_play_gif: Auto-play animated GIFs
  143. setting_boost_modal: Show confirmation dialog before boosting
  144. setting_crop_images: Crop images in non-expanded toots to 16x9
  145. setting_default_language: Posting language
  146. setting_default_privacy: Posting privacy
  147. setting_default_sensitive: Always mark media as sensitive
  148. setting_delete_modal: Show confirmation dialog before deleting a toot
  149. setting_disable_swiping: Disable swiping motions
  150. setting_display_media: Media display
  151. setting_display_media_default: Default
  152. setting_display_media_hide_all: Hide all
  153. setting_display_media_show_all: Show all
  154. setting_expand_spoilers: Always expand toots marked with content warnings
  155. setting_hide_network: Hide your network
  156. setting_noindex: Opt-out of search engine indexing
  157. setting_reduce_motion: Reduce motion in animations
  158. setting_show_application: Disclose application used to send toots
  159. setting_system_font_ui: Use system's default font
  160. setting_theme: Site theme
  161. setting_trends: Show today's trends
  162. setting_unfollow_modal: Show confirmation dialog before unfollowing someone
  163. setting_use_blurhash: Show colorful gradients for hidden media
  164. setting_use_pending_items: Slow mode
  165. severity: Severity
  166. sign_in_token_attempt: Security code
  167. type: Import type
  168. username: Username
  169. username_or_email: Username or Email
  170. whole_word: Whole word
  171. email_domain_block:
  172. with_dns_records: Include MX records and IPs of the domain
  173. featured_tag:
  174. name: Hashtag
  175. interactions:
  176. must_be_follower: Block notifications from non-followers
  177. must_be_following: Block notifications from people you don't follow
  178. must_be_following_dm: Block direct messages from people you don't follow
  179. invite:
  180. comment: Comment
  181. invite_request:
  182. text: Why do you want to join?
  183. ip_block:
  184. comment: Comment
  185. ip: IP
  186. severities:
  187. no_access: Block access
  188. sign_up_requires_approval: Limit sign-ups
  189. severity: Rule
  190. notification_emails:
  191. digest: Send digest e-mails
  192. favourite: Someone favourited your status
  193. follow: Someone followed you
  194. follow_request: Someone requested to follow you
  195. mention: Someone mentioned you
  196. pending_account: New account needs review
  197. reblog: Someone boosted your status
  198. report: New report is submitted
  199. trending_tag: An unreviewed hashtag is trending
  200. tag:
  201. listable: Allow this hashtag to appear in searches and on the profile directory
  202. name: Hashtag
  203. trendable: Allow this hashtag to appear under trends
  204. usable: Allow toots to use this hashtag
  205. 'no': 'No'
  206. recommended: Recommended
  207. required:
  208. mark: "*"
  209. text: required
  210. title:
  211. sessions:
  212. webauthn: Use one of your security keys to sign in
  213. 'yes': 'Yes'