---
name: workload-protection-cbr
title: Protecting Workload Protection resources with context-based restrictions
description: Context-based restrictions give account owners and administrators the ability to define and enforce access restrictions for IBM Cloud&reg; resources based on the context of access requests. Access to IBM Cloud&reg; Security and Compliance Center Workload Protection resources can be controlled with context-based restrictions and identity and access management (IAM) policies.
last-updated: 2026-07-01
---

> ## Documentation Index
> The table of contents for this documentation set is at https://cloud.ibm.com/docs/workload-protection?format=markdown
> The index for all IBM Cloud docs is at: https://cloud.ibm.com/docs/llms.txt
> Use these files to discover more information as needed.

# Protecting Workload Protection resources with context-based restrictions
{: #cbr}

Context-based restrictions give account owners and administrators the ability to define and enforce access restrictions for IBM Cloud&reg; resources based on the context of access requests. Access to IBM Cloud&reg; Security and Compliance Center Workload Protection resources can be controlled with context-based restrictions and identity and access management (IAM) policies.
{: shortdesc}

These restrictions work with traditional IAM policies, which are based on identity, to provide an extra layer of protection. Unlike IAM policies, context-based restrictions don't assign access. Context-based restrictions check that an access request comes from an allowed context that you configure. Since both IAM access and context-based restrictions enforce access, context-based restrictions offer protection even in the face of compromised or mismanaged credentials. For more information, see [What are context-based restrictions](https://cloud.ibm.com/docs/iam?topic=iam-context-restrictions-whatis&format=markdown).

A user must have the Administrator role on the Workload Protection service to create, update, or delete rules. A user must also have either the Editor or Administrator role on the Context-based restrictions service to create, update, or delete network zones. A user with the Viewer role on the Context-based restrictions service can only add network zones to a rule.
{: note}

Any Workload Protection or audit log events generated come from the context-based restrictions service, not Workload Protection. For more information, see [Monitoring context-based restrictions](https://cloud.ibm.com/docs/iam?topic=iam-cbr-monitor&format=markdown).

To get started protecting your Workload Protection resources with context-based restrictions, see the tutorial for [Leveraging context-based restrictions to secure your resources](https://cloud.ibm.com/docs/iam?topic=iam-context-restrictions-tutorial&format=markdown).

To automate the creation and management of context-based restrictions for IBM Cloud&reg; Security and Compliance Center Workload Protection, you can use the [CBR module](https://registry.terraform.io/modules/terraform-ibm-modules/cbr/ibm/latest){: external} from [Terraform IBM Modules](https://cloud.ibm.com/docs/ibm-cloud-provider-for-terraform?topic=ibm-cloud-provider-for-terraform-about-tim&format=markdown). Context-based restrictions allow you to define network zones and rules that control access to your Workload Protection instance based on network location.
{: tip}

## Restrictions
{: #cbr-restrictions}

Consider the following when configuring context-based restrictions:

* Context-based restrictions do not affect connectivity of Workload Protection agents since they do not use IBM Cloud&reg; Identity and Access Management.

* Private connections between agents and Workload Protection can be configured using [private service endpoints](https://cloud.ibm.com/docs/monitoring?topic=monitoring-endpoints&format=markdown).