Project Description:
This module integrates the CaptchEtat API into Drupal, empowering government websites adhering to DSFR (Digital Services for French Republic) standards with enhanced security measures.
CaptchEtat, a robust solution available through Piste Gouv, provides a distorted CAPTCHA string for the user to copy and serves as a pivotal tool in safeguarding online interactions against automated threats.
Key Features and Benefits:
Enhanced Security: CaptchEtat significantly improves the security posture of government websites by preventing automated bots from accessing sensitive data or submitting unauthorized forms.
DSFR Compliance: By integrating CaptchEtat, Drupal websites can ensure compliance with DSFR standards, which mandate robust security measures for digital services offered by the French government.
User-Friendly CAPTCHA: The CAPTCHA strings generated by CaptchEtat are user-friendly yet effective in distinguishing between human users and bots, enhancing the overall user experience on government websites.
Technical Details:
The CaptchEtat module is implemented as a webform plugin element of type "captchetat," seamlessly integrating with Drupal's webform functionality. Administrators can easily add CaptchEtat CAPTCHAs to their webforms through the intuitive Drupal interface and configure settings to suit their specific security requirements.
Usage Instructions:
For detailed instructions on installing and configuring the CaptchEtat module, please refer to the documentation provided on the project page: CaptchEtat Module Documentation.
Visuals:
Below is a screenshot showcasing the CaptchEtat webform plugin in action:

Project link
| Comment | File | Size | Author |
|---|
Comments
Comment #2
vishal.kadamThank you for applying!
Please read Review process for security advisory coverage: What to expect for more details and Security advisory coverage application checklist to understand what reviewers look for. Tips for ensuring a smooth review gives some hints for a smoother review.
The important notes are the following.
phpcs --standard=Drupal,DrupalPracticeon the project, which alone fixes most of what reviewers would report.To the reviewers
Please read How to review security advisory coverage applications, Application workflow, What to cover in an application review, and Tools to use for reviews.
The important notes are the following.
For new reviewers, I would also suggest to first read In which way the issue queue for coverage applications is different from other project queues.
Comment #3
vishal.kadamComment #4
ewehbe commentedComment #5
ewehbe commentedI am changing the issue priority as per issue priorities.
Comment #6
solideogloria commentedREADME.md does not follow Drupal's template or best practices.
Remove LICENSE.txt, it will be added by drupal.org packaging automatically.
The captchetat.module file does not implement
hook_help().No automated test cases were found, did you consider writing Simpletests or PHPUnit tests? This is not a requirement but encouraged for professional software development.
There are a lot of issues with the JS files.
jquery-captcha.js
MANY Unexpected var, use let or const instead
19:28 error '_getCaptchaStyleName' was used before it was defined
53:22 error '_getInstance' was used before it was defined (there are more lines where this happens)
92:1 Put
options·||·{}on its own line101:20 error '_onLoadScriptsSuccess' was used before it was defined
120:22 error 'NULL' is not defined
All 'var' declarations must be at the top of the function scope
And more. I recommend running ESLint on the JS files.
In addition, while this isn't related to the code itself, that old style of captcha can easily be read and defeated by an AI now. It's basically useless at verifying that someone is a human.
Comment #7
vishal.kadamLICENSE.txt is not a mandatory file, but it can be left, as long as the license is the same used by Drupal core.
Comment #8
ewehbe commentedThank you for this review.
Thank you again for your time, I will change the status to Needs review.
Comment #9
avpadernoThe LICENSE.txt file is added to the package drupal.org automatically creates, but it is still necessary for the repository, although the license for projects hosted on drupal.org cannot be different from the license used for Drupal core.
At the times drupal.org used CVS, the license file was not necessary because a single repository was used for all the projects, including Drupal core, and the license file in the root directory was valid for all the hosted projects. With Git repositories, that is no longer true.
Comment #10
ewehbe commentedThank you @apaderno for this information.
Comment #11
solideogloria commented@apaderno Then I think the PAReview.sh script should be updated. My comment about the LICENSE file is from that script's output.
Comment #12
ewehbe commentedI am changing the issue priority as per issue priorities.
Comment #13
ewehbe commentedI am changing the issue priority as per issue priorities.
Comment #14
avpadernoThank you for your contribution and for your patience with the review process!
I am going to update your account so you can opt into security advisory coverage any project you create, including the projects you already created.
These are some recommended readings to help you with maintainership:
You can find more contributors chatting on Slack or IRC in #drupal-contribute. So, come hang out and stay involved!
Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
I thank the dedicated reviewers as well.
Comment #15
avpadernoComment #16
ewehbe commentedThank you @avpaderno and all the reviewers!