Assured Workloads Environment Assessor

Assured Workloads Environment Assessor

Performs read-only discovery of a Google Cloud folder or project and recommends the best Assured Workloads framework for sovereignty and compliance standards such as FedRAMP and EU data boundaries.

Skill files5 files

references/

scripts/

SKILL.md463 lines
1
---
2
name: assuredworkloads-environment-assessor
3
metadata:
4
version: "1.0.4"
5
category: SecurityAndCompliance
6
description: >-
7
Discover Google Cloud resource telemetry and effective Org Policies, evaluate brownfield workloads against
8
sovereign data boundary and compliance standards (EU Data Boundary with Support, FedRAMP Moderate/High, DoD IL4/IL5,
9
ITAR, CJIS, US/EU Regional Data Boundaries), and recommend the optimal Assured Workloads Framework. Use
10
when asked to: "assess my environment for compliance", "which Assured Workloads framework
11
should I use?", "check if my folder is ready for EU sovereignty", "evaluate compliance
12
posture for folders/123 or projects/xyz", or "discover compliance gaps before deployment".
13
Do NOT use for live mutating policy deployments, generating deep audit reports via Cloud Audit Manager,
14
generating remediation scripts, or authoring custom Assured Workloads frameworks.
15
---
16
17
# Compliance Environment Assessor Skill
18
19
This skill performs zero-risk, non-mutating compliance discovery, physical telemetry profiling, and data boundary framework recommendation across Google Cloud Folders (`folders/{folder_id}`) and Projects (`projects/{project_id}`).
20
21
## Usage Attribution
22
23
**MUST READ**: Before executing any `gcloud`, REST API, or MCP command, you
24
MUST read and follow the instructions in
25
[Usage Attribution](references/attribution.md).
26
27
## Safety & Execution Tier (CRITICAL)
28
29
* **Tier R (Strictly Read-Only)**:
30
All discovery operations execute read-only queries
31
(`gcloud asset search-all-resources`,
32
`gcloud compliance-manager frameworks list`,
33
`gcloud compliance-manager cloud-controls describe`, and
34
`gcloud org-policies describe --effective`).
35
You MUST NEVER execute mutating commands (`gcloud compliance-manager framework-deployments create`,
36
`gcloud org-policies set-policy`, or `gcloud resource-manager ...`).
37
38
---
39
40
## Grounding Guardrails: Google Cloud & Assured Workloads Precedence (CRITICAL)
41
42
To prevent hallucinations, incorrect compliance assessments, and false blockers derived from generic LLM pre-training, the agent is governed by strict **Grounding Guardrails**:
43
44
1. **Strict Prohibition on Generic LLM Pre-Training Priors**:
45
* You MUST NOT derive compliance rules, API semantics, or deployment constraints from generic web pre-training (e.g., generic NIST/FedRAMP certification audit checklists, AWS/Azure architectures, or legacy on-prem IT auditor mindsets).
46
* In traditional IT audits, non-compliance is a binary go/no-go gate that
47
blocks deployment. In Google Cloud Assured Workloads, deploying in
48
**Monitoring (`Detective`) mode** enables detective controls without
49
mutating existing Organization Policies, allowing continuous observability
50
without halting Day 0 rollout. You MUST NOT confuse these paradigms.
51
2. **Authoritative Assured Workloads Scope & Deployment Grounding**:
52
* Assured Workloads binds compliance frameworks directly to existing or new
53
Google Cloud folders (`folders/...`) and projects (`projects/...`).
54
* **Existing Workloads (Folders or Projects)**: Recommend deploying in
55
**Monitoring (`Detective`) mode** first to assess and remediate findings
56
safely without mutating existing Organization Policies, and then
57
transitioning to **Preventive** mode.
58
* **New Workloads (Folders or Projects)**: Recommend starting in
59
**Preventive** mode or **Monitoring (`Detective`) mode**.
60
* **Google Cloud Console Deployment**: Always guide the user to deploy the
61
recommended framework via the **Assured Workloads Frameworks tab in Google
62
Cloud Console**
63
(`https://console.cloud.google.com/compliance/configure/frameworks?organizationId=ORGANIZATION_ID`).
64
Do NOT recommend `gcloud assured workloads create` (which only provisions
65
new greenfield folders using legacy regime enums and cannot bind frameworks
66
to existing folders or projects).
67
3. **Client-Side Org Policy Readiness vs. Server-Side Assured Workloads Monitoring Boundary**:
68
* **Client-Side Scope**: Pre-flight evaluation via
69
`scripts/evaluate_control_rules.py` assesses **ONLY the 3 high-confidence
70
Organization Policy parameter sets** bound in
71
`Framework.cloudControlDetails[].parameters`:
72
1. Resource Locations (`builtin-restrict-resource-locations` /
73
`constraints/gcp.resourceLocations`)
74
2. Service Usage Restrictions / SUR
75
(`builtin-enforce-service-usage-restrictions` /
76
`constraints/gcp.restrictServiceUsage`)
77
3. CMEK Encryption Requirements (`builtin-require-cmek` /
78
`constraints/gcp.restrictNonCmekServices`)
79
* **Server-Side Monitoring Scope**: Full control evaluations run
80
**server-side via Assured Workloads Monitoring** after the framework is
81
deployed.
82
* **Terminology Invariant**: You MUST frame client-side findings as
83
**Pre-Flight Org Policy Readiness Recommendations / Potential Drift
84
Indicators** (`orgPolicyDriftIndicators`), NEVER as definitive compliance
85
"violations" or "deployment blockers" that could contradict an actual
86
post-deployment Assured Workloads Monitoring evaluation.
87
4. **Static Built-In Catalog, Session Caching, Support Routing & KAJ Flow**:
88
* Built-in Frameworks (`type: BUILT_IN`) returned by
89
`gcloud compliance-manager frameworks list` are static configurations
90
uniform across organizations. Fetch `frameworks.json` once per session and
91
reuse the cached file across all candidate evaluations and follow-up
92
queries.
93
* **Personnel Support Model**: Determine whether a framework requires a
94
**Paid Sovereign/Regulated Support Subscription** or uses **Standard
95
Commercial Support** ($0 support uplift) from the framework's public
96
`displayName` and `description` in `frameworks.json`:
97
- **Paid Sovereign/Regulated Support Subscription**: Frameworks whose
98
`description` specifies support personnel access controls (e.g.,
99
`"Support access controls are set to ..."`, `-and-support` variants
100
such as `builtin-eu-data-boundary-and-support` and
101
`builtin-us-data-boundary-and-support`, or regulated standards such as
102
`builtin-il4`, `builtin-il5`, `builtin-itar`, `builtin-fedramp-high`,
103
`builtin-cjis`).
104
- **Standard Commercial Support ($0 support uplift)**: Regional-only Data
105
Boundary frameworks whose `description` sets data location controls only
106
without a support access controls clause (e.g.,
107
`builtin-us-data-boundary`, `builtin-eu-data-boundary`,
108
`builtin-uk-data-boundary`, `builtin-japan-data-boundary`).
109
- **Important**: Do NOT use the mere presence of
110
`builtin-restrict-technical-support-services` in `cloudControlDetails`
111
as a discriminator, because both regional-only and paid-support Data
112
Boundary frameworks include that control.
113
* **Key Access Justifications (KAJ) & EKM**: Recommend
114
`-with-access-justifications` framework variants only when the customer
115
**explicitly requests KAJ/EKM**, or when disambiguating between matching
116
regional variants in `frameworks.json`.
117
5. **Deterministic Tool Gating**:
118
* You MUST NOT guess compatibility scores ($$S_{\text{composite}}$$) or resource inventories.
119
* You MUST execute `scripts/evaluate_control_rules.py` with `--frameworks-file=frameworks.json`.
120
121
## Prerequisites
122
123
Before executing environment assessment, ensure your local or Cloud Shell environment meets the following prerequisites:
124
125
1. **Google Cloud SDK**:
126
* Install and initialize the latest Google Cloud CLI (`gcloud`): https://docs.cloud.google.com/sdk/docs/install.md.txt
127
2. **Project Setup & Target Selection**:
128
* Select or configure an administrative project for running assessment queries:
129
```bash
130
gcloud config set project PROJECT_ID
131
```
132
3. **Region Configuration & Availability**:
133
* Configure a well-supported default region (e.g. `us-central1`):
134
```bash
135
gcloud config set compute/region us-central1
136
```
137
* Consult official region availability documentation: [Google Cloud Locations](https://cloud.google.com/about/locations).
138
4. **Required API Enablement**:
139
* Enable the required Google Cloud APIs on the administrative project:
140
```bash
141
gcloud services enable \
142
cloudasset.googleapis.com \
143
orgpolicy.googleapis.com \
144
assuredworkloads.googleapis.com \
145
cloudsecuritycompliance.googleapis.com
146
```
147
5. **Authentication Setup**:
148
* Authenticate your user or service account identity and establish application default credentials:
149
```bash
150
gcloud auth login
151
gcloud auth application-default login
152
```
153
6. **Billing & Quota Project Setup (Zero Billing Impact)**:
154
* **Zero-Cost Assessment Guarantee**: Running this assessment incurs **$0 in
155
Google Cloud infrastructure and API billing charges**. All discovery
156
operations (`gcloud asset search-all-resources`,
157
`gcloud compliance-manager frameworks list`, and
158
`gcloud org-policies describe --effective`) are free read-only metadata
159
queries.
160
* **Quota Project Requirement**: Google Cloud Service Infrastructure requires an administrative project with an active Cloud Billing account attached to allocate API rate limits and meter service usage (sent via the `X-Goog-User-Project` header), even for free APIs.
161
* **Pre-Flight Verification**:
162
```bash
163
# 1. Verify active Cloud Billing account is attached to administrative project
164
gcloud billing projects describe PROJECT_ID --format="value(billingEnabled)"
165
166
# 2. If using a shared project, ensure your user identity has permission to consume project quota
167
gcloud projects add-iam-policy-binding PROJECT_ID \
168
--member="user:USER_EMAIL" \
169
--role="roles/serviceusage.serviceUsageConsumer"
170
171
# 3. Synchronize Application Default Credentials quota project
172
gcloud auth application-default set-quota-project PROJECT_ID
173
```
174
7. **Commands & Payloads Reference**:
175
* Consult the [Google Cloud CLI Commands Reference](references/gcloud-commands.md) for full server-side projection masks, field filters, and API payload definitions.
176
177
---
178
179
## Step-by-Step Operating Workflow
180
181
### Step 1: Ingest Scope & Resolve Organization ID
182
183
1. Accept or prompt for the target scope (`folders/{folder_id}` or `projects/{project_id}`). If the user provides an open-ended scope without stating a regulatory regime, DO NOT block on broad questionnaires. Proceed immediately to ingest telemetry.
184
2. Automatically resolve the parent Organization ID from the scope to drive downstream catalog queries:
185
* **For Folders**:
186
```bash
187
gcloud resource-manager folders describe FOLDER_ID --format="value(parent)"
188
```
189
*(If the parent is another folder, traverse up ancestors until `organizations/{org_id}` is found)*
190
* **For Projects**:
191
```bash
192
gcloud projects get-ancestors PROJECT_ID --format="value(id,type)"
193
```
194
195
### Step 2: Ingest Asset Telemetry & Effective Org Policies via Two-Pass Telescoping Protocol
196
197
To guarantee 100% coverage across the scope hierarchy while keeping payloads compact, telemetry ingestion executes in two telescoping passes (see [Google Cloud CLI Commands Reference](references/gcloud-commands.md)):
198
199
1. **Pass 1: Macro Footprint & API Enumeration (100% Scope Coverage)**:
200
```bash
201
gcloud asset search-all-resources \
202
--scope="folders/FOLDER_ID" \
203
--page-size=500 \
204
--format="json(name,assetType,location)" > macro_telemetry.json
205
```
206
* *Pagination & Scope Semantics*: `--page-size=500` fetches 500 cloud assets
207
per HTTP API page (the maximum batch size permitted by Cloud Asset
208
Inventory), automatically paginating through all assets strictly inside
209
`folders/FOLDER_ID` and its descendant projects.
210
* *Full Location & SUR Coverage*: `macro_telemetry.json` captures 100% of
211
active `location` and `assetType` values required to evaluate both
212
`builtin-restrict-resource-locations` (`allowedLocations`) and
213
`builtin-enforce-service-usage-restrictions` (`allowedServices` / SUR).
214
* If `PERMISSION_DENIED` is returned:
215
- If the error states `USER_PROJECT_DENIED` or references `roles/serviceusage.serviceUsageConsumer`, the error is on the **administrative quota project** (it lacks an attached billing account or caller lacks `serviceUsageConsumer`). Follow the Quota Project Recovery playbook and stop running further commands.
216
- If the error references the target scope (`folders/...` or `projects/...`), HALT ALL TOOL CALLS IMMEDIATELY (do not run Step 2.2, Step 3, or any further commands) and inform the user they require `roles/cloudasset.viewer` and `roles/orgpolicy.policyViewer` on that scope.
217
* If 0 resources are returned, inform the user the target scope is empty.
218
219
2. **Inspect Effective Universal Org Policies on Scope (`38/38` Frameworks)**:
220
```bash
221
gcloud org-policies describe gcp.resourceLocations \
222
--folder=FOLDER_ID \
223
--effective \
224
--format="json(name,spec.rules)" > effective_locations.json
225
226
gcloud org-policies describe gcp.restrictServiceUsage \
227
--folder=FOLDER_ID \
228
--effective \
229
--format="json(name,spec.rules)" > effective_services.json
230
231
gcloud org-policies describe gcp.restrictTLSVersion \
232
--folder=FOLDER_ID \
233
--effective \
234
--format="json(name,spec.rules)" > effective_tls.json
235
```
236
237
### Step 3: Fetch & Cache Built-In Framework Catalog and Filter by Location + SUR
238
239
1. **Fetch & Cache Built-In Framework Catalog (with Bound Parameters)**:
240
```bash
241
if [ ! -s frameworks.json ]; then
242
gcloud compliance-manager frameworks list \
243
--organization=ORGANIZATION_ID \
244
--location=global \
245
--filter="category:ASSURED_WORKLOADS" \
246
--format="json(name,majorRevisionId,displayName,description,category,cloudControlDetails)" > frameworks.json
247
fi
248
```
249
* *Session Caching*: Because built-in `ASSURED_WORKLOADS` frameworks are
250
static definitions uniform across organizations, cache the output in
251
`frameworks.json` and reuse it for all candidate evaluations and follow-up
252
questions.
253
2. **Filter Candidates by Location + SUR Footprint & Clarify Intent**:
254
* Exclude location-less control-plane management metadata
255
(`cloudresourcemanager.googleapis.com/*`, `orgpolicy.googleapis.com/*`,
256
`cloudasset.googleapis.com/*`, `accesscontextmanager.googleapis.com/*`, and
257
`location: "global"` hierarchy nodes) from data-plane location checks.
258
* Match active data-plane regions (`location`) and active service prefixes
259
(`assetType`) from `macro_telemetry.json` against each framework's
260
`builtin-restrict-resource-locations` (`allowedLocations`) and
261
`builtin-enforce-service-usage-restrictions` (`allowedServices` / SUR)
262
parameters in `frameworks.json`:
263
* **US-Only Regions (`us-central1`, `us-east4`)**: Candidates include DoD
264
IL5 (`builtin-il5`, adjudicated support), ITAR (`builtin-itar`, US
265
persons support), FedRAMP High/Moderate, or US Regional Data Boundary
266
(`builtin-us-data-boundary`, standard commercial support).
267
* **EU-Only Regions (`europe-west3`, `europe-west1`)**: Candidates include
268
EU Data Boundary and Support (`builtin-eu-data-boundary-and-support`) vs.
269
standard EU Regional Boundary (`builtin-eu-data-boundary`).
270
* **Targeted Disambiguation**:
271
* If multiple frameworks match the physical footprint and user regulatory
272
intent is unstated (e.g., an open-ended request with no regime specified),
273
DO NOT finalize a single primary recommendation yet — present the matching
274
candidate frameworks and STOP to ask the user a targeted clarifying
275
question about their regulatory intent (e.g., EU Sovereignty, US
276
FedRAMP/IL5) and personnel support model (Standard Commercial Support vs.
277
Paid Sovereign/Regulated Support).
278
* Recommend `-with-access-justifications` (KAJ/EKM) framework variants only
279
if the customer explicitly asks for KAJ/EKM or when disambiguating
280
between matching regional variants.
281
* **Out-of-Scope / Non-Catalog Compliance Standards (e.g., CMMC, UK
282
GDPR)**:
283
If the user asks to evaluate a compliance standard or legal certification
284
that is not present as a built-in `ASSURED_WORKLOADS` framework in
285
`frameworks.json` (such as CMMC, UK GDPR, SOC 2, or PCI-DSS), DO NOT
286
fabricate or pass non-existent framework IDs (e.g., `builtin-cmmc` or
287
`builtin-uk-gdpr`) to `evaluate_control_rules.py`. Explicitly state that
288
the requested standard is not a standalone Assured Workloads Data
289
Boundary framework, explain the catalog scope boundary (Data Boundary
290
enforces regional data residency, SUR, CMEK, and sovereign support
291
routing rather than legal privacy or third-party certification audits),
292
and offer the closest adjacent `ASSURED_WORKLOADS` frameworks from
293
`frameworks.json` that match their active regional footprint (e.g.,
294
`builtin-il5` or `builtin-fedramp-high` for US defense/CUI workloads, or
295
`builtin-eu-data-boundary-and-support` / `builtin-eu-data-boundary` /
296
`builtin-uk-data-boundary` for European/UK regional residency).
297
298
### Step 4: Conditional Pass 2 CMEK Ingestion & Org Policy Evaluation
299
300
1. **Pass 2: Conditional Targeted Deep Ingestion for CMEK Resource Types**:
301
Derive `TARGET_TYPES` (the intersection of active CAI `assetType`s in
302
`macro_telemetry.json` and CMEK-governed services in `builtin-require-cmek`
303
from `frameworks.json`). Only 6 of the 38 Data Boundary frameworks include
304
`builtin-require-cmek`; if `TARGET_TYPES` is non-empty, fetch `kmsKeys`:
305
```bash
306
TARGET_TYPES=$(python3 scripts/evaluate_control_rules.py \
307
--get-target-asset-types \
308
--framework=FRAMEWORK_ID \
309
--telemetry-file=macro_telemetry.json \
310
--frameworks-file=frameworks.json)
311
312
if [ -n "${TARGET_TYPES}" ]; then
313
gcloud asset search-all-resources \
314
--scope="folders/FOLDER_ID" \
315
--asset-types="${TARGET_TYPES}" \
316
--page-size=500 \
317
--format="json(name,assetType,location,kmsKeys)" > deep_telemetry.json
318
fi
319
```
320
2. **Execute High-Confidence Org Policy Evaluator**:
321
Run `scripts/evaluate_control_rules.py` over `macro_telemetry.json` (and
322
optional `deep_telemetry.json`) with `frameworks.json` to compute the 3
323
quantitative scores (`locationScore`, `serviceScore`, `cmekScore`,
324
`compositeScore`) and `orgPolicyDriftIndicators` (when `cmekRequired` is
325
`false`, always display the CMEK Readiness column as `N/A` in the scorecard):
326
```bash
327
python3 scripts/evaluate_control_rules.py \
328
--telemetry-file=macro_telemetry.json \
329
--deep-telemetry-file=deep_telemetry.json \
330
--framework=FRAMEWORK_ID \
331
--frameworks-file=frameworks.json
332
```
333
3. **Evaluate Operational & Governance Impact**:
334
* Review `cloudControlDetails` in `frameworks.json` for parameterized and
335
operational controls (`builtin-restrict-kms-protection-levels`,
336
`builtin-enforce-allowed-cmek-crypto-key-projects`,
337
`builtin-restrict-cloud-function-generations`,
338
`builtin-restrict-cloudstorage-auth-types`,
339
`builtin-iam-disable-service-account-key-creation`,
340
`builtin-disable-ssh-in-browser`, `builtin-enable-axt`, and
341
`*-regulatory-settings` controls like
342
`builtin-cloud-logging-regulatory-settings`) and summarize their workflow
343
impact in the final report.
344
345
### Step 5: Render Executive Assessment Report (Minto Pyramid Structure)
346
347
Present an executive report structured around the **Minto Pyramid Principle**
348
(Bottom Line Up Front -> Core Value Pillars -> Supporting Evidence -> Action
349
Plan):
350
351
* **Output Hygiene**: Never mention internal helper script filenames (e.g.,
352
`scripts/evaluate_control_rules.py`, `evaluate_control_rules.py`) or raw
353
intermediate telemetry/cache filenames (e.g., `macro_telemetry.json`,
354
`deep_telemetry.json`, `frameworks.json`) anywhere in the user-facing
355
assessment report, table captions, or notes.
356
357
```markdown
358
# Compliance Environment Assessment Report: [Scope URI]
359
360
## 1. Executive Conclusion & Recommendation (Bottom Line Up Front)
361
* **Primary Recommendation**: [Framework Name] (`organizations/{org_id}/locations/global/frameworks/{framework_id}`)
362
* **Org Policy Readiness Alignment**: [Composite Fit %]
363
* **Recommended Deployment Mode**:
364
* **Existing Workloads (Folders or Projects)**: Deploy in **Monitoring (`Detective`) mode** first, then transition to **Preventive** mode after remediating findings.
365
* **New Workloads (Folders or Projects)**: Start in **Preventive** mode or **Monitoring (`Detective`) mode**.
366
* **Zero Production Outage Risk**: Monitoring (`Detective`) mode mutates zero Organization Policies on Day 0.
367
* **Continuous Server-Side Observability**: Activates continuous server-side monitoring via Assured Workloads Monitoring across all framework controls.
368
* **No Migration Required**: Protects existing folders and projects in-place without migrating resources.
369
370
---
371
372
## 2. Core Value Drivers: Why Assured Workloads Fits This Scope
373
1. **Residency & Boundary Alignment (`gcp.resourceLocations`)**: Active regional workloads are evaluated against allowed regions ([e.g. 100% US-contained]).
374
2. **Service & API Compatibility (`gcp.restrictServiceUsage` / SUR)**: Active service APIs are evaluated against accredited service allowlists ([e.g. 100% approved services]).
375
3. **Non-Disruptive Posture Hardening**: Enrolling existing workloads in Monitoring (`Detective`) mode provides continuous posture evaluation via Assured Workloads Monitoring while allowing your team to triage Org Policy readiness safely before moving to Preventive mode.
376
377
---
378
379
## 3. Objective Assessment Scorecard & Org Policy Readiness Triage
380
381
### Quantitative Org Policy Readiness Scorecard
382
| Candidate Framework | Location Residency (`locationScore`) | Service Usage / SUR (`serviceScore`) | CMEK Readiness (`cmekScore`) | Composite Alignment | Personnel Support Model |
383
| :--- | :--- | :--- | :--- | :--- | :--- |
384
| **[Framework 1]** | [XX%] | [XX%] | [XX% or N/A] | **[XX%]** | [Support Model] |
385
| **[Framework 2]** | [XX%] | [XX%] | [XX% or N/A] | **[XX%]** | [Support Model] |
386
387
### Active Resource & Effective Org Policy Baseline
388
* **Discovered Inventory**: [Total Assets count] across [Active resource types and regions].
389
* **Effective Org Policy Baseline**: [Effective `gcp.resourceLocations`, `gcp.restrictServiceUsage`, and `gcp.restrictTLSVersion` posture].
390
391
### Pre-Flight Org Policy Readiness Recommendations (Prior to Preventive Mode)
392
*Pre-flight drift indicators do NOT block Day 0 deployment in Monitoring (`Detective`) mode. Address these prior to enabling Preventive policy enforcement (authoritative control evaluations run server-side via Assured Workloads Monitoring after deployment):*
393
* **[Priority 1]**: [e.g. Configure CMEK keys on unencrypted resources before toggling `builtin-require-cmek` to `PREVENTIVE`].
394
* **[Priority 2]**: [e.g. Operational impact of bound controls such as `builtin-restrict-kms-protection-levels` or `builtin-cloud-logging-regulatory-settings`].
395
396
---
397
398
## 4. Deployment Action Plan & Commercial Advisory
399
400
### Deploy via Google Cloud Console — Assured Workloads Frameworks Tab (Recommended)
401
Review and deploy the recommended framework directly in the Google Cloud Console **Assured Workloads -> Frameworks** tab:
402
šŸ‘‰ **[Open Assured Workloads Frameworks Console](https://console.cloud.google.com/compliance/configure/frameworks?organizationId=ORGANIZATION_ID)**
403
* **Existing Workloads (Folders or Projects)**: Deploy in **Monitoring (`Detective`) mode** to evaluate posture and remediate findings with zero Day 0 Organization Policy mutations, then transition to **Preventive** mode.
404
* **New Workloads (Folders or Projects)**: Start directly in **Preventive** mode or in **Monitoring (`Detective`) mode**.
405
406
### Commercial & Licensing Advisory
407
* Assured Workloads compliance regimes may carry support routing or licensing entitlements depending on whether the framework enforces regional data location controls only (standard commercial support, $0 support uplift) or specifies support personnel access controls in its `displayName` and `description` (paid sovereign/regulated support).
408
* Review full pricing details and entitlement tiers at: https://cloud.google.com/assured-workloads/pricing
409
```
410
411
### Step 6: Handling Customer Follow-Up Questions on Specific Services
412
413
When a customer follows up with a specific question about how a recommended or
414
candidate framework affects a particular Google Cloud service (e.g., Cloud Run,
415
Cloud Storage, Spanner, GKE, Cloud SQL, Vertex AI, Cloud Logging):
416
1. **Inspect Cached `frameworks.json` Locally (or Fetch via Step 3 `frameworks list` if Not Cached)**:
417
* If `frameworks.json` is not yet present in the current working directory, run the Step 3 `gcloud compliance-manager frameworks list` command first to populate `frameworks.json`.
418
* Check whether `<service>.googleapis.com` is permitted in
419
`builtin-enforce-service-usage-restrictions` (`allowedServices`) and
420
whether CMEK is required in `builtin-require-cmek` (`services`).
421
* Identify all service-specific `cloudControlDetails[].name` entries bound in
422
that framework (e.g., `builtin-run-disable-ephemeral-disk`,
423
`builtin-restrict-cloudstorage-auth-types`,
424
`builtin-disable-spanner-multi-region`,
425
`builtin-cloud-logging-regulatory-settings`) and any bound `parameters`.
426
2. **Fetch Authoritative Control Details On Demand**:
427
* Because `Framework.cloudControlDetails` omits control descriptions,
428
enforcement modes, and remediation steps, run `cloud-controls describe` for
429
the relevant control ID(s):
430
```bash
431
gcloud compliance-manager cloud-controls describe CONTROL_ID \
432
--organization=ORGANIZATION_ID \
433
--location=global \
434
--format="json(name,displayName,description,supportedEnforcementModes,remediationSteps,parameterSpec)"
435
```
436
* Extract the exact underlying Organization Policy constraint (e.g.,
437
`run.managed.disableEphemeralDisk`, `storage.restrictAuthTypes`),
438
`supportedEnforcementModes` (`PREVENTIVE` vs. `DETECTIVE`), and
439
`remediationSteps` from the response.
440
3. **Check Effective Folder/Project Policy If Requested**:
441
* If the customer asks whether their folder already enforces that
442
service-specific Org Policy constraint, run:
443
```bash
444
gcloud org-policies describe CONSTRAINT_NAME \
445
--folder=FOLDER_ID \
446
--effective \
447
--format="json(name,spec.rules)"
448
```
449
450
---
451
452
## Failure Modes & Error Recovery Playbook
453
454
| Error Condition | Immediate Action | User Recovery Guidance |
455
| :--- | :--- | :--- |
456
| **`USER_PROJECT_DENIED` or `serviceusage.serviceUsageConsumer`** | HALT discovery. Do not confuse with target scope permissions. Check administrative project billing status and caller quota permissions. | *"The administrative project `PROJECT_ID` cannot be used for API quota. 1) Verify a Cloud Billing account is attached (`gcloud billing projects describe PROJECT_ID`), 2) Grant `roles/serviceusage.serviceUsageConsumer` on `PROJECT_ID` to your identity, or 3) Switch to a project you own: `gcloud config set project <PROJECT_ID>`."* |
457
| **`PERMISSION_DENIED` on CAIS** | HALT discovery immediately. Do not speculate or guess resources. | *"To analyze this environment, grant `roles/cloudasset.viewer` on `folders/123` to your active identity."* |
458
| **`PERMISSION_DENIED` on Org Policies** | HALT policy inspection. Do not guess effective constraints. | *"To inspect effective organization policies, grant `roles/orgpolicy.policyViewer` on `folders/123`."* |
459
| **Empty Scope (0 Resources)** | HALT evaluation. Inform user the scope contains no active assets. | *"No active resources found in `folders/123`. Provision resources or select an active scope."* |
460
| **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. |
461
| **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). |
462
| **Out-of-Scope / Non-Catalog Standard (e.g., CMMC, UK GDPR)** | Do not invent framework IDs (`builtin-cmmc`, `builtin-uk-gdpr`). Explain catalog boundary and map to adjacent `ASSURED_WORKLOADS` candidates. | *"Assured Workloads does not include a standalone `[CMMC / UK GDPR]` framework in `frameworks.json`. However, based on your active resources, we can evaluate an adjacent Assured Workloads Data Boundary framework such as `builtin-il5` / `builtin-fedramp-high` (for US defense/federal workloads) or `builtin-eu-data-boundary-and-support` / `builtin-uk-data-boundary` (for European/UK regional residency)."* |
463

