2016-12-22 03:09:59 +09:00
|
|
|
GEM
|
|
|
|
remote: https://rubygems.org/
|
2016-02-21 06:53:20 +09:00
|
|
|
specs:
|
2022-05-12 10:54:27 +09:00
|
|
|
actioncable (6.1.6)
|
|
|
|
actionpack (= 6.1.6)
|
|
|
|
activesupport (= 6.1.6)
|
2017-06-02 03:53:37 +09:00
|
|
|
nio4r (~> 2.0)
|
2018-04-12 21:45:17 +09:00
|
|
|
websocket-driver (>= 0.6.1)
|
2022-05-12 10:54:27 +09:00
|
|
|
actionmailbox (6.1.6)
|
|
|
|
actionpack (= 6.1.6)
|
|
|
|
activejob (= 6.1.6)
|
|
|
|
activerecord (= 6.1.6)
|
|
|
|
activestorage (= 6.1.6)
|
|
|
|
activesupport (= 6.1.6)
|
2021-03-24 18:44:31 +09:00
|
|
|
mail (>= 2.7.1)
|
2022-05-12 10:54:27 +09:00
|
|
|
actionmailer (6.1.6)
|
|
|
|
actionpack (= 6.1.6)
|
|
|
|
actionview (= 6.1.6)
|
|
|
|
activejob (= 6.1.6)
|
|
|
|
activesupport (= 6.1.6)
|
2016-02-21 06:53:20 +09:00
|
|
|
mail (~> 2.5, >= 2.5.4)
|
2016-08-18 00:56:23 +09:00
|
|
|
rails-dom-testing (~> 2.0)
|
2022-05-12 10:54:27 +09:00
|
|
|
actionpack (6.1.6)
|
|
|
|
actionview (= 6.1.6)
|
|
|
|
activesupport (= 6.1.6)
|
2021-03-24 18:44:31 +09:00
|
|
|
rack (~> 2.0, >= 2.0.9)
|
2017-09-12 06:03:14 +09:00
|
|
|
rack-test (>= 0.6.3)
|
2016-08-18 00:56:23 +09:00
|
|
|
rails-dom-testing (~> 2.0)
|
2021-03-24 18:44:31 +09:00
|
|
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
2022-05-12 10:54:27 +09:00
|
|
|
actiontext (6.1.6)
|
|
|
|
actionpack (= 6.1.6)
|
|
|
|
activerecord (= 6.1.6)
|
|
|
|
activestorage (= 6.1.6)
|
|
|
|
activesupport (= 6.1.6)
|
2021-03-24 18:44:31 +09:00
|
|
|
nokogiri (>= 1.8.5)
|
2022-05-12 10:54:27 +09:00
|
|
|
actionview (6.1.6)
|
|
|
|
activesupport (= 6.1.6)
|
2016-02-21 06:53:20 +09:00
|
|
|
builder (~> 3.1)
|
2017-06-02 03:53:37 +09:00
|
|
|
erubi (~> 1.4)
|
2016-08-18 00:56:23 +09:00
|
|
|
rails-dom-testing (~> 2.0)
|
2021-03-24 18:44:31 +09:00
|
|
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
2022-01-18 22:36:22 +09:00
|
|
|
active_model_serializers (0.10.13)
|
|
|
|
actionpack (>= 4.1, < 7.1)
|
|
|
|
activemodel (>= 4.1, < 7.1)
|
2017-07-07 11:02:06 +09:00
|
|
|
case_transform (>= 0.2)
|
2017-12-04 00:55:27 +09:00
|
|
|
jsonapi-renderer (>= 0.1.1.beta1, < 0.3)
|
2020-10-22 12:11:20 +09:00
|
|
|
active_record_query_trace (1.8)
|
2022-05-12 10:54:27 +09:00
|
|
|
activejob (6.1.6)
|
|
|
|
activesupport (= 6.1.6)
|
2016-08-18 00:56:23 +09:00
|
|
|
globalid (>= 0.3.6)
|
2022-05-12 10:54:27 +09:00
|
|
|
activemodel (6.1.6)
|
|
|
|
activesupport (= 6.1.6)
|
|
|
|
activerecord (6.1.6)
|
|
|
|
activemodel (= 6.1.6)
|
|
|
|
activesupport (= 6.1.6)
|
|
|
|
activestorage (6.1.6)
|
|
|
|
actionpack (= 6.1.6)
|
|
|
|
activejob (= 6.1.6)
|
|
|
|
activerecord (= 6.1.6)
|
|
|
|
activesupport (= 6.1.6)
|
2022-03-15 14:05:20 +09:00
|
|
|
marcel (~> 1.0)
|
2021-07-04 05:07:32 +09:00
|
|
|
mini_mime (>= 1.1.0)
|
2022-05-12 10:54:27 +09:00
|
|
|
activesupport (6.1.6)
|
2016-08-18 00:56:23 +09:00
|
|
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
2021-03-24 18:44:31 +09:00
|
|
|
i18n (>= 1.6, < 2)
|
|
|
|
minitest (>= 5.1)
|
|
|
|
tzinfo (~> 2.0)
|
|
|
|
zeitwerk (~> 2.3)
|
2021-07-08 14:35:20 +09:00
|
|
|
addressable (2.8.0)
|
2019-09-05 12:31:47 +09:00
|
|
|
public_suffix (>= 2.0.2, < 5.0)
|
2022-03-09 20:07:35 +09:00
|
|
|
aes_key_wrap (1.1.0)
|
2020-01-20 20:58:56 +09:00
|
|
|
airbrussh (1.4.0)
|
2017-01-31 04:03:17 +09:00
|
|
|
sshkit (>= 1.6.1, != 1.7.0)
|
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>
2020-08-24 23:46:27 +09:00
|
|
|
android_key_attestation (0.3.0)
|
2022-02-13 08:04:32 +09:00
|
|
|
annotate (3.2.0)
|
|
|
|
activerecord (>= 3.2, < 8.0)
|
2019-11-11 22:37:34 +09:00
|
|
|
rake (>= 10.4, < 14.0)
|
2021-02-12 00:10:00 +09:00
|
|
|
ast (2.4.2)
|
2018-04-12 21:45:17 +09:00
|
|
|
attr_encrypted (3.1.0)
|
2017-01-28 04:28:46 +09:00
|
|
|
encryptor (~> 3.0.0)
|
2022-03-09 20:07:35 +09:00
|
|
|
attr_required (1.0.1)
|
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>
2020-08-24 23:46:27 +09:00
|
|
|
awrence (1.1.1)
|
2021-09-09 17:39:21 +09:00
|
|
|
aws-eventstream (1.2.0)
|
2022-05-12 10:42:52 +09:00
|
|
|
aws-partitions (1.587.0)
|
2022-04-27 09:13:52 +09:00
|
|
|
aws-sdk-core (3.130.2)
|
2020-04-13 23:16:12 +09:00
|
|
|
aws-eventstream (~> 1, >= 1.0.2)
|
2021-11-13 18:36:28 +09:00
|
|
|
aws-partitions (~> 1, >= 1.525.0)
|
2019-03-15 22:53:34 +09:00
|
|
|
aws-sigv4 (~> 1.1)
|
2017-12-09 08:47:52 +09:00
|
|
|
jmespath (~> 1.0)
|
2022-04-27 09:13:52 +09:00
|
|
|
aws-sdk-kms (1.56.0)
|
2022-02-25 09:48:46 +09:00
|
|
|
aws-sdk-core (~> 3, >= 3.127.0)
|
2019-03-15 22:53:34 +09:00
|
|
|
aws-sigv4 (~> 1.1)
|
2022-05-12 10:42:52 +09:00
|
|
|
aws-sdk-s3 (1.114.0)
|
2022-02-25 09:48:46 +09:00
|
|
|
aws-sdk-core (~> 3, >= 3.127.0)
|
2018-03-24 20:52:45 +09:00
|
|
|
aws-sdk-kms (~> 1)
|
2021-09-09 17:39:21 +09:00
|
|
|
aws-sigv4 (~> 1.4)
|
2022-04-27 09:13:52 +09:00
|
|
|
aws-sigv4 (1.5.0)
|
2020-06-25 17:49:05 +09:00
|
|
|
aws-eventstream (~> 1, >= 1.0.2)
|
2022-03-29 17:51:13 +09:00
|
|
|
bcrypt (3.1.17)
|
2020-11-10 23:11:15 +09:00
|
|
|
better_errors (2.9.1)
|
2016-02-23 00:00:20 +09:00
|
|
|
coderay (>= 1.0.0)
|
2017-09-18 11:55:57 +09:00
|
|
|
erubi (>= 1.0.0)
|
2016-02-23 00:00:20 +09:00
|
|
|
rack (>= 0.9.0)
|
2022-04-08 20:14:50 +09:00
|
|
|
better_html (1.0.16)
|
|
|
|
actionview (>= 4.0)
|
|
|
|
activesupport (>= 4.0)
|
|
|
|
ast (~> 2.0)
|
|
|
|
erubi (~> 1.4)
|
|
|
|
html_tokenizer (~> 0.0.6)
|
|
|
|
parser (>= 2.4)
|
|
|
|
smart_properties
|
2021-06-24 23:56:43 +09:00
|
|
|
bindata (2.4.10)
|
2021-01-07 14:10:49 +09:00
|
|
|
binding_of_caller (1.0.0)
|
2016-02-21 06:53:20 +09:00
|
|
|
debug_inspector (>= 0.0.1)
|
2022-03-01 05:42:37 +09:00
|
|
|
blurhash (0.1.6)
|
2021-03-22 15:36:13 +09:00
|
|
|
ffi (~> 1.14)
|
2022-07-30 01:29:43 +09:00
|
|
|
bootsnap (1.13.0)
|
2022-01-19 11:03:28 +09:00
|
|
|
msgpack (~> 1.2)
|
2022-05-04 13:49:53 +09:00
|
|
|
brakeman (5.2.3)
|
2020-06-02 04:35:03 +09:00
|
|
|
browser (4.2.0)
|
2021-03-22 15:35:46 +09:00
|
|
|
brpoplpush-redis_script (0.1.2)
|
2021-03-12 13:39:58 +09:00
|
|
|
concurrent-ruby (~> 1.0, >= 1.0.5)
|
|
|
|
redis (>= 1.0, <= 5.0)
|
2019-12-18 03:36:49 +09:00
|
|
|
builder (3.2.4)
|
2022-06-19 14:42:43 +09:00
|
|
|
bullet (7.0.2)
|
2016-03-26 21:42:10 +09:00
|
|
|
activesupport (>= 3.0.0)
|
2018-11-09 05:15:33 +09:00
|
|
|
uniform_notifier (~> 1.11)
|
2022-05-29 22:27:31 +09:00
|
|
|
bundler-audit (0.9.1)
|
2019-01-18 23:23:31 +09:00
|
|
|
bundler (>= 1.2.0, < 3)
|
2021-03-15 21:19:16 +09:00
|
|
|
thor (~> 1.0)
|
2020-05-09 01:50:57 +09:00
|
|
|
byebug (11.1.3)
|
2022-03-29 18:49:00 +09:00
|
|
|
capistrano (3.17.0)
|
2017-01-31 04:03:17 +09:00
|
|
|
airbrussh (>= 1.0.0)
|
|
|
|
i18n
|
|
|
|
rake (>= 10.0.0)
|
|
|
|
sshkit (>= 1.9.0)
|
2020-07-28 12:24:53 +09:00
|
|
|
capistrano-bundler (2.0.1)
|
2017-01-31 04:03:17 +09:00
|
|
|
capistrano (~> 3.1)
|
2022-03-09 21:34:59 +09:00
|
|
|
capistrano-rails (1.6.2)
|
2017-01-31 04:03:17 +09:00
|
|
|
capistrano (~> 3.1)
|
2020-07-28 12:24:53 +09:00
|
|
|
capistrano-bundler (>= 1.1, < 3)
|
2020-07-28 03:24:09 +09:00
|
|
|
capistrano-rbenv (2.2.0)
|
2017-01-31 04:03:17 +09:00
|
|
|
capistrano (~> 3.1)
|
|
|
|
sshkit (~> 1.3)
|
|
|
|
capistrano-yarn (2.0.2)
|
|
|
|
capistrano (~> 3.0)
|
2022-05-11 04:01:16 +09:00
|
|
|
capybara (3.37.1)
|
2017-04-15 08:21:02 +09:00
|
|
|
addressable
|
2021-10-28 10:20:19 +09:00
|
|
|
matrix
|
2017-09-18 11:55:57 +09:00
|
|
|
mini_mime (>= 0.1.3)
|
2018-10-03 22:24:48 +09:00
|
|
|
nokogiri (~> 1.8)
|
2020-01-29 02:50:44 +09:00
|
|
|
rack (>= 1.6.0)
|
2018-10-03 22:24:48 +09:00
|
|
|
rack-test (>= 0.6.3)
|
2021-02-02 23:47:35 +09:00
|
|
|
regexp_parser (>= 1.5, < 3.0)
|
2018-10-24 23:22:18 +09:00
|
|
|
xpath (~> 3.2)
|
2017-07-07 11:02:06 +09:00
|
|
|
case_transform (0.2)
|
|
|
|
activesupport
|
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>
2020-08-24 23:46:27 +09:00
|
|
|
cbor (0.5.9.6)
|
2019-11-27 11:53:50 +09:00
|
|
|
charlock_holmes (0.7.7)
|
2022-02-13 02:07:42 +09:00
|
|
|
chewy (7.2.4)
|
2021-02-02 23:47:12 +09:00
|
|
|
activesupport (>= 5.2)
|
2021-11-19 06:02:08 +09:00
|
|
|
elasticsearch (>= 7.12.0, < 7.14.0)
|
2018-03-06 14:14:26 +09:00
|
|
|
elasticsearch-dsl
|
2021-05-11 00:36:14 +09:00
|
|
|
chunky_png (1.4.0)
|
2017-05-14 23:30:14 +09:00
|
|
|
climate_control (0.2.0)
|
Revamp post filtering system (#18058)
* Add model for custom filter keywords
* Use CustomFilterKeyword internally
Does not change the API
* Fix /filters/edit and /filters/new
* Add migration tests
* Remove whole_word column from custom_filters (covered by custom_filter_keywords)
* Redesign /filters
Instead of a list, present a card that displays more information and handles
multiple keywords per filter.
* Redesign /filters/new and /filters/edit to add and remove keywords
This adds a new gem dependency: cocoon, as well as a npm dependency:
cocoon-js-vanilla. Those are used to easily populate and remove form fields
from the user interface when manipulating multiple keyword filters at once.
* Add /api/v2/filters to edit filter with multiple keywords
Entities:
- `Filter`: `id`, `title`, `filter_action` (either `hide` or `warn`), `context`
`keywords`
- `FilterKeyword`: `id`, `keyword`, `whole_word`
API endpoits:
- `GET /api/v2/filters` to list filters (including keywords)
- `POST /api/v2/filters` to create a new filter
`keywords_attributes` can also be passed to create keywords in one request
- `GET /api/v2/filters/:id` to read a particular filter
- `PUT /api/v2/filters/:id` to update a new filter
`keywords_attributes` can also be passed to edit, delete or add keywords in
one request
- `DELETE /api/v2/filters/:id` to delete a particular filter
- `GET /api/v2/filters/:id/keywords` to list keywords for a filter
- `POST /api/v2/filters/:filter_id/keywords/:id` to add a new keyword to a
filter
- `GET /api/v2/filter_keywords/:id` to read a particular keyword
- `PUT /api/v2/filter_keywords/:id` to edit a particular keyword
- `DELETE /api/v2/filter_keywords/:id` to delete a particular keyword
* Change from `irreversible` boolean to `action` enum
* Remove irrelevent `irreversible_must_be_within_context` check
* Fix /filters/new and /filters/edit with update for filter_action
* Fix Rubocop/Codeclimate complaining about task names
* Refactor FeedManager#phrase_filtered?
This moves regexp building and filter caching to the `CustomFilter` class.
This does not change the functional behavior yet, but this changes how the
cache is built, doing per-custom_filter regexps so that filters can be matched
independently, while still offering caching.
* Perform server-side filtering and output result in REST API
* Fix numerous filters_changed events being sent when editing multiple keywords at once
* Add some tests
* Use the new API in the WebUI
- use client-side logic for filters we have fetched rules for.
This is so that filter changes can be retroactively applied without
reloading the UI.
- use server-side logic for filters we haven't fetched rules for yet
(e.g. network error, or initial timeline loading)
* Minor optimizations and refactoring
* Perform server-side filtering on the streaming server
* Change the wording of filter action labels
* Fix issues pointed out by linter
* Change design of “Show anyway” link in accordence to review comments
* Drop “irreversible” filtering behavior
* Move /api/v2/filter_keywords to /api/v1/filters/keywords
* Rename `filter_results` attribute to `filtered`
* Rename REST::LegacyFilterSerializer to REST::V1::FilterSerializer
* Fix systemChannelId value in streaming server
* Simplify code by removing client-side filtering code
The simplifcation comes at a cost though: filters aren't retroactively
applied anymore.
2022-06-28 16:42:13 +09:00
|
|
|
cocoon (1.2.15)
|
2020-06-02 04:37:30 +09:00
|
|
|
coderay (1.1.3)
|
2020-07-06 01:28:25 +09:00
|
|
|
color_diff (0.1)
|
2022-03-29 17:53:21 +09:00
|
|
|
concurrent-ruby (1.1.10)
|
2021-04-19 22:32:42 +09:00
|
|
|
connection_pool (2.2.5)
|
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>
2020-08-24 23:46:27 +09:00
|
|
|
cose (1.0.0)
|
|
|
|
cbor (~> 0.5.9)
|
|
|
|
openssl-signature_algorithm (~> 0.4.0)
|
2020-12-30 12:17:56 +09:00
|
|
|
crack (0.4.5)
|
|
|
|
rexml
|
2020-01-20 20:45:23 +09:00
|
|
|
crass (1.0.6)
|
2020-01-05 06:48:57 +09:00
|
|
|
css_parser (1.7.1)
|
2018-01-16 11:29:11 +09:00
|
|
|
addressable
|
2021-01-07 14:10:49 +09:00
|
|
|
debug_inspector (1.0.0)
|
2021-12-21 09:22:58 +09:00
|
|
|
devise (4.8.1)
|
2016-03-05 21:12:24 +09:00
|
|
|
bcrypt (~> 3.0)
|
|
|
|
orm_adapter (~> 0.1)
|
2019-08-26 23:04:52 +09:00
|
|
|
railties (>= 4.1.0)
|
2016-03-05 21:12:24 +09:00
|
|
|
responders
|
|
|
|
warden (~> 1.2.3)
|
2022-03-29 17:51:13 +09:00
|
|
|
devise-two-factor (4.0.2)
|
|
|
|
activesupport (< 7.1)
|
2021-04-10 18:50:41 +09:00
|
|
|
attr_encrypted (>= 1.3, < 4, != 2)
|
|
|
|
devise (~> 4.0)
|
2022-03-29 17:51:13 +09:00
|
|
|
railties (< 7.1)
|
2021-04-10 18:50:41 +09:00
|
|
|
rotp (~> 6.0)
|
2018-09-15 00:42:45 +09:00
|
|
|
devise_pam_authenticatable2 (9.2.0)
|
2018-02-02 18:18:55 +09:00
|
|
|
devise (>= 4.0.0)
|
2018-04-12 04:40:38 +09:00
|
|
|
rpam2 (~> 4.0)
|
2022-02-13 08:00:26 +09:00
|
|
|
diff-lcs (1.5.0)
|
2021-12-21 09:36:35 +09:00
|
|
|
discard (1.2.1)
|
|
|
|
activerecord (>= 4.2, < 8)
|
2021-01-05 02:10:10 +09:00
|
|
|
docile (1.3.4)
|
2020-01-12 23:49:30 +09:00
|
|
|
domain_name (0.5.20190701)
|
2016-02-21 06:53:20 +09:00
|
|
|
unf (>= 0.0.5, < 1.0.0)
|
2021-10-15 03:55:22 +09:00
|
|
|
doorkeeper (5.5.4)
|
2019-04-22 22:02:59 +09:00
|
|
|
railties (>= 5)
|
2022-07-30 01:39:38 +09:00
|
|
|
dotenv (2.8.1)
|
|
|
|
dotenv-rails (2.8.1)
|
|
|
|
dotenv (= 2.8.1)
|
2020-07-28 06:00:00 +09:00
|
|
|
railties (>= 3.2)
|
2022-01-19 11:04:11 +09:00
|
|
|
ed25519 (1.3.0)
|
2021-11-19 06:02:08 +09:00
|
|
|
elasticsearch (7.13.3)
|
|
|
|
elasticsearch-api (= 7.13.3)
|
|
|
|
elasticsearch-transport (= 7.13.3)
|
|
|
|
elasticsearch-api (7.13.3)
|
2018-02-10 07:04:47 +09:00
|
|
|
multi_json
|
2021-11-19 06:02:08 +09:00
|
|
|
elasticsearch-dsl (0.1.10)
|
|
|
|
elasticsearch-transport (7.13.3)
|
2020-04-13 23:21:31 +09:00
|
|
|
faraday (~> 1)
|
2018-02-10 07:04:47 +09:00
|
|
|
multi_json
|
2017-01-28 04:28:46 +09:00
|
|
|
encryptor (3.0.0)
|
2020-12-29 23:45:23 +09:00
|
|
|
erubi (1.10.0)
|
2022-04-22 02:33:04 +09:00
|
|
|
et-orbi (1.2.7)
|
2017-05-05 09:23:01 +09:00
|
|
|
tzinfo
|
2020-08-07 00:35:32 +09:00
|
|
|
excon (0.76.0)
|
2022-07-30 01:27:12 +09:00
|
|
|
fabrication (2.30.0)
|
2022-07-30 01:16:28 +09:00
|
|
|
faker (2.22.0)
|
2022-03-09 21:30:35 +09:00
|
|
|
i18n (>= 1.8.11, < 2)
|
2022-02-13 02:07:42 +09:00
|
|
|
faraday (1.9.3)
|
2021-11-19 06:02:08 +09:00
|
|
|
faraday-em_http (~> 1.0)
|
|
|
|
faraday-em_synchrony (~> 1.0)
|
|
|
|
faraday-excon (~> 1.1)
|
2022-02-13 02:07:42 +09:00
|
|
|
faraday-httpclient (~> 1.0)
|
|
|
|
faraday-multipart (~> 1.0)
|
2021-02-02 23:47:12 +09:00
|
|
|
faraday-net_http (~> 1.0)
|
2022-02-13 02:07:42 +09:00
|
|
|
faraday-net_http_persistent (~> 1.0)
|
2021-11-19 06:02:08 +09:00
|
|
|
faraday-patron (~> 1.0)
|
|
|
|
faraday-rack (~> 1.0)
|
2022-02-13 02:07:42 +09:00
|
|
|
faraday-retry (~> 1.0)
|
2021-11-19 06:02:08 +09:00
|
|
|
ruby2_keywords (>= 0.0.4)
|
|
|
|
faraday-em_http (1.0.0)
|
|
|
|
faraday-em_synchrony (1.0.0)
|
|
|
|
faraday-excon (1.1.0)
|
|
|
|
faraday-httpclient (1.0.1)
|
2022-02-13 02:07:42 +09:00
|
|
|
faraday-multipart (1.0.3)
|
|
|
|
multipart-post (>= 1.2, < 3)
|
2021-02-02 23:47:12 +09:00
|
|
|
faraday-net_http (1.0.1)
|
2021-11-19 06:02:08 +09:00
|
|
|
faraday-net_http_persistent (1.2.0)
|
|
|
|
faraday-patron (1.0.0)
|
|
|
|
faraday-rack (1.0.0)
|
2022-02-13 02:07:42 +09:00
|
|
|
faraday-retry (1.0.3)
|
2021-08-20 18:47:45 +09:00
|
|
|
fast_blank (1.0.1)
|
2021-12-21 09:36:53 +09:00
|
|
|
fastimage (2.2.6)
|
2022-01-25 20:48:05 +09:00
|
|
|
ffi (1.15.5)
|
2020-01-12 23:49:30 +09:00
|
|
|
ffi-compiler (1.0.1)
|
|
|
|
ffi (>= 1.0.0)
|
|
|
|
rake
|
2018-10-22 23:58:36 +09:00
|
|
|
fog-core (2.1.0)
|
2017-09-06 06:17:06 +09:00
|
|
|
builder
|
|
|
|
excon (~> 0.58)
|
|
|
|
formatador (~> 0.2)
|
2018-10-04 22:35:18 +09:00
|
|
|
mime-types
|
2018-10-04 08:07:13 +09:00
|
|
|
fog-json (1.2.0)
|
|
|
|
fog-core
|
2017-09-06 06:17:06 +09:00
|
|
|
multi_json (~> 1.10)
|
2020-06-08 14:46:58 +09:00
|
|
|
fog-openstack (0.3.10)
|
2018-10-22 23:58:36 +09:00
|
|
|
fog-core (>= 1.45, <= 2.1.0)
|
2017-09-06 06:17:06 +09:00
|
|
|
fog-json (>= 1.0)
|
|
|
|
ipaddress (>= 0.8)
|
|
|
|
formatador (0.2.5)
|
2022-04-22 02:33:04 +09:00
|
|
|
fugit (1.5.3)
|
|
|
|
et-orbi (~> 1, >= 1.2.7)
|
2021-06-10 23:46:18 +09:00
|
|
|
raabro (~> 1.4)
|
2021-01-05 02:09:39 +09:00
|
|
|
fuubar (2.5.1)
|
2017-04-11 05:47:41 +09:00
|
|
|
rspec-core (~> 3.0)
|
2016-02-25 08:17:01 +09:00
|
|
|
ruby-progressbar (~> 1.4)
|
2022-07-06 09:44:02 +09:00
|
|
|
gitlab-omniauth-openid-connect (0.10.0)
|
2022-03-09 20:07:35 +09:00
|
|
|
addressable (~> 2.7)
|
2022-07-06 09:44:02 +09:00
|
|
|
omniauth (>= 1.9, < 3)
|
2022-03-09 20:07:35 +09:00
|
|
|
openid_connect (~> 1.2)
|
2022-01-25 20:34:37 +09:00
|
|
|
globalid (1.0.0)
|
2021-08-26 01:39:55 +09:00
|
|
|
activesupport (>= 5.0)
|
2020-10-06 17:06:23 +09:00
|
|
|
hamlit (2.13.0)
|
2020-01-05 06:48:57 +09:00
|
|
|
temple (>= 0.8.2)
|
2016-09-24 20:40:42 +09:00
|
|
|
thor
|
2016-02-21 06:53:20 +09:00
|
|
|
tilt
|
2019-04-09 17:23:52 +09:00
|
|
|
hamlit-rails (0.2.3)
|
2016-02-21 06:53:20 +09:00
|
|
|
actionpack (>= 4.0.1)
|
|
|
|
activesupport (>= 4.0.1)
|
2016-09-24 20:40:42 +09:00
|
|
|
hamlit (>= 1.2.0)
|
2016-02-21 06:53:20 +09:00
|
|
|
railties (>= 4.0.1)
|
2020-03-18 20:16:46 +09:00
|
|
|
hashdiff (1.0.1)
|
2022-04-08 13:44:40 +09:00
|
|
|
hashie (5.0.0)
|
2020-01-20 20:45:23 +09:00
|
|
|
highline (2.0.3)
|
2018-11-09 14:55:19 +09:00
|
|
|
hiredis (0.6.3)
|
2017-07-14 05:15:32 +09:00
|
|
|
hkdf (0.3.0)
|
2022-04-08 20:14:50 +09:00
|
|
|
html_tokenizer (0.0.7)
|
2016-03-12 00:47:36 +09:00
|
|
|
htmlentities (4.3.4)
|
2022-06-27 20:54:46 +09:00
|
|
|
http (5.1.0)
|
2021-09-14 17:52:19 +09:00
|
|
|
addressable (~> 2.8)
|
2016-02-21 06:53:20 +09:00
|
|
|
http-cookie (~> 1.0)
|
2020-01-12 23:49:30 +09:00
|
|
|
http-form_data (~> 2.2)
|
2021-09-14 17:52:19 +09:00
|
|
|
llhttp-ffi (~> 0.4.0)
|
2022-06-27 20:54:46 +09:00
|
|
|
http-cookie (1.0.5)
|
2016-02-21 06:53:20 +09:00
|
|
|
domain_name (~> 0.5)
|
2020-04-29 00:21:53 +09:00
|
|
|
http-form_data (2.3.0)
|
2017-06-30 20:42:04 +09:00
|
|
|
http_accept_language (2.1.1)
|
2022-03-09 20:07:35 +09:00
|
|
|
httpclient (2.8.3)
|
2021-05-29 09:17:23 +09:00
|
|
|
httplog (1.5.0)
|
2018-04-12 21:45:17 +09:00
|
|
|
rack (>= 1.0)
|
2018-10-03 11:56:00 +09:00
|
|
|
rainbow (>= 2.0.0)
|
2022-07-30 01:16:28 +09:00
|
|
|
i18n (1.12.0)
|
2017-10-31 20:22:32 +09:00
|
|
|
concurrent-ruby (~> 1.0)
|
2022-06-19 14:42:02 +09:00
|
|
|
i18n-tasks (1.0.11)
|
2018-10-30 09:06:47 +09:00
|
|
|
activesupport (>= 4.0.2)
|
|
|
|
ast (>= 2.1.0)
|
2022-04-08 20:14:50 +09:00
|
|
|
better_html (~> 1.0)
|
2018-10-30 09:06:47 +09:00
|
|
|
erubi
|
|
|
|
highline (>= 2.0.0)
|
|
|
|
i18n
|
|
|
|
parser (>= 2.2.3.0)
|
|
|
|
rails-i18n
|
|
|
|
rainbow (>= 2.2.2, < 4.0)
|
|
|
|
terminal-table (>= 1.5.1)
|
2021-11-13 18:34:00 +09:00
|
|
|
idn-ruby (0.1.4)
|
2017-09-06 06:17:06 +09:00
|
|
|
ipaddress (0.8.3)
|
2022-04-27 09:13:52 +09:00
|
|
|
jmespath (1.6.1)
|
2022-05-29 22:28:07 +09:00
|
|
|
json (2.6.2)
|
2022-01-19 11:12:01 +09:00
|
|
|
json-canonicalization (0.3.0)
|
2022-03-09 20:07:35 +09:00
|
|
|
json-jwt (1.13.0)
|
|
|
|
activesupport (>= 4.2)
|
|
|
|
aes_key_wrap
|
|
|
|
bindata
|
2022-01-19 11:12:01 +09:00
|
|
|
json-ld (3.2.0)
|
2020-01-14 03:01:43 +09:00
|
|
|
htmlentities (~> 4.3)
|
2022-01-19 11:12:01 +09:00
|
|
|
json-canonicalization (~> 0.3)
|
2020-01-14 03:01:43 +09:00
|
|
|
link_header (~> 0.0, >= 0.0.8)
|
2022-01-19 11:12:01 +09:00
|
|
|
multi_json (~> 1.15)
|
|
|
|
rack (~> 2.2)
|
|
|
|
rdf (~> 3.2)
|
2022-01-25 21:23:42 +09:00
|
|
|
json-ld-preloaded (3.2.0)
|
|
|
|
json-ld (~> 3.2)
|
|
|
|
rdf (~> 3.2)
|
2019-07-23 18:10:42 +09:00
|
|
|
jsonapi-renderer (0.2.2)
|
2020-08-25 20:53:09 +09:00
|
|
|
jwt (2.2.2)
|
2022-01-06 09:54:38 +09:00
|
|
|
kaminari (1.2.2)
|
2017-04-11 08:11:41 +09:00
|
|
|
activesupport (>= 4.1.0)
|
2022-01-06 09:54:38 +09:00
|
|
|
kaminari-actionview (= 1.2.2)
|
|
|
|
kaminari-activerecord (= 1.2.2)
|
|
|
|
kaminari-core (= 1.2.2)
|
|
|
|
kaminari-actionview (1.2.2)
|
2017-04-11 08:11:41 +09:00
|
|
|
actionview
|
2022-01-06 09:54:38 +09:00
|
|
|
kaminari-core (= 1.2.2)
|
|
|
|
kaminari-activerecord (1.2.2)
|
2017-04-11 08:11:41 +09:00
|
|
|
activerecord
|
2022-01-06 09:54:38 +09:00
|
|
|
kaminari-core (= 1.2.2)
|
|
|
|
kaminari-core (1.2.2)
|
2022-02-13 20:21:09 +09:00
|
|
|
kt-paperclip (7.1.1)
|
2021-09-30 06:52:36 +09:00
|
|
|
activemodel (>= 4.2.0)
|
|
|
|
activesupport (>= 4.2.0)
|
|
|
|
marcel (~> 1.0.1)
|
|
|
|
mime-types
|
|
|
|
terrapin (~> 0.6.0)
|
2020-05-09 01:50:15 +09:00
|
|
|
launchy (2.5.0)
|
|
|
|
addressable (~> 2.7)
|
2022-03-22 11:30:45 +09:00
|
|
|
letter_opener (1.8.1)
|
|
|
|
launchy (>= 2.2, < 3)
|
2021-11-18 09:20:31 +09:00
|
|
|
letter_opener_web (2.0.0)
|
|
|
|
actionmailer (>= 5.2)
|
|
|
|
letter_opener (~> 1.7)
|
|
|
|
railties (>= 5.2)
|
|
|
|
rexml
|
Fix #24 - Thread resolving for remote statuses
This is a big one, so let me enumerate:
Accounts as well as stream entry pages now contain Link headers that
reference the Atom feed and Webfinger URL for the former and Atom entry
for the latter. So you only need to HEAD those resources to get that
information, no need to download and parse HTML <link>s.
ProcessFeedService will now queue ThreadResolveWorker for each remote
status that it cannot find otherwise. Furthermore, entries are now
processed in reverse order (from bottom to top) in case a newer entry
references a chronologically previous one.
ThreadResolveWorker uses FetchRemoteStatusService to obtain a status
and attach the child status it was queued for to it.
FetchRemoteStatusService looks up the URL, first with a HEAD, tests
if it's an Atom feed, in which case it processes it directly. Next
for Link headers to the Atom feed, in which case that is fetched
and processed. Lastly if it's HTML, it is checked for <link>s to the Atom
feed, and if such is found, that is fetched and processed. The account for
the status is derived from author/name attribute in the XML and the hostname
in the URL (domain). FollowRemoteAccountService and ProcessFeedService
are used.
This means that potentially threads are resolved recursively until a dead-end
is encountered, however it is performed asynchronously over background jobs,
so it should be ok.
2016-09-21 08:34:14 +09:00
|
|
|
link_header (0.0.8)
|
2021-09-14 17:52:19 +09:00
|
|
|
llhttp-ffi (0.4.0)
|
2021-08-29 01:17:59 +09:00
|
|
|
ffi-compiler (~> 1.0)
|
|
|
|
rake (~> 13.0)
|
2022-04-08 13:40:05 +09:00
|
|
|
lograge (0.12.0)
|
2018-04-12 21:45:17 +09:00
|
|
|
actionpack (>= 4)
|
|
|
|
activesupport (>= 4)
|
|
|
|
railties (>= 4)
|
2017-09-18 11:55:57 +09:00
|
|
|
request_store (~> 1.0)
|
2022-05-12 10:54:27 +09:00
|
|
|
loofah (2.18.0)
|
2017-10-31 20:22:32 +09:00
|
|
|
crass (~> 1.0.2)
|
2016-02-21 06:53:20 +09:00
|
|
|
nokogiri (>= 1.5.9)
|
2018-11-28 07:34:39 +09:00
|
|
|
mail (2.7.1)
|
2017-12-04 00:55:27 +09:00
|
|
|
mini_mime (>= 0.1.1)
|
2021-06-07 21:01:34 +09:00
|
|
|
makara (0.5.1)
|
|
|
|
activerecord (>= 5.2.0)
|
2022-02-13 20:21:09 +09:00
|
|
|
marcel (1.0.2)
|
2018-04-12 21:45:17 +09:00
|
|
|
mario-redis-lock (1.2.1)
|
|
|
|
redis (>= 3.0.5)
|
2021-10-28 10:20:19 +09:00
|
|
|
matrix (0.4.2)
|
2020-12-30 20:05:32 +09:00
|
|
|
memory_profiler (1.0.0)
|
2020-05-09 01:48:48 +09:00
|
|
|
method_source (1.0.0)
|
2022-05-29 22:28:07 +09:00
|
|
|
microformats (4.4.1)
|
2020-01-05 10:25:07 +09:00
|
|
|
json (~> 2.2)
|
|
|
|
nokogiri (~> 1.10)
|
2021-11-18 09:44:08 +09:00
|
|
|
mime-types (3.4.1)
|
2016-08-18 00:56:23 +09:00
|
|
|
mime-types-data (~> 3.2015)
|
2022-02-13 20:21:09 +09:00
|
|
|
mime-types-data (3.2022.0105)
|
2021-10-15 04:36:56 +09:00
|
|
|
mini_mime (1.1.2)
|
2022-02-25 09:18:55 +09:00
|
|
|
mini_portile2 (2.8.0)
|
2022-07-30 01:39:38 +09:00
|
|
|
minitest (5.16.2)
|
2022-07-30 01:29:43 +09:00
|
|
|
msgpack (1.5.4)
|
2020-07-28 10:18:02 +09:00
|
|
|
multi_json (1.15.0)
|
2019-09-23 19:52:29 +09:00
|
|
|
multipart-post (2.1.1)
|
2022-06-16 20:43:24 +09:00
|
|
|
net-ldap (0.17.1)
|
2020-05-09 01:53:11 +09:00
|
|
|
net-scp (3.0.0)
|
|
|
|
net-ssh (>= 2.6.5, < 7.0.0)
|
2020-06-15 23:28:56 +09:00
|
|
|
net-ssh (6.1.0)
|
2021-08-26 01:39:55 +09:00
|
|
|
nio4r (2.5.8)
|
2022-07-30 00:59:37 +09:00
|
|
|
nokogiri (1.13.8)
|
2022-02-25 09:18:55 +09:00
|
|
|
mini_portile2 (~> 2.8.0)
|
2021-01-06 04:01:31 +09:00
|
|
|
racc (~> 1.4)
|
2021-04-13 10:45:45 +09:00
|
|
|
nsa (0.2.8)
|
|
|
|
activesupport (>= 4.2, < 7)
|
|
|
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
|
|
sidekiq (>= 3.5)
|
|
|
|
statsd-ruby (~> 1.4, >= 1.4.0)
|
2022-07-30 01:09:28 +09:00
|
|
|
oj (3.13.18)
|
2020-03-21 11:23:25 +09:00
|
|
|
omniauth (1.9.1)
|
|
|
|
hashie (>= 3.4.6)
|
2018-02-04 13:42:13 +09:00
|
|
|
rack (>= 1.6.2, < 3)
|
2020-11-20 01:43:58 +09:00
|
|
|
omniauth-cas (2.0.0)
|
2018-02-04 13:42:13 +09:00
|
|
|
addressable (~> 2.3)
|
|
|
|
nokogiri (~> 1.5)
|
|
|
|
omniauth (~> 1.2)
|
2020-11-28 13:17:53 +09:00
|
|
|
omniauth-rails_csrf_protection (0.1.2)
|
|
|
|
actionpack (>= 4.2)
|
|
|
|
omniauth (>= 1.3.1)
|
2020-10-22 12:46:54 +09:00
|
|
|
omniauth-saml (1.10.3)
|
2018-02-04 13:42:13 +09:00
|
|
|
omniauth (~> 1.3, >= 1.3.2)
|
2020-07-06 23:18:06 +09:00
|
|
|
ruby-saml (~> 1.9)
|
2022-04-08 13:44:40 +09:00
|
|
|
openid_connect (1.3.0)
|
2022-03-09 20:07:35 +09:00
|
|
|
activemodel
|
|
|
|
attr_required (>= 1.0.0)
|
|
|
|
json-jwt (>= 1.5.0)
|
|
|
|
rack-oauth2 (>= 1.6.1)
|
|
|
|
swd (>= 1.0.0)
|
|
|
|
tzinfo
|
|
|
|
validate_email
|
|
|
|
validate_url
|
|
|
|
webfinger (>= 1.0.1)
|
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>
2020-08-24 23:46:27 +09:00
|
|
|
openssl (2.2.0)
|
|
|
|
openssl-signature_algorithm (0.4.0)
|
2016-03-05 21:12:24 +09:00
|
|
|
orm_adapter (0.5.0)
|
2022-04-06 03:02:07 +09:00
|
|
|
ox (2.14.11)
|
2022-03-29 18:58:28 +09:00
|
|
|
parallel (1.22.1)
|
2022-05-04 13:43:02 +09:00
|
|
|
parser (3.1.2.0)
|
2020-06-25 17:22:53 +09:00
|
|
|
ast (~> 2.4.1)
|
2020-04-29 01:39:21 +09:00
|
|
|
parslet (2.0.0)
|
2020-07-29 00:51:15 +09:00
|
|
|
pastel (0.8.0)
|
2019-10-04 10:19:54 +09:00
|
|
|
tty-color (~> 0.5)
|
2022-07-30 01:48:43 +09:00
|
|
|
pg (1.4.2)
|
2022-05-03 10:10:45 +09:00
|
|
|
pghero (2.8.3)
|
2019-08-19 22:37:22 +09:00
|
|
|
activerecord (>= 5)
|
2022-08-06 15:34:00 +09:00
|
|
|
pkg-config (1.4.9)
|
2020-07-29 00:59:29 +09:00
|
|
|
posix-spawn (0.3.15)
|
2020-09-22 16:53:01 +09:00
|
|
|
premailer (1.14.2)
|
2018-01-16 11:29:11 +09:00
|
|
|
addressable
|
|
|
|
css_parser (>= 1.6.0)
|
|
|
|
htmlentities (>= 4.0.0)
|
2020-05-09 00:42:05 +09:00
|
|
|
premailer-rails (1.11.1)
|
2019-07-22 23:05:34 +09:00
|
|
|
actionmailer (>= 3)
|
2018-01-16 11:29:11 +09:00
|
|
|
premailer (~> 1.7, >= 1.7.9)
|
2018-09-21 07:42:59 +09:00
|
|
|
private_address_check (0.5.0)
|
2020-05-09 01:48:48 +09:00
|
|
|
pry (0.13.1)
|
|
|
|
coderay (~> 1.1)
|
|
|
|
method_source (~> 1.0)
|
2020-05-09 01:52:57 +09:00
|
|
|
pry-byebug (3.9.0)
|
2019-02-22 20:06:01 +09:00
|
|
|
byebug (~> 11.0)
|
2020-05-09 01:52:57 +09:00
|
|
|
pry (~> 0.13.0)
|
2019-01-03 06:39:23 +09:00
|
|
|
pry-rails (0.3.9)
|
2017-04-11 05:47:41 +09:00
|
|
|
pry (>= 0.10.4)
|
2022-05-11 04:01:16 +09:00
|
|
|
public_suffix (4.0.7)
|
2022-03-31 19:10:40 +09:00
|
|
|
puma (5.6.4)
|
2019-07-18 08:06:14 +09:00
|
|
|
nio4r (~> 2.0)
|
2022-02-19 13:30:06 +09:00
|
|
|
pundit (2.2.0)
|
2017-05-30 01:22:22 +09:00
|
|
|
activesupport (>= 3.0.0)
|
2021-06-10 23:46:18 +09:00
|
|
|
raabro (1.4.0)
|
2021-10-28 10:20:19 +09:00
|
|
|
racc (1.6.0)
|
2022-07-06 09:54:41 +09:00
|
|
|
rack (2.2.4)
|
2022-04-22 02:33:26 +09:00
|
|
|
rack-attack (6.6.1)
|
2018-10-02 05:49:26 +09:00
|
|
|
rack (>= 1.0, < 3)
|
2019-12-30 23:58:24 +09:00
|
|
|
rack-cors (1.1.1)
|
2019-11-27 11:59:57 +09:00
|
|
|
rack (>= 2.0.0)
|
2022-04-08 13:44:40 +09:00
|
|
|
rack-oauth2 (1.19.0)
|
2022-03-09 20:07:35 +09:00
|
|
|
activesupport
|
|
|
|
attr_required
|
|
|
|
httpclient
|
|
|
|
json-jwt (>= 1.11.0)
|
|
|
|
rack (>= 2.1.0)
|
2021-08-27 21:47:43 +09:00
|
|
|
rack-proxy (0.7.0)
|
2017-09-27 21:41:54 +09:00
|
|
|
rack
|
2022-07-30 01:39:38 +09:00
|
|
|
rack-test (2.0.2)
|
|
|
|
rack (>= 1.3)
|
2022-05-12 10:54:27 +09:00
|
|
|
rails (6.1.6)
|
|
|
|
actioncable (= 6.1.6)
|
|
|
|
actionmailbox (= 6.1.6)
|
|
|
|
actionmailer (= 6.1.6)
|
|
|
|
actionpack (= 6.1.6)
|
|
|
|
actiontext (= 6.1.6)
|
|
|
|
actionview (= 6.1.6)
|
|
|
|
activejob (= 6.1.6)
|
|
|
|
activemodel (= 6.1.6)
|
|
|
|
activerecord (= 6.1.6)
|
|
|
|
activestorage (= 6.1.6)
|
|
|
|
activesupport (= 6.1.6)
|
2021-03-24 18:44:31 +09:00
|
|
|
bundler (>= 1.15.0)
|
2022-05-12 10:54:27 +09:00
|
|
|
railties (= 6.1.6)
|
2016-12-22 03:09:59 +09:00
|
|
|
sprockets-rails (>= 2.0.0)
|
2020-06-29 22:43:34 +09:00
|
|
|
rails-controller-testing (1.0.5)
|
|
|
|
actionpack (>= 5.0.1.rc1)
|
|
|
|
actionview (>= 5.0.1.rc1)
|
|
|
|
activesupport (>= 5.0.1.rc1)
|
2017-05-14 23:30:14 +09:00
|
|
|
rails-dom-testing (2.0.3)
|
|
|
|
activesupport (>= 4.2.0)
|
|
|
|
nokogiri (>= 1.6)
|
2022-06-19 14:42:02 +09:00
|
|
|
rails-html-sanitizer (1.4.3)
|
2019-10-29 19:40:52 +09:00
|
|
|
loofah (~> 2.3)
|
2021-03-24 18:44:31 +09:00
|
|
|
rails-i18n (6.0.0)
|
2018-04-12 21:45:17 +09:00
|
|
|
i18n (>= 0.7, < 2)
|
2021-03-24 18:44:31 +09:00
|
|
|
railties (>= 6.0.0, < 7)
|
2017-08-08 01:55:36 +09:00
|
|
|
rails-settings-cached (0.6.6)
|
2017-01-13 04:46:24 +09:00
|
|
|
rails (>= 4.2.0)
|
2022-05-12 10:54:27 +09:00
|
|
|
railties (6.1.6)
|
|
|
|
actionpack (= 6.1.6)
|
|
|
|
activesupport (= 6.1.6)
|
2016-12-22 03:09:59 +09:00
|
|
|
method_source
|
2022-03-15 14:05:20 +09:00
|
|
|
rake (>= 12.2)
|
2021-03-24 18:44:31 +09:00
|
|
|
thor (~> 1.0)
|
2022-01-19 10:53:03 +09:00
|
|
|
rainbow (3.1.1)
|
2021-08-20 18:48:39 +09:00
|
|
|
rake (13.0.6)
|
2022-01-19 11:12:01 +09:00
|
|
|
rdf (3.2.3)
|
2017-08-26 20:47:38 +09:00
|
|
|
link_header (~> 0.0, >= 0.0.8)
|
2022-01-27 20:25:18 +09:00
|
|
|
rdf-normalize (0.5.0)
|
|
|
|
rdf (~> 3.2)
|
2021-10-20 09:49:36 +09:00
|
|
|
redis (4.5.1)
|
2022-03-09 21:31:27 +09:00
|
|
|
redis-namespace (1.8.2)
|
2017-12-04 00:55:27 +09:00
|
|
|
redis (>= 3.0.4)
|
2022-06-03 12:50:53 +09:00
|
|
|
regexp_parser (2.5.0)
|
2022-04-08 13:40:05 +09:00
|
|
|
request_store (1.5.1)
|
2018-04-12 21:45:17 +09:00
|
|
|
rack (>= 1.4)
|
2020-06-02 04:46:09 +09:00
|
|
|
responders (3.0.1)
|
2019-08-12 20:11:55 +09:00
|
|
|
actionpack (>= 5.0)
|
|
|
|
railties (>= 5.0)
|
2021-04-09 09:31:36 +09:00
|
|
|
rexml (3.2.5)
|
2021-03-24 18:44:31 +09:00
|
|
|
rotp (6.2.0)
|
2018-04-12 04:40:38 +09:00
|
|
|
rpam2 (4.0.2)
|
2022-07-30 01:11:57 +09:00
|
|
|
rqrcode (2.1.2)
|
2017-01-28 04:28:46 +09:00
|
|
|
chunky_png (~> 1.0)
|
2021-05-11 00:36:14 +09:00
|
|
|
rqrcode_core (~> 1.0)
|
2021-08-31 20:58:34 +09:00
|
|
|
rqrcode_core (1.2.0)
|
2022-02-13 08:00:26 +09:00
|
|
|
rspec-core (3.11.0)
|
|
|
|
rspec-support (~> 3.11.0)
|
|
|
|
rspec-expectations (3.11.0)
|
2016-02-21 06:53:20 +09:00
|
|
|
diff-lcs (>= 1.2.0, < 2.0)
|
2022-02-13 08:00:26 +09:00
|
|
|
rspec-support (~> 3.11.0)
|
2022-05-03 10:11:42 +09:00
|
|
|
rspec-mocks (3.11.1)
|
2016-02-21 06:53:20 +09:00
|
|
|
diff-lcs (>= 1.2.0, < 2.0)
|
2022-02-13 08:00:26 +09:00
|
|
|
rspec-support (~> 3.11.0)
|
2022-05-03 10:11:42 +09:00
|
|
|
rspec-rails (5.1.2)
|
2021-03-16 07:55:43 +09:00
|
|
|
actionpack (>= 5.2)
|
|
|
|
activesupport (>= 5.2)
|
|
|
|
railties (>= 5.2)
|
2020-12-30 12:13:29 +09:00
|
|
|
rspec-core (~> 3.10)
|
|
|
|
rspec-expectations (~> 3.10)
|
|
|
|
rspec-mocks (~> 3.10)
|
|
|
|
rspec-support (~> 3.10)
|
2020-06-25 17:47:34 +09:00
|
|
|
rspec-sidekiq (3.1.0)
|
2017-04-11 05:47:41 +09:00
|
|
|
rspec-core (~> 3.0, >= 3.0.0)
|
2016-03-26 21:42:10 +09:00
|
|
|
sidekiq (>= 2.4.0)
|
2022-02-13 08:00:26 +09:00
|
|
|
rspec-support (3.11.0)
|
2022-01-18 22:35:15 +09:00
|
|
|
rspec_junit_formatter (0.5.1)
|
2020-05-02 03:19:01 +09:00
|
|
|
rspec-core (>= 2, < 4, != 2.12.0)
|
2022-06-11 21:53:52 +09:00
|
|
|
rubocop (1.30.1)
|
2017-05-30 01:18:06 +09:00
|
|
|
parallel (~> 1.10)
|
2022-01-25 20:39:08 +09:00
|
|
|
parser (>= 3.1.0.0)
|
2018-04-12 21:45:17 +09:00
|
|
|
rainbow (>= 2.2.2, < 4.0)
|
2020-12-30 00:12:03 +09:00
|
|
|
regexp_parser (>= 1.8, < 3.0)
|
2022-05-19 03:27:55 +09:00
|
|
|
rexml (>= 3.2.5, < 4.0)
|
2022-06-03 12:50:53 +09:00
|
|
|
rubocop-ast (>= 1.18.0, < 2.0)
|
2016-02-21 06:53:20 +09:00
|
|
|
ruby-progressbar (~> 1.7)
|
2021-02-01 03:48:29 +09:00
|
|
|
unicode-display_width (>= 1.4.0, < 3.0)
|
2022-05-19 03:27:55 +09:00
|
|
|
rubocop-ast (1.18.0)
|
2022-03-18 09:34:57 +09:00
|
|
|
parser (>= 3.1.1.0)
|
2022-06-19 14:43:21 +09:00
|
|
|
rubocop-rails (2.15.0)
|
2020-06-15 23:26:27 +09:00
|
|
|
activesupport (>= 4.2.0)
|
2019-06-17 21:16:03 +09:00
|
|
|
rack (>= 1.1)
|
2021-05-11 00:35:24 +09:00
|
|
|
rubocop (>= 1.7.0, < 2.0)
|
2021-01-05 02:10:33 +09:00
|
|
|
ruby-progressbar (1.11.0)
|
2021-09-10 22:43:28 +09:00
|
|
|
ruby-saml (1.13.0)
|
|
|
|
nokogiri (>= 1.10.5)
|
|
|
|
rexml
|
2021-11-19 06:02:08 +09:00
|
|
|
ruby2_keywords (0.0.5)
|
2022-02-05 13:02:57 +09:00
|
|
|
rufus-scheduler (3.8.1)
|
2020-03-18 20:02:34 +09:00
|
|
|
fugit (~> 1.1, >= 1.1.6)
|
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>
2020-08-24 23:46:27 +09:00
|
|
|
safety_net_attestation (0.4.0)
|
|
|
|
jwt (~> 2.0)
|
2021-08-10 03:46:57 +09:00
|
|
|
sanitize (6.0.0)
|
2017-04-27 21:42:22 +09:00
|
|
|
crass (~> 1.0.2)
|
2021-08-10 03:46:57 +09:00
|
|
|
nokogiri (>= 1.12.0)
|
2022-02-16 19:18:09 +09:00
|
|
|
scenic (1.6.0)
|
2020-12-14 17:06:34 +09:00
|
|
|
activerecord (>= 4.0.0)
|
|
|
|
railties (>= 4.0.0)
|
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>
2020-08-24 23:46:27 +09:00
|
|
|
securecompare (1.0.0)
|
2021-05-07 12:33:21 +09:00
|
|
|
semantic_range (3.0.0)
|
2022-07-06 09:11:00 +09:00
|
|
|
sidekiq (6.5.1)
|
2020-03-21 12:04:54 +09:00
|
|
|
connection_pool (>= 2.2.2)
|
2020-05-09 01:43:26 +09:00
|
|
|
rack (~> 2.0)
|
2020-07-02 02:05:21 +09:00
|
|
|
redis (>= 4.2.0)
|
2018-11-22 20:47:36 +09:00
|
|
|
sidekiq-bulk (0.2.0)
|
2017-06-04 07:11:15 +09:00
|
|
|
sidekiq
|
2022-06-28 22:16:09 +09:00
|
|
|
sidekiq-scheduler (4.0.2)
|
2022-05-04 22:47:05 +09:00
|
|
|
redis (>= 4.2.0)
|
2017-05-05 09:23:01 +09:00
|
|
|
rufus-scheduler (~> 3.2)
|
2022-05-04 22:47:05 +09:00
|
|
|
sidekiq (>= 4)
|
2017-05-05 09:23:01 +09:00
|
|
|
tilt (>= 1.4.0)
|
2022-08-06 15:31:47 +09:00
|
|
|
sidekiq-unique-jobs (7.1.27)
|
2021-03-22 15:35:46 +09:00
|
|
|
brpoplpush-redis_script (> 0.1.1, <= 2.0.0)
|
2019-01-14 18:18:55 +09:00
|
|
|
concurrent-ruby (~> 1.0, >= 1.0.5)
|
2021-09-29 22:00:52 +09:00
|
|
|
sidekiq (>= 5.0, < 8.0)
|
|
|
|
thor (>= 0.20, < 3.0)
|
2022-06-03 12:53:13 +09:00
|
|
|
simple-navigation (4.4.0)
|
2016-12-13 21:42:10 +09:00
|
|
|
activesupport (>= 2.3.2)
|
2021-02-19 18:09:30 +09:00
|
|
|
simple_form (5.1.0)
|
|
|
|
actionpack (>= 5.2)
|
|
|
|
activemodel (>= 5.2)
|
2021-01-17 01:06:28 +09:00
|
|
|
simplecov (0.21.2)
|
2018-04-23 18:29:17 +09:00
|
|
|
docile (~> 1.1)
|
2020-02-18 02:27:19 +09:00
|
|
|
simplecov-html (~> 0.11)
|
2020-12-29 23:40:35 +09:00
|
|
|
simplecov_json_formatter (~> 0.1)
|
2020-09-29 04:11:43 +09:00
|
|
|
simplecov-html (0.12.3)
|
2020-12-29 23:40:35 +09:00
|
|
|
simplecov_json_formatter (0.1.2)
|
2022-04-08 20:14:50 +09:00
|
|
|
smart_properties (1.17.0)
|
2018-06-20 22:22:37 +09:00
|
|
|
sprockets (3.7.2)
|
2016-02-21 06:53:20 +09:00
|
|
|
concurrent-ruby (~> 1.0)
|
|
|
|
rack (> 1, < 3)
|
2021-12-21 09:22:27 +09:00
|
|
|
sprockets-rails (3.4.2)
|
2021-11-18 09:06:40 +09:00
|
|
|
actionpack (>= 5.2)
|
|
|
|
activesupport (>= 5.2)
|
2016-02-21 06:53:20 +09:00
|
|
|
sprockets (>= 3.0.0)
|
2021-03-05 06:38:52 +09:00
|
|
|
sshkit (1.21.2)
|
2017-01-31 04:03:17 +09:00
|
|
|
net-scp (>= 1.1.2)
|
|
|
|
net-ssh (>= 2.8.0)
|
2022-07-30 01:24:30 +09:00
|
|
|
stackprof (0.2.20)
|
2021-03-24 18:44:31 +09:00
|
|
|
statsd-ruby (1.5.0)
|
2022-05-04 22:33:19 +09:00
|
|
|
stoplight (3.0.0)
|
2022-02-15 00:08:23 +09:00
|
|
|
strong_migrations (0.7.9)
|
|
|
|
activerecord (>= 5)
|
2022-04-08 13:44:40 +09:00
|
|
|
swd (1.3.0)
|
2022-03-09 20:07:35 +09:00
|
|
|
activesupport (>= 3)
|
|
|
|
attr_required (>= 0.0.5)
|
|
|
|
httpclient (>= 2.4)
|
2020-01-05 06:48:57 +09:00
|
|
|
temple (0.8.2)
|
2021-11-13 18:34:28 +09:00
|
|
|
terminal-table (3.0.2)
|
|
|
|
unicode-display_width (>= 1.1.1, < 3)
|
2018-03-24 20:52:45 +09:00
|
|
|
terrapin (0.6.0)
|
|
|
|
climate_control (>= 0.0.3, < 1.0)
|
2022-01-19 11:07:37 +09:00
|
|
|
thor (1.2.1)
|
2020-01-05 06:48:57 +09:00
|
|
|
tilt (2.0.10)
|
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>
2020-08-24 23:46:27 +09:00
|
|
|
tpm-key_attestation (0.9.0)
|
|
|
|
bindata (~> 2.4)
|
|
|
|
openssl-signature_algorithm (~> 0.4.0)
|
2020-12-30 00:08:23 +09:00
|
|
|
tty-color (0.6.0)
|
2020-04-01 10:02:24 +09:00
|
|
|
tty-cursor (0.7.1)
|
2021-04-19 22:34:09 +09:00
|
|
|
tty-prompt (0.23.1)
|
2020-07-29 00:51:15 +09:00
|
|
|
pastel (~> 0.8)
|
|
|
|
tty-reader (~> 0.8)
|
2020-12-30 00:08:23 +09:00
|
|
|
tty-reader (0.9.0)
|
2019-05-29 11:10:24 +09:00
|
|
|
tty-cursor (~> 0.7)
|
2020-07-29 00:51:15 +09:00
|
|
|
tty-screen (~> 0.8)
|
|
|
|
wisper (~> 2.0)
|
2020-07-28 02:37:07 +09:00
|
|
|
tty-screen (0.8.1)
|
2021-03-02 20:02:56 +09:00
|
|
|
twitter-text (3.1.0)
|
|
|
|
idn-ruby
|
2017-02-23 03:35:11 +09:00
|
|
|
unf (~> 0.1.0)
|
2022-07-30 01:39:38 +09:00
|
|
|
tzinfo (2.0.5)
|
2021-03-24 18:44:31 +09:00
|
|
|
concurrent-ruby (~> 1.0)
|
2022-03-22 11:30:32 +09:00
|
|
|
tzinfo-data (1.2022.1)
|
2017-04-03 07:46:44 +09:00
|
|
|
tzinfo (>= 1.0.0)
|
2016-02-21 06:53:20 +09:00
|
|
|
unf (0.1.4)
|
|
|
|
unf_ext
|
2022-06-27 20:54:46 +09:00
|
|
|
unf_ext (0.0.8.2)
|
2021-11-13 18:34:28 +09:00
|
|
|
unicode-display_width (2.1.0)
|
2022-06-19 14:42:43 +09:00
|
|
|
uniform_notifier (1.16.0)
|
2022-03-09 20:07:35 +09:00
|
|
|
validate_email (0.1.6)
|
|
|
|
activemodel (>= 3.0)
|
|
|
|
mail (>= 2.2.5)
|
2022-07-06 09:44:02 +09:00
|
|
|
validate_url (1.0.15)
|
2022-03-09 20:07:35 +09:00
|
|
|
activemodel (>= 3.0.0)
|
|
|
|
public_suffix
|
2020-09-08 05:10:49 +09:00
|
|
|
warden (1.2.9)
|
|
|
|
rack (>= 2.0.9)
|
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>
2020-08-24 23:46:27 +09:00
|
|
|
webauthn (3.0.0.alpha1)
|
|
|
|
android_key_attestation (~> 0.3.0)
|
|
|
|
awrence (~> 1.1)
|
|
|
|
bindata (~> 2.4)
|
|
|
|
cbor (~> 0.5.9)
|
|
|
|
cose (~> 1.0)
|
|
|
|
openssl (~> 2.0)
|
|
|
|
safety_net_attestation (~> 0.4.0)
|
|
|
|
securecompare (~> 1.0)
|
|
|
|
tpm-key_attestation (~> 0.9.0)
|
2022-04-08 13:44:40 +09:00
|
|
|
webfinger (1.2.0)
|
2022-03-09 20:07:35 +09:00
|
|
|
activesupport
|
|
|
|
httpclient (>= 2.4)
|
2021-08-17 12:49:00 +09:00
|
|
|
webmock (3.14.0)
|
|
|
|
addressable (>= 2.8.0)
|
2016-02-29 05:22:56 +09:00
|
|
|
crack (>= 0.3.2)
|
2019-06-17 21:17:45 +09:00
|
|
|
hashdiff (>= 0.4.0, < 2.0.0)
|
2021-09-29 22:02:20 +09:00
|
|
|
webpacker (5.4.3)
|
2020-05-09 00:52:54 +09:00
|
|
|
activesupport (>= 5.2)
|
2017-09-27 21:41:54 +09:00
|
|
|
rack-proxy (>= 0.6.1)
|
2020-05-09 00:52:54 +09:00
|
|
|
railties (>= 5.2)
|
|
|
|
semantic_range (>= 2.3.0)
|
2019-09-14 17:36:10 +09:00
|
|
|
webpush (0.3.8)
|
2017-07-14 05:15:32 +09:00
|
|
|
hkdf (~> 0.2)
|
2017-12-04 00:55:27 +09:00
|
|
|
jwt (~> 2.0)
|
2021-07-04 05:07:32 +09:00
|
|
|
websocket-driver (0.7.5)
|
2016-08-18 00:56:23 +09:00
|
|
|
websocket-extensions (>= 0.1.0)
|
2020-06-06 06:56:06 +09:00
|
|
|
websocket-extensions (0.1.5)
|
2019-12-02 22:58:07 +09:00
|
|
|
wisper (2.0.1)
|
Add follower synchronization mechanism (#14510)
* Add support for followers synchronization on the receiving end
Check the `collectionSynchronization` attribute on `Create` and `Announce`
activities and synchronize followers from provided collection if possible.
* Add tests for followers synchronization on the receiving end
* Add support for follower synchronization on the sender's end
* Add tests for the sending end
* Switch from AS attributes to HTTP header
Replace the custom `collectionSynchronization` ActivityStreams attribute by
an HTTP header (`X-AS-Collection-Synchronization`) with the same syntax as
the `Signature` header and the following fields:
- `collectionId` to specify which collection to synchronize
- `digest` for the SHA256 hex-digest of the list of followers known on the
receiving instance (where “receiving instance” is determined by accounts
sharing the same host name for their ActivityPub actor `id`)
- `url` of a collection that should be fetched by the instance actor
Internally, move away from the webfinger-based `domain` attribute and use
account `uri` prefix to group accounts.
* Add environment variable to disable followers synchronization
Since the whole mechanism relies on some new preconditions that, in some
extremely rare cases, might not be met, add an environment variable
(DISABLE_FOLLOWERS_SYNCHRONIZATION) to disable the mechanism altogether and
avoid followers being incorrectly removed.
The current conditions are:
1. all managed accounts' actor `id` and inbox URL have the same URI scheme and
netloc.
2. all accounts whose actor `id` or inbox URL share the same URI scheme and
netloc as a managed account must be managed by the same Mastodon instance
as well.
As far as Mastodon is concerned, breaking those preconditions require extensive
configuration changes in the reverse proxy and might also cause other issues.
Therefore, this environment variable provides a way out for people with highly
unusual configurations, and can be safely ignored for the overwhelming majority
of Mastodon administrators.
* Only set follower synchronization header on non-public statuses
This is to avoid unnecessary computations and allow Follow-related
activities to be handled by the usual codepath instead of going through
the synchronization mechanism (otherwise, any Follow/Undo/Accept activity
would trigger the synchronization mechanism even if processing the activity
itself would be enough to re-introduce synchronization)
* Change how ActivityPub::SynchronizeFollowersService handles follow requests
If the remote lists a local follower which we only know has sent a follow
request, consider the follow request as accepted instead of sending an Undo.
* Integrate review feeback
- rename X-AS-Collection-Synchronization to Collection-Synchronization
- various minor refactoring and code style changes
* Only select required fields when computing followers_hash
* Use actor URI rather than webfinger domain in synchronization endpoint
* Change hash computation to be a XOR of individual hashes
Makes it much easier to be memory-efficient, and avoid sorting discrepancy issues.
* Marginally improve followers_hash computation speed
* Further improve hash computation performances by using pluck_each
2020-10-22 01:04:09 +09:00
|
|
|
xorcist (1.1.2)
|
2018-10-24 23:22:18 +09:00
|
|
|
xpath (3.2.0)
|
2018-04-12 21:45:17 +09:00
|
|
|
nokogiri (~> 1.8)
|
2022-06-19 14:42:02 +09:00
|
|
|
zeitwerk (2.6.0)
|
2016-02-21 06:53:20 +09:00
|
|
|
|
|
|
|
PLATFORMS
|
|
|
|
ruby
|
|
|
|
|
|
|
|
DEPENDENCIES
|
2017-07-07 11:02:06 +09:00
|
|
|
active_model_serializers (~> 0.10)
|
2020-10-22 12:11:20 +09:00
|
|
|
active_record_query_trace (~> 1.8)
|
2021-07-08 14:35:20 +09:00
|
|
|
addressable (~> 2.8)
|
2022-02-13 08:04:32 +09:00
|
|
|
annotate (~> 3.2)
|
2022-05-12 10:42:52 +09:00
|
|
|
aws-sdk-s3 (~> 1.114)
|
2020-11-10 23:11:15 +09:00
|
|
|
better_errors (~> 2.9)
|
2021-01-07 14:10:49 +09:00
|
|
|
binding_of_caller (~> 1.0)
|
2019-04-27 10:24:09 +09:00
|
|
|
blurhash (~> 0.1)
|
2022-07-30 01:29:43 +09:00
|
|
|
bootsnap (~> 1.13.0)
|
2021-12-21 09:37:25 +09:00
|
|
|
brakeman (~> 5.2)
|
2017-06-25 23:54:30 +09:00
|
|
|
browser
|
2021-12-21 10:58:59 +09:00
|
|
|
bullet (~> 7.0)
|
2021-09-19 14:44:27 +09:00
|
|
|
bundler-audit (~> 0.9)
|
2022-03-29 18:49:00 +09:00
|
|
|
capistrano (~> 3.17)
|
2020-07-28 12:24:53 +09:00
|
|
|
capistrano-rails (~> 1.6)
|
2020-07-28 03:24:09 +09:00
|
|
|
capistrano-rbenv (~> 2.2)
|
2017-05-11 18:27:01 +09:00
|
|
|
capistrano-yarn (~> 2.0)
|
2022-05-11 04:01:16 +09:00
|
|
|
capybara (~> 3.37)
|
2019-11-27 11:53:50 +09:00
|
|
|
charlock_holmes (~> 0.7.7)
|
2021-11-19 06:02:08 +09:00
|
|
|
chewy (~> 7.2)
|
2017-06-01 00:09:17 +09:00
|
|
|
climate_control (~> 0.2)
|
Revamp post filtering system (#18058)
* Add model for custom filter keywords
* Use CustomFilterKeyword internally
Does not change the API
* Fix /filters/edit and /filters/new
* Add migration tests
* Remove whole_word column from custom_filters (covered by custom_filter_keywords)
* Redesign /filters
Instead of a list, present a card that displays more information and handles
multiple keywords per filter.
* Redesign /filters/new and /filters/edit to add and remove keywords
This adds a new gem dependency: cocoon, as well as a npm dependency:
cocoon-js-vanilla. Those are used to easily populate and remove form fields
from the user interface when manipulating multiple keyword filters at once.
* Add /api/v2/filters to edit filter with multiple keywords
Entities:
- `Filter`: `id`, `title`, `filter_action` (either `hide` or `warn`), `context`
`keywords`
- `FilterKeyword`: `id`, `keyword`, `whole_word`
API endpoits:
- `GET /api/v2/filters` to list filters (including keywords)
- `POST /api/v2/filters` to create a new filter
`keywords_attributes` can also be passed to create keywords in one request
- `GET /api/v2/filters/:id` to read a particular filter
- `PUT /api/v2/filters/:id` to update a new filter
`keywords_attributes` can also be passed to edit, delete or add keywords in
one request
- `DELETE /api/v2/filters/:id` to delete a particular filter
- `GET /api/v2/filters/:id/keywords` to list keywords for a filter
- `POST /api/v2/filters/:filter_id/keywords/:id` to add a new keyword to a
filter
- `GET /api/v2/filter_keywords/:id` to read a particular keyword
- `PUT /api/v2/filter_keywords/:id` to edit a particular keyword
- `DELETE /api/v2/filter_keywords/:id` to delete a particular keyword
* Change from `irreversible` boolean to `action` enum
* Remove irrelevent `irreversible_must_be_within_context` check
* Fix /filters/new and /filters/edit with update for filter_action
* Fix Rubocop/Codeclimate complaining about task names
* Refactor FeedManager#phrase_filtered?
This moves regexp building and filter caching to the `CustomFilter` class.
This does not change the functional behavior yet, but this changes how the
cache is built, doing per-custom_filter regexps so that filters can be matched
independently, while still offering caching.
* Perform server-side filtering and output result in REST API
* Fix numerous filters_changed events being sent when editing multiple keywords at once
* Add some tests
* Use the new API in the WebUI
- use client-side logic for filters we have fetched rules for.
This is so that filter changes can be retroactively applied without
reloading the UI.
- use server-side logic for filters we haven't fetched rules for yet
(e.g. network error, or initial timeline loading)
* Minor optimizations and refactoring
* Perform server-side filtering on the streaming server
* Change the wording of filter action labels
* Fix issues pointed out by linter
* Change design of “Show anyway” link in accordence to review comments
* Drop “irreversible” filtering behavior
* Move /api/v2/filter_keywords to /api/v1/filters/keywords
* Rename `filter_results` attribute to `filtered`
* Rename REST::LegacyFilterSerializer to REST::V1::FilterSerializer
* Fix systemChannelId value in streaming server
* Simplify code by removing client-side filtering code
The simplifcation comes at a cost though: filters aren't retroactively
applied anymore.
2022-06-28 16:42:13 +09:00
|
|
|
cocoon (~> 1.2)
|
2020-07-06 01:28:25 +09:00
|
|
|
color_diff (~> 0.1)
|
2019-01-15 17:24:35 +09:00
|
|
|
concurrent-ruby
|
2019-07-02 07:34:38 +09:00
|
|
|
connection_pool
|
2021-05-07 12:27:58 +09:00
|
|
|
devise (~> 4.8)
|
2021-04-10 18:50:41 +09:00
|
|
|
devise-two-factor (~> 4.0)
|
2018-09-15 00:42:45 +09:00
|
|
|
devise_pam_authenticatable2 (~> 9.2)
|
2020-03-26 06:48:52 +09:00
|
|
|
discard (~> 1.2)
|
2021-02-24 06:58:39 +09:00
|
|
|
doorkeeper (~> 5.5)
|
2022-07-30 01:39:38 +09:00
|
|
|
dotenv-rails (~> 2.8)
|
2022-01-19 11:04:11 +09:00
|
|
|
ed25519 (~> 1.3)
|
2022-07-30 01:27:12 +09:00
|
|
|
fabrication (~> 2.30)
|
2022-07-30 01:16:28 +09:00
|
|
|
faker (~> 2.22)
|
2017-05-11 18:27:01 +09:00
|
|
|
fast_blank (~> 1.0)
|
2018-02-21 11:40:12 +09:00
|
|
|
fastimage
|
2018-10-22 23:58:36 +09:00
|
|
|
fog-core (<= 2.1.0)
|
|
|
|
fog-openstack (~> 0.3)
|
2019-11-11 22:05:16 +09:00
|
|
|
fuubar (~> 2.5)
|
2022-07-06 09:44:02 +09:00
|
|
|
gitlab-omniauth-openid-connect (~> 0.10.0)
|
2017-05-11 18:27:01 +09:00
|
|
|
hamlit-rails (~> 0.2)
|
|
|
|
hiredis (~> 0.6)
|
|
|
|
htmlentities (~> 4.3)
|
2022-06-27 20:54:46 +09:00
|
|
|
http (~> 5.1)
|
2017-05-11 18:27:01 +09:00
|
|
|
http_accept_language (~> 2.1)
|
2021-05-29 09:17:23 +09:00
|
|
|
httplog (~> 1.5.0)
|
2022-04-08 20:14:50 +09:00
|
|
|
i18n-tasks (~> 1.0)
|
2017-07-16 00:24:35 +09:00
|
|
|
idn-ruby
|
2020-01-14 03:01:43 +09:00
|
|
|
json-ld
|
2022-01-25 21:23:42 +09:00
|
|
|
json-ld-preloaded (~> 3.2)
|
2020-05-04 20:53:42 +09:00
|
|
|
kaminari (~> 1.2)
|
2022-02-13 20:21:09 +09:00
|
|
|
kt-paperclip (~> 7.1)
|
2022-03-22 11:30:45 +09:00
|
|
|
letter_opener (~> 1.8)
|
2021-11-18 09:20:31 +09:00
|
|
|
letter_opener_web (~> 2.0)
|
2017-05-11 18:27:01 +09:00
|
|
|
link_header (~> 0.0)
|
2022-04-08 13:40:05 +09:00
|
|
|
lograge (~> 0.12)
|
2021-01-23 23:25:08 +09:00
|
|
|
makara (~> 0.5)
|
2017-07-19 21:44:04 +09:00
|
|
|
mario-redis-lock (~> 1.2)
|
2018-02-22 07:21:32 +09:00
|
|
|
memory_profiler
|
2022-05-29 22:28:07 +09:00
|
|
|
microformats (~> 4.4)
|
2021-11-18 09:44:08 +09:00
|
|
|
mime-types (~> 3.4.1)
|
2020-12-29 23:32:37 +09:00
|
|
|
net-ldap (~> 0.17)
|
2022-01-19 11:06:17 +09:00
|
|
|
nokogiri (~> 1.13)
|
2021-04-13 10:45:45 +09:00
|
|
|
nsa (~> 0.2)
|
2021-08-17 13:58:07 +09:00
|
|
|
oj (~> 3.13)
|
2018-12-17 18:15:14 +09:00
|
|
|
omniauth (~> 1.9)
|
2020-11-20 01:43:58 +09:00
|
|
|
omniauth-cas (~> 2.0)
|
2020-11-28 13:17:53 +09:00
|
|
|
omniauth-rails_csrf_protection (~> 0.1)
|
2018-03-02 10:32:08 +09:00
|
|
|
omniauth-saml (~> 1.10)
|
2020-12-30 00:08:06 +09:00
|
|
|
ox (~> 2.14)
|
2019-07-27 11:42:08 +09:00
|
|
|
parslet
|
2022-06-27 20:55:18 +09:00
|
|
|
pg (~> 1.4)
|
2021-03-15 16:09:47 +09:00
|
|
|
pghero (~> 2.8)
|
2019-10-28 20:48:08 +09:00
|
|
|
pkg-config (~> 1.4)
|
2020-07-29 00:59:29 +09:00
|
|
|
posix-spawn
|
2018-01-16 11:29:11 +09:00
|
|
|
premailer-rails
|
2018-09-21 07:42:59 +09:00
|
|
|
private_address_check (~> 0.5)
|
2020-05-09 01:52:57 +09:00
|
|
|
pry-byebug (~> 3.9)
|
2017-05-11 18:27:01 +09:00
|
|
|
pry-rails (~> 0.3)
|
2022-02-10 23:09:06 +09:00
|
|
|
puma (~> 5.6)
|
2022-02-19 13:30:06 +09:00
|
|
|
pundit (~> 2.2)
|
2022-07-06 09:54:41 +09:00
|
|
|
rack (~> 2.2.4)
|
2022-03-12 17:23:53 +09:00
|
|
|
rack-attack (~> 6.6)
|
2019-11-27 11:59:57 +09:00
|
|
|
rack-cors (~> 1.1)
|
2022-05-12 10:54:27 +09:00
|
|
|
rails (~> 6.1.6)
|
2017-05-11 18:27:01 +09:00
|
|
|
rails-controller-testing (~> 1.0)
|
2021-03-24 18:44:31 +09:00
|
|
|
rails-i18n (~> 6.0)
|
2017-05-11 18:27:01 +09:00
|
|
|
rails-settings-cached (~> 0.6)
|
2022-01-27 20:25:18 +09:00
|
|
|
rdf-normalize (~> 0.5)
|
2021-10-20 09:49:36 +09:00
|
|
|
redis (~> 4.5)
|
2020-08-25 20:57:44 +09:00
|
|
|
redis-namespace (~> 1.8)
|
2021-11-19 05:59:57 +09:00
|
|
|
rexml (~> 3.2)
|
2021-08-31 20:58:34 +09:00
|
|
|
rqrcode (~> 2.1)
|
2022-02-13 08:00:26 +09:00
|
|
|
rspec-rails (~> 5.1)
|
2020-06-25 17:47:34 +09:00
|
|
|
rspec-sidekiq (~> 3.1)
|
2022-01-06 10:35:42 +09:00
|
|
|
rspec_junit_formatter (~> 0.5)
|
2022-06-03 12:50:53 +09:00
|
|
|
rubocop (~> 1.30)
|
2022-06-19 14:43:21 +09:00
|
|
|
rubocop-rails (~> 2.15)
|
2021-01-05 02:10:33 +09:00
|
|
|
ruby-progressbar (~> 1.11)
|
2021-08-10 03:46:57 +09:00
|
|
|
sanitize (~> 6.0)
|
2022-02-16 19:18:09 +09:00
|
|
|
scenic (~> 1.6)
|
2022-07-06 09:11:00 +09:00
|
|
|
sidekiq (~> 6.5)
|
2018-11-22 20:47:36 +09:00
|
|
|
sidekiq-bulk (~> 0.2.0)
|
2022-05-04 22:47:05 +09:00
|
|
|
sidekiq-scheduler (~> 4.0)
|
2021-07-01 00:45:49 +09:00
|
|
|
sidekiq-unique-jobs (~> 7.1)
|
2022-06-03 12:53:13 +09:00
|
|
|
simple-navigation (~> 4.4)
|
2021-02-19 18:09:30 +09:00
|
|
|
simple_form (~> 5.1)
|
2021-01-05 02:10:10 +09:00
|
|
|
simplecov (~> 0.21)
|
2020-01-05 10:25:07 +09:00
|
|
|
sprockets (~> 3.7.2)
|
2021-11-18 09:06:40 +09:00
|
|
|
sprockets-rails (~> 3.4)
|
2018-05-03 01:58:48 +09:00
|
|
|
stackprof
|
2022-05-04 22:33:19 +09:00
|
|
|
stoplight (~> 3.0.0)
|
2022-02-15 00:08:23 +09:00
|
|
|
strong_migrations (~> 0.7)
|
2022-01-19 11:07:37 +09:00
|
|
|
thor (~> 1.2)
|
2020-12-30 00:08:23 +09:00
|
|
|
tty-prompt (~> 0.23)
|
2021-03-02 20:02:56 +09:00
|
|
|
twitter-text (~> 3.1.0)
|
2022-03-22 11:30:32 +09:00
|
|
|
tzinfo-data (~> 1.2022)
|
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>
2020-08-24 23:46:27 +09:00
|
|
|
webauthn (~> 3.0.0.alpha1)
|
2021-08-17 12:49:00 +09:00
|
|
|
webmock (~> 3.14)
|
2021-05-27 17:48:18 +09:00
|
|
|
webpacker (~> 5.4)
|
2021-04-12 21:25:34 +09:00
|
|
|
webpush (~> 0.3)
|
Add follower synchronization mechanism (#14510)
* Add support for followers synchronization on the receiving end
Check the `collectionSynchronization` attribute on `Create` and `Announce`
activities and synchronize followers from provided collection if possible.
* Add tests for followers synchronization on the receiving end
* Add support for follower synchronization on the sender's end
* Add tests for the sending end
* Switch from AS attributes to HTTP header
Replace the custom `collectionSynchronization` ActivityStreams attribute by
an HTTP header (`X-AS-Collection-Synchronization`) with the same syntax as
the `Signature` header and the following fields:
- `collectionId` to specify which collection to synchronize
- `digest` for the SHA256 hex-digest of the list of followers known on the
receiving instance (where “receiving instance” is determined by accounts
sharing the same host name for their ActivityPub actor `id`)
- `url` of a collection that should be fetched by the instance actor
Internally, move away from the webfinger-based `domain` attribute and use
account `uri` prefix to group accounts.
* Add environment variable to disable followers synchronization
Since the whole mechanism relies on some new preconditions that, in some
extremely rare cases, might not be met, add an environment variable
(DISABLE_FOLLOWERS_SYNCHRONIZATION) to disable the mechanism altogether and
avoid followers being incorrectly removed.
The current conditions are:
1. all managed accounts' actor `id` and inbox URL have the same URI scheme and
netloc.
2. all accounts whose actor `id` or inbox URL share the same URI scheme and
netloc as a managed account must be managed by the same Mastodon instance
as well.
As far as Mastodon is concerned, breaking those preconditions require extensive
configuration changes in the reverse proxy and might also cause other issues.
Therefore, this environment variable provides a way out for people with highly
unusual configurations, and can be safely ignored for the overwhelming majority
of Mastodon administrators.
* Only set follower synchronization header on non-public statuses
This is to avoid unnecessary computations and allow Follow-related
activities to be handled by the usual codepath instead of going through
the synchronization mechanism (otherwise, any Follow/Undo/Accept activity
would trigger the synchronization mechanism even if processing the activity
itself would be enough to re-introduce synchronization)
* Change how ActivityPub::SynchronizeFollowersService handles follow requests
If the remote lists a local follower which we only know has sent a follow
request, consider the follow request as accepted instead of sending an Undo.
* Integrate review feeback
- rename X-AS-Collection-Synchronization to Collection-Synchronization
- various minor refactoring and code style changes
* Only select required fields when computing followers_hash
* Use actor URI rather than webfinger domain in synchronization endpoint
* Change hash computation to be a XOR of individual hashes
Makes it much easier to be memory-efficient, and avoid sorting discrepancy issues.
* Marginally improve followers_hash computation speed
* Further improve hash computation performances by using pluck_each
2020-10-22 01:04:09 +09:00
|
|
|
xorcist (~> 1.1)
|