Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add configuration options for upcoming dynamic captcha feature #2610

Merged
merged 3 commits into from
Sep 13, 2024

Conversation

frederikrothenberger
Copy link
Member

@frederikrothenberger frederikrothenberger commented Sep 13, 2024

This PR adds the required configuration options to make the captcha
(on registration) dynamic: once implemented, if the dynamic config is
enabled, the captcha will only be required on unusually high rate of new
registrations.

This PR adds the required configuration options to make the captcha
(on registration) dynamic: once implemented, if the dynamic config is
enabled, the captcha will only be required on unusually high rate of new
registrations.
Copy link
Collaborator

@lmuntaner lmuntaner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good!

I just added a couple of questions.

src/internet_identity/internet_identity.did Outdated Show resolved Hide resolved
@@ -21,7 +21,14 @@ fn should_retain_anchor_on_user_range_change() -> Result<(), CallError> {
time_per_token_ns: 99,
max_tokens: 874,
}),
max_inflight_captchas: Some(456),
captcha_config: Some(CaptchaConfig {
max_unsolved_captchas: 788,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do the numbers mean anything? it was 456 before... I guess they don't, right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it's just different from the default, making sure that the values are not accidentally the same.

@frederikrothenberger frederikrothenberger added this pull request to the merge queue Sep 13, 2024
Merged via the queue into main with commit 43f4a85 Sep 13, 2024
66 checks passed
@frederikrothenberger frederikrothenberger deleted the frederik/captcha_config branch September 13, 2024 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants