Spamcheck anti-spam service
- Tier: Free, Premium, Ultimate
- Offering: GitLab Self-Managed
Spamcheck is available to all tiers, but only on instances using GitLab Enterprise Edition (EE). For licensing reasons, it is not included in the GitLab Community Edition (CE) package. You can migrate from CE to EE.
Spamcheck is an anti-spam engine developed by GitLab originally to combat rising amount of spam in GitLab.com, and later made public to be used in GitLab Self-Managed instances.
Enable Spamcheck
Spamcheck is only available for package-based installations:
Edit
/etc/gitlab/gitlab.rb
and enable Spamcheck:spamcheck['enable'] = true
Reconfigure GitLab:
sudo gitlab-ctl reconfigure
Verify that the new services
spamcheck
andspam-classifier
are up and running:sudo gitlab-ctl status
Configure GitLab to use Spamcheck
- On the left sidebar, at the bottom, select Admin.
- Select Settings > Reporting.
- Expand Spam and Anti-bot Protection.
- Update the Spam Check settings:
- Check the “Enable Spam Check via external API endpoint” checkbox.
- For URL of the external Spam Check endpoint use
grpc://localhost:8001
. - Leave Spam Check API key blank.
- Select Save changes.
In single-node instances, Spamcheck runs over localhost
, and hence is running
in an unauthenticated mode. If on multi-node instances where GitLab runs on one
server and Spamcheck runs on another server listening over a public endpoint, it
is recommended to enforce some sort of authentication using a reverse proxy in
front of the Spamcheck service that can be used along with an API key. One
example would be to use JWT
authentication for this and specifying a bearer
token as the API key.
Native authentication for Spamcheck is in the works.
Running Spamcheck over TLS
Spamcheck service on its own cannot communicate directly over TLS with GitLab.
However, Spamcheck can be deployed behind a reverse proxy which performs TLS
termination. In such a scenario, GitLab can be made to communicate with
Spamcheck over TLS by specifying tls://
scheme for the external Spamcheck URL
instead of grpc://
in the Admin area settings.
Docs
Edit this page to fix an error or add an improvement in a merge request.
Create an issue to suggest an improvement to this page.
Product
Create an issue if there's something you don't like about this feature.
Propose functionality by submitting a feature request.
Feature availability and product trials
View pricing to see all GitLab tiers and features, or to upgrade.
Try GitLab for free with access to all features for 30 days.
Get help
If you didn't find what you were looking for, search the docs.
If you want help with something specific and could use community support, post on the GitLab forum.
For problems setting up or using this feature (depending on your GitLab subscription).
Request support