Rate gitlab-org/gitlab's SOX, database, credential and runtime files high
What this changes
gitlab-org/gitlab's rules floor four more kinds of file at high. It is the "Mark sensitive areas as high risk (SOX, DB, Auth, Infra)" line of gitlab-org/gitlab#638236, due 11/14. Today only agents, db/ and the policy and auth library directories carry a floor.
| Kind | Area | What it now owns |
|---|---|---|
| Database | db (existing) |
lib/gitlab/database/, lib/gitlab/background_migration/, lib/gitlab/sql/, keyset pagination, the database workers, services, importers and rake tasks |
| Auth | authz (existing) |
the user model, the application controller, the sessions, passwords, OAuth and OmniAuth controllers, personal access tokens, the token, JWT and encryption helpers, and the services that approve a pending user or a deployment |
| SOX | sensitive (new) |
the six files under [Seat Management] in gitlab-org/gitlab's .gitlab/CODEOWNERS that produce the billed seat count |
| Infra | sensitive (new) |
config/initializers/, config/environments/, the boot, settings, database, Redis, Sidekiq, Puma and object storage configuration, the cron schedules, the Rack and Sidekiq middleware, the Redis and cluster libraries, the two keys a licence is verified with and lib/api/api.rb |
instructions/278964/mr-risk-rules.yml: 15 patterns added todb, 12 toauthz, and a twelfth area,sensitive, with 29.sensitivesits aboveapi, which would otherwise take three of its files. Where a CE file has an EE half, the pattern takes both with braces. Threecodepatterns thatsensitivenow takes are dropped.sensitive.mdis new.db.mdandauthz.mdeach gain a paragraph for what they now own.- The two READMEs say which areas never rate below high and what their patterns start from.
instructions/README.mdalso says that a pattern may use braces.
Only instructions/ changes. The flow reads it from main at run time, so this applies on merge with no release tag.
Why
From Nov 16 a Medium rating lets a maintainer merge on gitlab-bot's approval (gitlab-org/quality/triage-ops!4550 (merged)). gitlab-org/gitlab!269372 (merged) lists paths where [Maintainers] is the only required code owner rule, so the rating is the only thing that keeps them with a person, and proposes as a go/no-go condition that floors cover them. This covers them, except member approvals (see below).
A floor is applied by the flow after the rater answers, so these tiers do not depend on the model.
How a path was chosen
The patterns start from three lists:
- backend code that gitlab-org/gitlab's
.gitlab/CODEOWNERSrequires a named group for under[Database],[Authentication],[Authorization]or the SOX entries of[Seat Management]. They do not take every entry: all six SOX files, nearly all of[Authorization], most of[Database]and under half of[Authentication]land in a floored area. Those sections are required, so a person from the group still approves what the patterns leave; - the list in gitlab-org/gitlab!269372 (merged) of files that issue credentials or approve something;
- runtime configuration: read at boot, or run by every request or job.
What moves
Checked against the 117,395 paths on gitlab-org/gitlab master at e9bda5ac, with the same Manifest the flow runs:
| From | To | Files |
|---|---|---|
code |
db |
755 |
code |
sensitive |
428 |
code |
authz |
77 |
api |
sensitive |
3 |
api |
authz |
1 |
tooling |
sensitive |
2 |
- No file leaves
specs,docs,docs-development,localeordeps, and the two licence keys are all that leavetooling, so the scopes gitlab-bot approves today are untouched. - Every added pattern matches at least one file, and each is the only match for the files it takes.
- The replay in !135 (closed) (the 374 merge requests gitlab-bot approved from 2026-10-28 to 2026-11-11) passed against the first version of this branch with its fixture unchanged.
Merge requests rated since the flow covered the whole project (created from 2026-11-10 16:00 UTC), replayed on their paths against the first version of this branch:
| Label | Merge requests | Would now be high |
|---|---|---|
test-gitlab-bot::risk::medium |
105 | 1 |
test-gitlab-bot::risk::low |
30 | 0 |
- The one is gitlab-org/gitlab!269791 (merged), which changes
ee/app/services/deployments/approval_service.rb. - gitlab-org/gitlab!269258 (merged), from the sample in gitlab-org/gitlab!269372 (merged), changes
config/initializers/gitlab_grape_openapi.rband carried a Medium label. It moves fromcodetosensitive. - The numbers come from the knowledge graph, read-only, which can trail the project by a short while.
For the flow's owner to decide
- One area for two kinds. A rules file holds twelve areas (
Manifest::MAX_AREAS) and this project had eleven, so SOX and runtime configuration sharesensitive. Splitting them intosoxandinfraneeds the cap raised, which is a flow change and a release tag. - Braces in
authz. It had 23 of 40 patterns. The twelve added ones use{,ee/}and{a,b}to stay at 35, and six patterns acrossdb,authzandsensitiveuse{,ee/}to take an EE half. The rest of the file writes each path out. - The SOX list is a second copy. It repeats
[Seat Management]in gitlab-org/gitlab's.gitlab/CODEOWNERS, and nothing holds the two together. Compliance should confirm it against Internal Audit's in-scope list. - A new label scope. The flow creates
test-sensitive-risk::highthe first time it writes it, andsensitive-risk::highonce the project is live.
Not done here
[Application Security],[Compliance](audit events) and[Identity Verification]paths. Each still needs its own code owner, andcode.mdrates a weakened security control high.- Views and front end code under
[Authentication],app/finders/under[Database], and backend code under[Authentication]that no pattern names: they stay withcodeorapi, and their required code owner still approves them. - The application settings model. It changes with every instance setting added, so a floor marked routine settings work high; a setting's migration is in
db. config/sidekiq_queues.yml, which is generated, andconfig/database_change_lock.yml, which holds Danger's merge-lock windows.- Member approvals under
gitlab_subscriptions/member_management/, which gitlab-org/gitlab!269372 (merged) names beside deployment and user approvals. workhorse/.- No
bin/evalsuite covers the MR Risk Labeler's rules, so the rubric text is not scored. It shapes the reason, not the tier.
With the other open merge requests
- Merge this before the tag that carries !136 (merged). Four of the six SOX files are refused by the subject gate today, and !136 (merged) lets them through to be rated. The two licence keys leave the gate with !136 (merged) as well, and are floored here.
- !134 (merged) adds
mode: liveto the top of the same rules file, in a different hunk. - !136 (merged) changes
code.md, and !133 (merged) changesdeps.mdandtooling.md: neither touches a rubric this does. - !132 (merged) also edits
instructions/README.md, in another section. - This changes the rules of a project the flow already runs on, so the catalogue's own rules rate it high and it needs a code owner of
instructions/.
Checks
make check passes: every flow is current, the Ruby lints pass and the specs pass.