CodefaceSecurity & Policy

Security & Policy

Built-in compliance packs, policy modes, and writing your own custom rules.

Updated November 20262 min read

Codeface checks every change against a policy pack before it ships, so risky configurations are caught before they're applied rather than after.

The canvas findings panel showing a blocking SSH-from-anywhere finding and two advisory findings against the AWS CIS pack

Built-in policy packs

Codeface ships CIS-aligned policy packs for each provider, in two strengths:

PackBehavior
Standard (e.g. AWS CIS)Stricter — more findings are treated as blocking
Baseline (e.g. AWS CIS baseline)Lighter touch — more findings are advisory rather than blocking

The same style of pack is available for AWS, Azure, and GCP.

A typical example: a security group open to the entire internet on SSH is always a blocking finding, while a public security group with no specific risky port open is usually advisory — the exact split depends on which pack you choose.

Policy modes

Each environment can run its policy pack in one of three modes:

ModeBehavior
Enforce (default)Blocking findings stop the pull request and the apply
AdvisoryAll findings show as warnings; nothing is ever blocked
OffPolicy checks don't run

Custom policy rules

Beyond the built-in packs, you can write your own rules against resource fields — for example, requiring a specific tag to be set, or a field to equal (or not equal) a given value. Custom rules use simple conditions (equals, does not equal, is set, is not set) rather than a general-purpose policy language.

Where findings show up

Policy findings appear directly on the canvas next to the resource they apply to, and are summarized in a panel so you can see everything outstanding for the current environment at a glance, before you ever open a pull request.

Configuring policy

Open Settings → Policy to choose a pack, set the mode, and manage custom rules for an environment. This requires organisation-settings permission — Admin or Owner on a Business account. See Account Types & Roles.

Previous
Drift Detection
Next
Audit Log