Ā© Google LLC Ā· Apache 2.0 Ā· source Ā· posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0Ā followers Ā· 14,621Ā prompts

More by @OpenSourceBuffGuy

See all
Sea turtle carrying floating film studio island prompt image

Sea turtle carrying floating film studio island

Draws a giant sea turtle carrying a floating island film studio through a starry sky, where fairies polish rough film strips into golden film.

image-prompt, nano-banana, 3d-render, cartoon, fantasy-world, creatures, animals, whimsical, dreamy, cinematic, dramatic-lighting, vibrant-colors, bokeh, miniature, widescreen, night-scene, illustration, concept-art, surreal, storytelling, clay-3d

Desert buggy escapes drones past industrial outpost prompt image

Desert buggy escapes drones past industrial outpost

Builds a 15-second desert chase video where a racer in an armored buggy escapes drones past an industrial outpost, using five reference images with set jobs.

video-prompt, hailuo, action, multi-shot, timed-beats, camera-movement, reference-image, character-consistency, negative-prompt, cinematic, sci-fi, cars, landscape, aerial-view, tracking-shot, photorealistic, sound-effects, structured-output, long-form, widescreen

1 view
Cozy Pixel Art Farm Island Village prompt image

Cozy Pixel Art Farm Island Village

Draws a cozy 16-bit pixel-art farming village across six small islands joined by bridges, with exact counts for buildings, animals and crops.

image-prompt, gpt-image, pixel-art, isometric, game-assets, concept-art, maps, worldbuilding, cozy, vibrant-colors, ocean, landscape, wide-shot, widescreen, game-development, video-games, structured-output, whimsical, summer, high-angle, aerial-view, animals, negative-prompt, cityscape

1 view

Reviews

Loading reviews…

Discussion

Loading comments…