CSPACE-ORG-01: Org policies forbid non-confidential VMs and exportable SA keys¶
| Property | Value |
|---|---|
| Severity | medium |
| Platform | GCP Confidential Space (AMD SEV-SNP) |
| Lifecycle stage | deploy |
| Mode | Passive: read-only cloud API calls. |
What it checks¶
It passes when:
- Required org-policy constraints (confidential-only VMs, no SA keys) are enforced.
How to fix¶
- Enforce constraints/compute.restrictNonConfidentialComputing and constraints/iam.disableServiceAccountKeyCreation / disableServiceAccountKeyUpload at the project, folder, or org level.
- Enforce restrictNonConfidentialComputing and disableServiceAccountKeyCreation/Upload.
After the fix, scan again: the check should report PASS.
When it is not assessed¶
SKIP:
- Need --gcp-project; skipping org-policy check.
ERROR:
- Could not read org policies: …
Scan inputs¶
The untrust scan options this check reads:
| Option | Description |
|---|---|
--gcp-project |
GCP project ID. |
Permissions¶
The cloud API calls this check makes, read from the scanner's source:
| Cloud | API call | Permission | Access |
|---|---|---|---|
| Google Cloud | orgpolicy.projects.policies.getEffectivePolicy |
orgpolicy.policy.get |
read |
See Required permissions for every check on this platform.
Generated from untrust 1.3.0 (commit 7ef462d9a0c3).