Repository navigation
Conversation
…toring endpoints Allow each log in var.logs to opt in (enable_cdn = true) to serving Static CT monitoring endpoints (/checkpoint, /tile/*, /issuer/*) from its GCS bucket via a Cloud CDN-enabled google_compute_backend_bucket with cache_mode = "USE_ORIGIN_HEADERS". - Defaults enable_cdn to false so existing deployments are unaffected until explicitly enabled per log/environment. - Supports optional bucket_name override when a log's GCS bucket name differs from <name>.<submission_host_suffix>. - Scopes random_id.suffix keepers to region and submission_host_suffix so adding optional fields to var.logs does not trigger managed SSL certificate replacement.
patflynn
requested review from
mhutchinson
and removed request for
a team and
mhutchinson
October 7, 2026 16:49
patflynn
marked this pull request as draft
October 7, 2026 17:01
…uckets The Google provider sends requestCoalescing=false when the field is unset, which turns off Cloud CDN's default of collapsing concurrent cache fills for the same object.
Without create_before_destroy, turning enable_cdn off fails: OpenTofu deletes the backend bucket before it updates the URL map, and GCP rejects the delete while the URL map still references it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Allow each log in
var.logsto opt in (enable_cdn = true) to serving Static CT monitoring endpoints (/checkpoint,/tile/*,/issuer/*) from its GCS bucket via a Cloud CDN-enabledgoogle_compute_backend_bucketwithcache_mode = "USE_ORIGIN_HEADERS".Details & Safety
enable_cdn = optional(bool, false)): Defaults tofalseso existing load balancer deployments are completely unaffected until explicitly enabled per log/environment (e.g.static-ct-stagingfirst, thenstatic-ct-prod).USE_ORIGIN_HEADERScache mode: Respects GCS objectCache-Controlheaders (max-age=604800,immutableon tiles and entry bundles for the full 7-day TTL without clamping,public, max-age=3600on issuers, andno-cachewith conditional edge revalidation / request coalescing on/checkpoint).bucket_nameoverride: Defaults to${name}.${submission_host_suffix}(the log origin), while allowing logs with non-domain bucket names (such as legacyarche*staging logs) to specify an explicitbucket_name.random_id.suffixkeepers.logstoregionandsubmission_host_suffixso adding optional fields tovar.logsor togglingenable_cdnnever triggers managed SSL certificate replacement.