Configure Rule Extensions
How to configure Snyk Code Rule Extensions from the Group settings in the Snyk Web UI
Last updated
Was this helpful?
How to configure Snyk Code Rule Extensions from the Group settings in the Snyk Web UI
Rule Extensions are managed at the Group level in the Snyk Web UI, under Group settings → Snyk Code. You need the UI access permissions to reach these screens.

Add a custom sanitizer to an existing Snyk Code rule.
Log in to the Snyk Web UI and select your Group.
Navigate to Group settings → Snyk Code → Rule Extensions.
Click Create sanitizer and define the functional attributes:
Sanitizer: Provide the fully qualified name (FQN). Need help identifying your FQN? See the FQN identification guide.
Rule key: Select one or more rules you want this extension to apply to. This is the rule key specified on the Supported rules page.
Sanitization type: Select one of the four ways your function sanitizes data. For more details, see Custom sanitizers.

Define the rule extension outline attributes:
Scope: Choose whether to apply the rule extension to the entire Group or to a subset of Organizations within the Group.
Description (Optional): Add a short description of what the rule extension does.
Status: Specifies how the rule extension is treated after you save it:
Published: The rule extension is live; Snyk applies it starting with the next test.
Draft: Snyk excludes the Rule Extension from tests after you save it. Use this when collaborating with others for review. Once review is complete, change the status to publish it.
Click Save.
You can update attributes such as sanitization type, scope, description, or status. The sanitizer, the rule selections, and the Rule Extension name are not editable.
Log in to the Snyk Web UI and select your Group.
Navigate to Rule Extensions.
Select the horizontal ellipsis and then select Edit.
Click Save.
After you delete a Rule Extension, tests no longer pick it up.
Log in to the Snyk Web UI and select your Group.
Navigate to Rule Extensions.
Select the horizontal ellipsis and then select Delete.
Confirm the deletion.
Last updated
Was this helpful?
Was this helpful?

