Building GitLab with GitLab: Web API Fuzz Testing
May 9, 2023Mike Eddington8 min read
Opens about.gitlab.comWhat the post covers
This post details the implementation of Web API Fuzz Testing within GitLab, focusing on the technical challenges and solutions encountered.
- Key contributions include: auto-generating OpenAPI specifications from Grape annotations by adapting the `grape-swagger` gem to handle edge cases like file parameters (WorkhorseFile) and wildcard segments; performance tuning strategies for large APIs, including using multi-CPU runners, excluding slow operations, splitting tests into multiple jobs, and dynamically generating child pipelines; and the process of triaging fuzzing findings, leveraging Postman collections and the GitLab Development Kit for debugging.
More from the AI-Assisted Features in DevSecOps trail
DeepSeek-Reasonix: How a poisoned config can hijack an AI coding agent
When to use SAST versus an LLM security scanner
Critical remote code execution in vm2, a widely used Node.js sandbox library
Critical remote code execution in Serena, a popular MCP coding agent
How GitLab tracks vulnerabilities through refactors and reformatting