Skip to content

Commit 750b003

Browse files
committed
Guardrails enforced check
1 parent 43ed7d9 commit 750b003

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/cody/enterprise/features.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,18 @@ Site administrators can set the duration of access tokens for users connecting C
1010

1111
## Guardrails
1212

13-
<Callout type= "note">Guardrails for public code is currently in Beta and is supported with VS Code and JetBrains IDEs extensions.</Callout>
13+
<Callout type= "note">Guardrails for public code is currently in Beta and is supported with VS Code, JetBrains IDEs extensions and Sourcegraph Web app.</Callout>
1414

1515
Open source attribution guardrails for public code, commonly called copyright guardrails, reduce the exposure to copyrighted code. This involves implementing a verification mechanism within Cody to ensure that any code generated by the platform does not replicate open source code.
1616

1717
Guardrails for public code are available to all Sourcegraph Enterprise instances and are **disabled** by default. You can enable them from the Site configuration section by setting `attribution.enabled` to `true`.
1818

1919
Guardrails don't differentiate between license types. It matches any code snippet that is at least **ten lines** long from the **290,000** indexed open source repositories.
2020

21+
### Guardrails `enforced` check
22+
23+
You can `enforce` a Guardrails check to prevent any matching code from being shown to the user. To do so, site admins need to add `"attribution.mode": "enforced"` in the **Site configuration** setting. This will configure the settings for Cody IDE extensions VS Code (v1.82+) or JetBrains (v7.82+) accordingly and will enforce not to display code until attribution checks have finished.
24+
2125
## Admin controls
2226

2327
<Callout type="note">Admin controls are supported with VS Code and JetBrains IDE extension.</Callout>

0 commit comments

Comments
 (0)