Turbot Guardrails Hub 
Hub
  • Mods
  • Policy Packs
  • Docs
  • Home
ModsPolicy PacksDocsHome
Mods
GCP
Loading policies...

Policy: GCP > Network > Backend Bucket > CDN > Cache Mode

The expected CDN cache mode for the backend bucket. A backend bucket uses exactly one cache mode at a time.

USE_ORIGIN_HEADERS caches only content with valid origin caching headers, CACHE_ALL_STATIC additionally caches static content that carries no caching headers, and FORCE_CACHE_ALL caches all responses regardless of headers — including private content, so use it with care.

Which TTL sub-policies apply depends on this mode: all TTLs apply to CACHE_ALL_STATIC, only Default TTL applies to FORCE_CACHE_ALL, and no TTLs apply to USE_ORIGIN_HEADERS (the origin's headers control caching).

Targets

This policy targets the following resource types:

  • GCP > Network > Backend Bucket

Primary Policy

This policy is used with the following primary policy:

  • GCP > Network > Backend Bucket > CDN

Controls

Setting this policy configures this control:

  • GCP > Network > Backend Bucket > CDN

Policy Specification

Schema Type
string
Default
CACHE_ALL_STATIC
Valid Values [YAML]
  • USE_ORIGIN_HEADERS
    
  • CACHE_ALL_STATIC
    
  • FORCE_CACHE_ALL
    
Examples [YAML]
  • CACHE_ALL_STATIC
    

Category

  • Security

In Your Workspace

  • Policy Settings by Type report

Developers

    Category URI
    • tmod:@turbot/turbot#/control/categories/security
  • Policy Type URI
    • tmod:@turbot/gcp-network#/policy/types/backendBucketCdnCacheMode
  • GraphQL
    • query policyType(id: "tmod:@turbot/gcp-network#/policy/types/backendBucketCdnCacheMode") { … }
    • query policySettings(filter: "policyTypeId:'tmod:@turbot/gcp-network#/policy/types/backendBucketCdnCacheMode'") { … }
    • query policyValues(filter: "policyTypeId:'tmod:@turbot/gcp-network#/policy/types/backendBucketCdnCacheMode'") { … }
  • CLI
    • Get Policy Type
    • turbot graphql policy-type --id "tmod:@turbot/gcp-network#/policy/types/backendBucketCdnCacheMode"
    • Get Policy Settings
    • turbot graphql policy-settings --filter "policyTypeId:tmod:@turbot/gcp-network#/policy/types/backendBucketCdnCacheMode"
Guardrails
Guardrails Hub
  • Hub
  • Docs
  • Blog
  • Changelog
Products
  • GuardrailsGuardrails
  • PipesPipes
  • SteampipeSteampipe
  • PowerpipePowerpipe
  • FlowpipeFlowpipe
  • TailpipeTailpipe
Turbot
  • Home
  • About us
  • We're hiring!
  • Contact us
Community

Our community of practitioners love to discuss cloud governance & security.

Slack logoJoin us on Slack →

System StatusLegalSecurity
Terms of UseSecurityPrivacy
40
Mods
157
Resource Types
2,567
Policies
1,238
Controls
131
Quick Actions
91
IAM