Add user abuse metadata fields to spamcheck gRPC requests
What does this MR do and why?
Describe in detail what your merge request does and why.
This MR adds user abuse metadata fields to the spamcheck gRPC requests. These fields will be used to further enhance ML models by training on user features in addition to the spammable text. Training on these features may have applications outside of spamcheck by providing a generalized value for user trust.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Run the spamcheck service locally
docker run --rm -p 8001:8001 registry.gitlab.com/gitlab-org/gl-security/security-engineering/security-automation/spam/spamcheck:1.7.1
- Enable spamcheck in your local GDK instance by navigating to
admin/application_settings/reporting
. - As a regular user (impersonate a non-admin) attempt to create an issue in a public project (i.e.
gitlab-org/gitlab-test
). - You should see logs from the spamcheck service that the issue was checked for spam. There should not be any errors in the spamcheck service logs.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.