Skip to content

[FF] FF_GLAS_ENABLE_PHP_SUPPORT (beta) SAST rollout

Summary

This issue is to roll out PHP support in GitLab Advanced SAST on production, that is currently behind the FF_GLAS_ENABLE_PHP_SUPPORT feature flag. This is an environment environment variable feature flag that is specified in a CI template.

Note: To disable PHP scanning using GitLab Advanced SAST while enabling it in semgrep-sast, set these project-level CI/CD variables in your project settings (SettingsCI/CDVariables):

Variable 1:

Key: FF_GLAS_ENABLE_PHP_SUPPORT
Value: false

Variable 2:

Key: SAST_EXCLUDED_PATHS
Value: spec, test, tests, tmp, **/*.py, **/*.go, **/*.java, **/*.js, **/*.jsx, **/*.ts, **/*.tsx, **/*.cjs, **/*.mjs, **/*.cs, **/*.rb

The project-level variables have higher precedence and will override the template's default behavior.

Owners

Expectations

What are we expecting to happen?

The GitLab Advanced SAST analyzer will scan PHP files.

What can go wrong and how would we detect it?

Performance degradation - inbound request for help issues.

Rollout Steps

See above.

Rollout on non-production environments

The FF template rollout steps apply specifically to GitLab Rails and do not pertain to rolling out a beta feature flag in an analyzer, as there is no formalized process for that.

Specific rollout on production

See above.

Preparation before global rollout

Global rollout on production

See above.

Release the feature

See above.

Rollback Steps

Disable FF_GLAS_ENABLE_PHP_SUPPORT in the SAST templates.

Edited by Julian Thome