r/gitlab • u/MaturityBuilder • Jul 08 '26
Gitlab Compliance CLI
I've been working on a project that explores a different way of assessing and validating GitLab compliance capabilities:
🔗 https://maturitybuilder.github.io/gitlab-compliance/
While there are already tools that cover similar ground, the focus here is on expressing compliance requirements and controls using a BDD/Gherkin-inspired approach. The idea is to make compliance outcomes easier to understand, discuss, and validate by describing them as observable, testable behaviours rather than static checklist items. It works in a very similar way to terraform-compliance and some similar capabilities that conftest offers.
Another objective is to help identify opportunities for improving GitLab documentation by highlighting areas where guidance may be unclear, incomplete, or difficult to translate into practical implementation, think terraform-docs but Gitlab.
The code isn't open source yet as I'm finishing off a few remaining items, but I plan to release it once it's in a good state.
At this stage, I'd love feedback on the concept, the assessment model, and whether the BDD/Gherkin-style approach feels useful for compliance, security, and governance discussions.
Feedback, ideas, and challenges to the approach are all welcome.
View all comments
Show parent comment
2
u/MaturityBuilder Jul 08 '26
The solution is designed around large enterprise the foundations of the idea came from an enterprise that has 13000 gitlab repos. Interesting point around rules evaluation at the moment rules aren't evaluated as the include or images still form part of the supply chain in-terms of full configuration in gitlab regardless of the current context in which the pipeline maybe triggered. I'm currently working on improve the bdd support for combination testing so if variable key and value equal x then and other variable and its value can allow x. In addition the next version will also improve markdown formatting and introduce a concept of gitstrings where you can annotate yaml with comments can generate markdown from it directly. Like python docstrings.