# Monitor Assured Workloads frameworks

*Applicable only for [Assured Workloads frameworks](https://docs.cloud.google.com/assured-workloads/docs/frameworks-overview.md.txt)*

Assured Workloads actively monitors your framework deployments for
compliance violations by comparing a deployed
[data boundary's](https://docs.cloud.google.com/assured-workloads/docs/frameworks-overview.md.txt#data-boundaries)
requirements to the folder or project to which it's assigned. When your folder
or project drifts from one or more of the data boundary's cloud control
requirements, a violation occurs. Violation types include the following:

- **Location** : When a child resource in an assigned folder or project is deployed to a non-compliant location, a violation occurs. This violation can occur by modifying a default value for the *Restrict Resource Locations* cloud control for a given framework, which is mapped to the [`gcp.resourceLocations`](https://docs.cloud.google.com/resource-manager/docs/organization-policy/defining-locations) organization policy constraint.
- **Service usage** : When a non-compliant service endpoint (such as `compute.googleapis.com`) is enabled on an assigned folder or project, a violation occurs. This violation can occur if you modify the default value for the *Restrict Service Usage* cloud control for a given framework, which is mapped to the [`gcp.restrictServiceUsage`](https://docs.cloud.google.com/resource-manager/docs/organization-policy/restricting-resources) organization policy constraint.
- **Encryption** : Some data boundaries require [Customer-managed encryption keys](https://docs.cloud.google.com/kms/docs/cmek.md.txt) set to a specific set of service endpoints. To enforce this requirement, the *Enforce CMEK for Supported Services* cloud control is applied. If you add non-compliant services or remove existing or required services from this cloud control, a violation occurs. This violation is mapped to the [`gcp.restrictNonCmekServices`](https://docs.cloud.google.com/kms/docs/cmek-org-policy.md.txt#require-cmek) organization policy constraint.
- **Access** : Some data boundaries require [Access Approval](https://docs.cloud.google.com/assured-workloads/access-approval) or [Access Transparency](https://docs.cloud.google.com/assured-workloads/access-transparency), which together help you authorize requests from Google personnel to access Customer Data and determine when and why such data was accessed. When you modify these cloud controls, for example, by changing the default values for the *Enable Access Transparency* cloud control, you can cause a violation to occur.
- **Configuration**: Changing a cloud control value to a non-compliant value can cause a violation to occur.

When a violation occurs, you can resolve it or create exceptions for it where
appropriate. A violation can have one of three statuses:

- **Active** or **Unresolved:** The violation hasn't been addressed, or was previously granted an exception before non-compliant changes were made on the folder or resource.
- **Resolved:** The violation has been addressed by [following steps to remediate the issue](https://docs.cloud.google.com/assured-workloads/docs/monitor-frameworks.md.txt#resolve).
- **Exception:** The violation has been [granted an exception](https://docs.cloud.google.com/assured-workloads/docs/monitor-frameworks.md.txt#exception), and a business justification has been provided.

Monitoring is automatically enabled when you apply an Assured Workloads framework to
a resource.

## Before you begin


To get the permissions that
you need to monitor frameworks,

ask your administrator to grant you the
following IAM roles:

- To view violations: [Assured Workloads Viewer](https://docs.cloud.google.com/iam/docs/roles-permissions/assuredworkloads.md.txt#assuredworkloads.viewer) (`roles/assuredworkloads.viewer`) on the organization
- To add or acknowledge exceptions: [Assured Workloads Administrator](https://docs.cloud.google.com/iam/docs/roles-permissions/assuredworkloads.md.txt#assuredworkloads.admin) (`roles/assuredworkloads.admin`) on the organization


For more information about granting roles, see [Manage access to projects, folders, and organizations](https://docs.cloud.google.com/iam/docs/granting-changing-revoking-access.md.txt).


You might also be able to get
the required permissions through [custom
roles](https://docs.cloud.google.com/iam/docs/creating-custom-roles) or other [predefined
roles](https://docs.cloud.google.com/iam/docs/roles-overview#predefined).

## View framework compliance summaries and trends

The **Monitoring** page provides an aggregate compliance summary across all
deployed frameworks as well as detailed posture and historical trend views for
each framework.

1. In the Google Cloud console, go to the **Monitoring** page.


   [Go to Monitoring](https://console.cloud.google.com/compliance/monitoring/violations)

   <br />

2. If prompted, select your organization.

3. Click the **Compliance Summary** tab and review the compliance summary
   widgets:

   - **Frameworks:** Displays all deployed frameworks, their **Categories** ,
     the folders or projects in the **Assigned to** column, and the
     **Controls passing** score, which shows the percentage and ratio of
     passing controls out of the total assessed controls.

     > [!NOTE]
     > **Note:** If a framework is assigned across multiple folders, projects, or releases, its compliance score is aggregated across all assignments. A control is counted as **Passing** only if it passes across all assigned scopes and releases. If it fails in any assigned scope or release, it's counted as **Failing** in the aggregate score.

   - **Violations:** Aggregates active violations by **Violations category** ,
     showing counts of **Org policy violations** and **Resource violations** ,
     **Severity** , **Violations class** , and **Affected Framework(s)** . You can
     click the violation counts in any row to open the violations list
     pre-filtered to that category, or click **Go to Violations** to view the
     full inventory of individual violations.

4. To inspect the compliance posture of a specific framework in detail, click
   the framework name in the **Frameworks** table. On the **Framework details**
   page, you can do the following:

   - **View the framework assignment:** The **Assigned Resources** section shows the resources that the framework is assigned to based on the current resource scope.
   - **View the framework releases:** The **Assigned releases** section shows the release version of the current assignment.
   - **Filter by date:** Use the **Date** picker to view the compliance posture snapshot for a specific day, and click **Refresh** to reload the dashboard.
   - **Review passing controls:** The **Controls passing** gauge displays the percentage of assessed controls passing alongside counts of **Passing** , **Failing** , and **Not Assessed** controls. Manual controls are listed as **Not Assessed** and are excluded from the percentage calculation so that they don't lower your compliance score.
   - **Analyze historical trends:** In the **Controls passing over time** chart, use the **Time Period** menu to select **One month** , **Two months** , **Three months** , **Six months** , or **One year** to track whether compliance is steady, improving after remediation, or regressing.
   - **Inspect individual controls and cloud controls:** In the **Overview by Controls** or **Overview by Cloud Controls** table, use the **View by** toggle to switch between **Control** for regulatory controls and **Cloud Control** to view each control's enforcement mode, applied releases, assessment status, and active violation counts. Selecting **Cloud Control** also shows the **Categories** and parent **Controls** mapping, or lists the cloud control as *Independently applied*. Click the violation count for a control to open the violations list filtered to that control, or click any control or cloud control to open a side panel with its status, control type, release, category, configuration parameters, and regulatory details.
   - **Review top violations:** In the **Top violations** table, view active violations aggregated by violation category for the selected framework.

## View violations in your organization

To view specific compliance violations and their details, complete the following
steps:

1. In the Google Cloud console, go to the **Monitoring** page.


   [Go to Monitoring](https://console.cloud.google.com/compliance/monitoring/violations)

   <br />

2. If prompted, select your organization.

3. Click the **Violations** tab. Two tabs are shown:
   **Organization Policy Violations** and **Resource Violations** . If more than
   one unresolved violation exists, the
   icon is active on the tab.

   The **Organization Policy Violations** tab is selected by default. This tab
   displays all unresolved organization policy violations across
   Assured Workloads frameworks folders or projects in the organization.

   The **Resource Violations** tab displays all unresolved violations
   associated with the resource across all Assured Workloads frameworks folders or
   projects in the organization.
4. For either tab, use the **Quick filters** panel to filter by
   **Violation status** , **Violation type** , **Assigned** ,
   **Affected frameworks** , **Org policy control** , or **Resource type**.

5. For either tab, if there are existing violations, click a **Violation ID**
   to see more detailed information.

From the violation details page, you can perform the following tasks:

- In the **Violation overview** section, copy the **Violation ID** and view the
  **Assignment** , **Violation time** , and **Violation status** . For resource
  violations, you can also view the **Project ID** , **Resource name** , and
  **Resource type**.

- In the **Audit log** section, click **View Audit Log** to view the audit log,
  which includes the following:

  - When the violation happened.

  - Which policy was modified to cause the violation and which user made
    that modification.

  - If an exception was granted, which user granted it.

  - Where applicable, view the specific resource that the violation occurred
    on.

- View the affected organization policy.

- In the **Exceptions** section, view and
  [add compliance violation exceptions](https://docs.cloud.google.com/assured-workloads/docs/monitor-frameworks.md.txt#exception). Previous exceptions for
  the resource are listed under **Older exceptions**. These exceptions include
  the user that granted the exception, its user-provided justification, and the
  time it was granted.

  > [!NOTE]
  > **Note:** If any additional non-compliant changes are made beyond the scope of the original exception, a new unresolved violation occurs. Information about the new unresolved violation and its cause is shown on this page.

- In the **Remediation** section, follow the remediation steps to resolve the
  violation.

For organization policy violations, you can also see the following:

- **Affected organization policy** : To view the policy associated with the compliance violation, click **View Policy**.
- **Child resource violations** : Resource-based organization policy violations can cause child resource violations. To view or resolve child resource violations, click the **Violation ID**.

For resource violations, you can also see the following:

- **Parent organization policy violation** : When a parent organization policy violation is the cause of a child resource violation, it needs to be addressed first at the child level. After the child resource violation has been resolved, resolve the parent organization policy violation. To see the violation details, click **View violation**.
- **Other violations**: Any other violations on the specific resource that's causing the resource violation are also listed.

## Resolve violations

To remediate a violation, complete the following steps:

1. In the Google Cloud console, go to the **Monitoring** page.


   [Go to Monitoring](https://console.cloud.google.com/compliance/monitoring/violations)

   <br />

2. If prompted, select your organization.

3. Click the **Violations** tab. Two tabs are shown:
   **Organization Policy Violations** and **Resource Violations** . If more than
   one unresolved violation exists, the
   icon is active on the tab. Click
   the tab for which you want to view violations.

4. Click the **Violation ID** to see more detailed information.

5. In the **Remediation** section, follow the instructions to address the
   issue.

## Add violation exceptions

Sometimes a violation might be valid for a particular situation. You can
acknowledge one or more violations by completing the following steps to add an
exception. When you add an exception, your business justification is logged in
Cloud Audit Logs and can't be edited after you submit it.

> [!NOTE]
> **Note:** If you've previously granted a violation exception, its state can change back to **Active** or **Unresolved** if any additional non-compliant changes are made.

1. In the Google Cloud console, go to the **Monitoring** page.


   [Go to Monitoring](https://console.cloud.google.com/compliance/monitoring/violations)

   <br />

2. If prompted, select your organization.

3. Click the **Violations** tab. Two tabs are shown:
   **Organization Policy Violations** and **Resource Violations** . If more than
   one unresolved violation exists, the
   icon is active on the tab.

   The **Organization Policy Violations** tab is selected by default. This tab
   displays all unresolved organization policy violations across
   Assured Workloads frameworks folders or projects in the organization.

   The **Resource Violations** tab displays all unresolved violations
   associated with the resource across all Assured Workloads frameworks folders or
   projects in the organization.

   Click the tab for which you want to view violations.
4. From the list of violations, select the checkboxes for one or more
   violations that you want to add an exception for, and then click
   **Acknowledge** . You can acknowledge up to 100 organization policy
   violations and up to 400 resource violations in a single operation. To add
   an exception for a single violation from its violation details page instead,
   click the **Violation ID** and then click **Add New** in the **Exceptions**
   section.

5. In the **Input business exception here** field, enter a business
   justification for the exception. If you selected more than one violation,
   this exception applies to all of them. For organization policy violations,
   if you want the exception to apply to all child resources, select the
   **Apply to all existing child resource violations** checkbox. Click
   **Confirm**.

The violation status is now set to **Exception**.

## What's next

- Understand the available [frameworks and data boundaries](https://docs.cloud.google.com/assured-workloads/docs/frameworks-overview.md.txt#supported-frameworks) for Assured Workloads.
- Learn which [products are supported](https://docs.cloud.google.com/assured-workloads/docs/supported-products.md.txt) for each data boundary.