Fix 5mb limit for artifact verification

Why are we doing this work

At the moment, there is a hard-limit on artifact of 5mb. PoC repo:

https://gitlab.com/gitlab-org/software-supply-chain-security/capslock-tutorial

Hi team! 
I've been testing the SLSA attestation feature on capslock-tutorial and discovered what appears to be an artifact size limit. I wanted to validate this is expected behavior.
The attestation worker silently skips artifacts that exceed max_artifacts_content_include_size (default: 5 MB) .
Is that correct?

I can see the behaviour you're reporting. Here are the logs for the 4.9mb file https://log.gprd.gitlab.net/app/r/s/1Hco6 and for the 5.1mb file https://log.gprd.gitlab.net/app/r/s/eI8ub

Non-functional requirements

Implementation plan

We should modify the code so that the maximum size we accept is the same as the maximum artifact size. See CI/CD settings.

Verification steps

  • Test locally.
  • Send fix to prod. Verify that the PoC below no longer reproduces.

PoC: Creates attestation/does not create attestation.

Edited by 🤖 GitLab Bot 🤖