Skip to content

Add Spamcheck to GitLab Helm chart

Juliet Wanjohi requested to merge add-spamcheck-to-gitlab into master

What does this MR do?

Add Spamcheck to the gitlab Helm chart.

Closes #2936 (closed)

Testing

  1. Ensure that your development environment is set up for charts development. See the Development environment setup page for instructions.

  2. Clone the GitLab Helm repository, and checkout to the branch for this MR.

git clone git@gitlab.com:gitlab-org/charts/gitlab.git
git checkout <BRANCH_NAME>
  1. From within the branch, run the following Helm commands to install:
helm upgrade \
  --install \
  --namespace tests \
  --create-namespace \
  --set certmanager-issuer.email='me@example.com' \
  --set global.hosts.domain='your.domain.com' \
  --set global.spamcheck.enabled=true \
  --set gitlab.spamcheck.image.tag=2c524472 \
  mr-2241 .
  1. Go to Admin > Settings > Reporting page in the GitLab instance, and update the external spamcheck settings as follows:

    1. Check the Enable Spam Check via external API endpoint checkbox
    2. For URL of the external Spam Check endpoint use grpc://gitlab-spamcheck.default.svc:8001, where default is replaced with the Kubernetes namespace where GitLab is deployed.
    3. Leave the API key field blank

    image

  2. Create a public project in the GitLab instance.

  3. 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 title and description: fifa xxx porn stream fifa xxx porn stream.

  4. See that issue creation has been blocked.

Edited by Juliet Wanjohi

Merge request reports