Skip to content
Community previewValidate controls against current Google documentation.Report a gap

Code Block Features

Goog-Sec uses Starlight’s built-in Expressive Code renderer for syntax highlighting, filenames, line markers, and copy controls.

```bash
gcloud projects describe example-project
```
```yaml title="organization-policy.yaml"
name: organizations/123456789/policies/iam.disableServiceAccountKeyCreation
spec:
rules:
- enforce: true
```

Use brace markers after the language:

```json {3-5}
{
"bindings": [
{
"role": "roles/viewer",
"members": ["group:security@example.com"]
}
]
}
```
```diff lang="yaml"
- member: user:admin@example.com
+ member: group:cloud-admins@example.com
```

Keep commands and observed output separate when readers should not copy the output:

```bash title="Command"
gcloud auth list --filter=status:ACTIVE
```
```text title="Expected shape"
Credentialed Accounts
ACTIVE ACCOUNT
* operator@example.com
```
  • Use synthetic identifiers such as example-project and example.com.
  • Never include tokens, cookies, API keys, customer data, or real tenant IDs.
  • Mark destructive commands explicitly in nearby prose.
  • Include a read-only verification command after every configuration example.
  • Prefer complete commands over fragments that depend on hidden shell state.

Page provenance

Community-maintained guidance. Use the edit link below to propose a sourced correction.

Contributors

Was this page useful?

Help us prioritize the next improvement.