Policy Application
Applying policies
Policies are stored in the project preferences.
The easiest way to manage a small number of policies is to use the web UI.
- Open an existing project in the Phylum UI
- Select
Preferences
- Select
Custom
under theCurrent Project Policy
section - Click
Upload Custom
and select your desired.rego
file- Note: Uploading a new custom policy will replace the current policy, be sure to save your current policy if you do not want to lose it
If you are managing policies for a large number of projects, you may be interested in the get_project_preferences_endpoint
and update_project_preferences_endpoint
API calls.
Updated about 1 month ago