Loading...
Loading...
Discover Google Cloud resource telemetry and effective Org Policies, evaluate brownfield workloads against sovereign data boundary and compliance standards (EU Data Boundary with Support, FedRAMP Moderate/High, DoD IL4/IL5, ITAR, CJIS, US/EU Regional Data Boundaries), and recommend the optimal Assured Workloads Framework. Use when asked to: "assess my environment for compliance", "which Assured Workloads framework should I use?", "check if my folder is ready for EU sovereignty", "evaluate compliance posture for folders/123 or projects/xyz", or "discover compliance gaps before deployment". Do NOT use for live mutating policy deployments, generating deep audit reports via Cloud Audit Manager, generating remediation scripts, or authoring custom Assured Workloads frameworks.
npx skill4agent add google/skills assuredworkloads-environment-assessorfolders/{folder_id}projects/{project_id}gcloud asset search-all-resourcesgcloud compliance-manager frameworks listgcloud compliance-manager cloud-controls describegcloud org-policies describe --effectivegcloud compliance-manager framework-deployments creategcloud org-policies set-policygcloud resource-manager ...assuredworkloads.googleapis.com/v1resourceType: CONSUMER_FOLDERfolders/...assuredworkloads.googleapis.com/v2existingFolderexistingProjectenforcementMode: DETECTIVEscripts/evaluate_control_rules.pyFramework.cloudControlDetails[].parametersbuiltin-restrict-resource-locationsconstraints/gcp.resourceLocationsbuiltin-enforce-service-usage-restrictionsconstraints/gcp.restrictServiceUsagebuiltin-require-cmekconstraints/gcp.restrictNonCmekServicesces_rulerest_api_measurementorgPolicyDriftIndicatorstype: BUILT_INgcloud compliance-manager frameworks listframeworks.jsonbuiltin-restrict-technical-support-servicescloudControlDetailsdisplayNamedescriptionbuiltin-restrict-technical-support-servicesbuiltin-us-data-boundarybuiltin-eu-data-boundary-with-access-justificationsframeworks.jsonscripts/evaluate_control_rules.py--frameworks-file=frameworks.jsonscripts/validate_workload_payload.py--frameworks-file=frameworks.jsongcloudgcloud config set project PROJECT_IDus-central1gcloud config set compute/region us-central1globalus-central1gcloud services enable \
cloudasset.googleapis.com \
orgpolicy.googleapis.com \
assuredworkloads.googleapis.com \
cloudsecuritycompliance.googleapis.comgcloud auth login
gcloud auth application-default logingcloud asset search-all-resourcesgcloud compliance-manager frameworks listgcloud org-policies describe --effectiveX-Goog-User-Project# 1. Verify active Cloud Billing account is attached to administrative project
gcloud billing projects describe PROJECT_ID --format="value(billingEnabled)"
# 2. If using a shared project, ensure your user identity has permission to consume project quota
gcloud projects add-iam-policy-binding PROJECT_ID \
--member="user:USER_EMAIL" \
--role="roles/serviceusage.serviceUsageConsumer"
# 3. Synchronize Application Default Credentials quota project
gcloud auth application-default set-quota-project PROJECT_IDfolders/{folder_id}projects/{project_id}gcloud resource-manager folders describe FOLDER_ID --format="value(parent)"organizations/{org_id}gcloud projects get-ancestors PROJECT_ID --format="value(id,type)"gcloud asset search-all-resources \
--scope="folders/FOLDER_ID" \
--page-size=500 \
--format="json(name,assetType,location)" > macro_telemetry.json--page-size=500folders/FOLDER_IDmacro_telemetry.jsonlocationassetTypebuiltin-restrict-resource-locationsallowedLocationsbuiltin-enforce-service-usage-restrictionsallowedServicesPERMISSION_DENIEDUSER_PROJECT_DENIEDroles/serviceusage.serviceUsageConsumerserviceUsageConsumerfolders/...projects/...roles/cloudasset.viewerroles/orgpolicy.policyViewer38/38gcloud org-policies describe gcp.resourceLocations \
--folder=FOLDER_ID \
--effective \
--format="json(name,spec.rules)" > effective_locations.json
gcloud org-policies describe gcp.restrictServiceUsage \
--folder=FOLDER_ID \
--effective \
--format="json(name,spec.rules)" > effective_services.json
gcloud org-policies describe gcp.restrictTLSVersion \
--folder=FOLDER_ID \
--effective \
--format="json(name,spec.rules)" > effective_tls.jsonif [ ! -s frameworks.json ]; then
gcloud compliance-manager frameworks list \
--organization=ORGANIZATION_ID \
--location=global \
--filter="category:ASSURED_WORKLOADS" \
--format="json(name,majorRevisionId,displayName,description,category,cloudControlDetails)" > frameworks.json
fiASSURED_WORKLOADSframeworks.jsoncloudresourcemanager.googleapis.com/*orgpolicy.googleapis.com/*cloudasset.googleapis.com/*accesscontextmanager.googleapis.com/*location: "global"locationassetTypemacro_telemetry.jsonbuiltin-restrict-resource-locationsallowedLocationsbuiltin-enforce-service-usage-restrictionsallowedServicesframeworks.jsonus-central1us-east4builtin-il5builtin-itarbuiltin-us-data-boundaryeurope-west3europe-west1builtin-eu-data-boundary-and-supportbuiltin-eu-data-boundary-with-access-justificationsASSURED_WORKLOADSframeworks.jsonbuiltin-cmmcbuiltin-uk-gdprevaluate_control_rules.pyvalidate_workload_payload.pyASSURED_WORKLOADSframeworks.jsonbuiltin-il5builtin-fedramp-highbuiltin-eu-data-boundary-and-supportbuiltin-eu-data-boundarybuiltin-uk-data-boundaryTARGET_TYPESassetTypemacro_telemetry.jsonbuiltin-require-cmekframeworks.jsonbuiltin-require-cmekTARGET_TYPESkmsKeysTARGET_TYPES=$(python3 scripts/evaluate_control_rules.py \
--get-target-asset-types \
--framework=FRAMEWORK_ID \
--telemetry-file=macro_telemetry.json \
--frameworks-file=frameworks.json)
if [ -n "${TARGET_TYPES}" ]; then
gcloud asset search-all-resources \
--scope="folders/FOLDER_ID" \
--asset-types="${TARGET_TYPES}" \
--page-size=500 \
--format="json(name,assetType,location,kmsKeys)" > deep_telemetry.json
fiscripts/evaluate_control_rules.pymacro_telemetry.jsondeep_telemetry.jsonframeworks.jsonlocationScoreserviceScorecmekScorecompositeScoreorgPolicyDriftIndicatorscmekRequiredfalseN/Apython3 scripts/evaluate_control_rules.py \
--telemetry-file=macro_telemetry.json \
--deep-telemetry-file=deep_telemetry.json \
--framework=FRAMEWORK_ID \
--frameworks-file=frameworks.jsoncloudControlDetailsframeworks.jsonbuiltin-restrict-kms-protection-levelsbuiltin-enforce-allowed-cmek-crypto-key-projectsbuiltin-restrict-cloud-function-generationsbuiltin-restrict-cloudstorage-auth-typesbuiltin-iam-disable-service-account-key-creationbuiltin-disable-ssh-in-browserbuiltin-enable-axt*-regulatory-settingsbuiltin-cloud-logging-regulatory-settingspython3 scripts/validate_workload_payload.py \
--payload-json='{"displayName":"Sovereign-Workload-Enclave","resourceConfig":{"existingFolder":"folders/FOLDER_ID"},"framework":{"framework":"organizations/ORGANIZATION_ID/locations/global/frameworks/FRAMEWORK_ID"}}' \
--org-id=ORGANIZATION_ID \
--frameworks-file=frameworks.json# Compliance Environment Assessment Report: [Scope URI]
## 1. Executive Conclusion & Recommendation (Bottom Line Up Front)
* **Primary Recommendation**: [Framework Name] (`organizations/{org_id}/locations/global/frameworks/{framework_id}`)
* **Org Policy Readiness Alignment**: [Composite Fit %]
* **Value & Safety Invariant**: In-place brownfield adoption via Assured Workloads v2 in **Monitor Mode** (`enforcementMode: DETECTIVE`).
* **Zero Production Outage Risk**: Mutates zero Organization Policies on Day 0.
* **Continuous Server-Side CES Observability**: Activates real-time Continuous Evaluation Service (CES) monitoring across all framework controls.
* **No Migration Required**: Protects existing resources in-place without provisioning separate folders.
---
## 2. Core Value Drivers: Why Assured Workloads Fits This Scope
1. **Residency & Boundary Alignment (`gcp.resourceLocations`)**: Active regional workloads are evaluated against allowed regions ([e.g. 100% US-contained]).
2. **Service & API Compatibility (`gcp.restrictServiceUsage` / SUR)**: Active service APIs are evaluated against accredited service allowlists ([e.g. 100% approved services]).
3. **Non-Disruptive Posture Hardening**: Enrolling in Monitor Mode provides server-side CES posture evaluation while allowing your team to triage Org Policy readiness safely.
---
## 3. Objective Assessment Scorecard & Org Policy Readiness Triage
### Quantitative Org Policy Readiness Scorecard
| Candidate Framework | Location Residency (`locationScore`) | Service Usage / SUR (`serviceScore`) | CMEK Readiness (`cmekScore`) | Composite Alignment | Personnel Support Model |
| :--- | :--- | :--- | :--- | :--- | :--- |
| **[Framework 1]** | [XX%] | [XX%] | [XX% or N/A] | **[XX%]** | [Support Model] |
| **[Framework 2]** | [XX%] | [XX%] | [XX% or N/A] | **[XX%]** | [Support Model] |
### Active Resource & Effective Org Policy Baseline
* **Discovered Inventory**: [Total Assets count] across [Active resource types and regions].
* **Effective Org Policy Baseline**: [Effective `gcp.resourceLocations`, `gcp.restrictServiceUsage`, and `gcp.restrictTLSVersion` posture].
### Pre-Flight Org Policy Readiness Recommendations (Prior to Enforced Mode)
*Pre-flight drift indicators do NOT block Day 0 deployment in Monitor Mode. Address these prior to enabling preventive policy enforcement (authoritative CES and REST control evaluations run server-side after deployment):*
* **[Priority 1]**: [e.g. Configure CMEK keys on unencrypted resources before toggling `builtin-require-cmek` to `PREVENTIVE`].
* **[Priority 2]**: [e.g. Operational impact of bound controls such as `builtin-restrict-kms-protection-levels` or `builtin-cloud-logging-regulatory-settings`].
---
## 4. Deployment Action Plan & Commercial Advisory
### Deploy via Google Cloud Console (Recommended)
Review and deploy the recommended framework directly in the Google Cloud Console:
👉 **[Open Assured Workloads Console](https://console.cloud.google.com/compliance/assuredworkloads?organizationId=ORGANIZATION_ID)**
*(The Console deployment wizard binds composing controls in Monitor Mode with zero infrastructure mutations).*
### Commercial & Licensing Advisory
* Assured Workloads compliance regimes may carry support routing or licensing entitlements depending on whether `builtin-restrict-technical-support-services` is bound (standard commercial support vs. paid sovereign/regulated support).
* Review full pricing details and entitlement tiers at: https://cloud.google.com/assured-workloads/pricingframeworks.jsonframeworks listframeworks.jsongcloud compliance-manager frameworks listframeworks.json<service>.googleapis.combuiltin-enforce-service-usage-restrictionsallowedServicesbuiltin-require-cmekservicescloudControlDetails[].namebuiltin-run-disable-ephemeral-diskbuiltin-restrict-cloudstorage-auth-typesbuiltin-disable-spanner-multi-regionbuiltin-cloud-logging-regulatory-settingsparametersFramework.cloudControlDetailscloud-controls describegcloud compliance-manager cloud-controls describe CONTROL_ID \
--organization=ORGANIZATION_ID \
--location=global \
--format="json(name,displayName,description,supportedEnforcementModes,remediationSteps,parameterSpec)"run.managed.disableEphemeralDiskstorage.restrictAuthTypessupportedEnforcementModesPREVENTIVEDETECTIVEremediationStepsgcloud org-policies describe CONSTRAINT_NAME \
--folder=FOLDER_ID \
--effective \
--format="json(name,spec.rules)"| Error Condition | Immediate Action | User Recovery Guidance |
|---|---|---|
| HALT discovery. Do not confuse with target scope permissions. Check administrative project billing status and caller quota permissions. | "The administrative project |
| HALT discovery immediately. Do not speculate or guess resources. | "To analyze this environment, grant |
| HALT policy inspection. Do not guess effective constraints. | "To inspect effective organization policies, grant |
| Empty Scope (0 Resources) | HALT evaluation. Inform user the scope contains no active assets. | "No active resources found in |
| Conflicting Regulatory Intent | Engage user in focused clarification probe. | Present distinct requirements (e.g. DoD IL5 Adjudicated Support vs. ITAR US Persons) and ask for business requirement. |
| Zero Catalog Match | Detail multi-regional drift indicator. | Explain why single-region sovereign data boundary frameworks were ruled out (e.g. multi-continental resource footprint spanning unapproved regions). |
| Out-of-Scope / Non-Catalog Standard (e.g., CMMC, UK GDPR) | Do not invent framework IDs ( | "Assured Workloads does not include a standalone |