Create a security policy for ML Model package types by defining rules based on package versions. Use this to enforce security standards, detect risks in ML models, and automate responses such as blocking usage or triggering alerts when unapproved model versions are detected.
- Navigate to Application > Xray > Watches & Policies.
- In the Policies tab, click New Policy.
- Enter a Policy Name.
- (Optional) Add a Description explaining the policy's purpose.
- Under Select Policy Type, select Security, and hit Next.
The Create New Policy Rule window opens. - Enter a Rule Name.
- Under Rule Type, select Package Version.
- From the Select package type menu, select ML Model.
- Add a package name and select a version.
- Under Then, define the policy actions, select Save Rule, and hit Next.
- Under Apply on Scope, select one or more policy watches and hit Save Policy.