Add spamcheck to the package
What does this MR do?
Add spamcheck to the package.
Testing
-
Install package from this MR (Pick the latest from https://dev.gitlab.org/gitlab/omnibus-gitlab/-/pipelines?page=1&scope=all&ref=6259-add-anti-spam-engine).
-
Update
/etc/gitlab/gitlab.rb
to enable spamcheckspamcheck['enable'] = true
-
Run
sudo gitlab-ctl reconfigure
-
Go to Admin > Settings > Reporting page in the GitLab instance, and update the external spamcheck settings as follows:
- Check the
Enable Spam Check via external API endpoint
checkbox - Use
grpc://localhost:8001
as the URL - No need to fill any API key
- Check the
-
Create a project in the GitLab instance.
-
As a different user (who is not a member of the project, and isn't using a gitlab.com email address) create an issue in the project with the following text as subject and description:
fifa xxx porn stream fifa xxx porn stream
. -
See that issue creation has been blocked.
Related issues
Closes #6259 (closed)
Checklist
See Definition of done.
For anything in this list which will not be completed, please provide a reason in the MR discussion
Required
-
Merge Request Title, and Description are up to date, accurate, and descriptive -
MR targeting the appropriate branch -
MR has a green pipeline on GitLab.com -
Pipeline is green on dev.gitlab.org if the change is touching anything besides documentation or internal cookbooks -
trigger-package
has a green pipeline running against latest commit
Expected (please provide an explanation if not completing)
-
Test plan indicating conditions for success has been posted and passes -
[ ] Documentation created/updatedWill happen ingitlab-org/gitlab
and is tracked by gitlab#348514 (closed) -
Tests added -
[ ] Integration tests added to GitLab QAWill be done as part of https://gitlab.com/gitlab-org/quality/team-tasks/-/issues/1095 -
[ ] Equivalent MR/issue for the GitLab Chart openedWill be done as part of gitlab-org/charts/gitlab#2936 (closed)