Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ terraform {

locals {
source_log_uri = "https://ct.googleapis.com/logs/us1/argon2025h1"
start_index_offset = 300000 # Entries that did not make it into arche2025h1
}

include "root" {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ terraform {

locals {
source_log_uri = "https://ct.googleapis.com/logs/us1/argon2025h2"
start_index_offset = 240000 # Entries that did not make it into arche2025h2
}

include "root" {
Expand Down
2 changes: 1 addition & 1 deletion deployment/modules/gcp/cloudbuild/preloader/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ resource "google_cloudbuild_trigger" "preloader_trigger" {
id = "ct_preloader"
name = "golang"
script = <<EOT
START_INDEX=$(curl -H "Authorization: Bearer $(cat /workspace/cb_access)" ${var.monitoring_url}/checkpoint | head -2 | tail -1)
START_INDEX=$(($(curl -H "Authorization: Bearer $(cat /workspace/cb_access)" ${var.monitoring_url}/checkpoint | head -2 | tail -1)+${var.start_index_offset}))
END_INDEX=$(($START_INDEX+360000))
echo "Will run preloader between $START_INDEX and $END_INDEX"
go run github.com/google/certificate-transparency-go/preload/preloader@master \
Expand Down
5 changes: 5 additions & 0 deletions deployment/modules/gcp/cloudbuild/preloader/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,8 @@ variable "source_log_uri" {
description = "URL of the source RFC6962 log"
type = string
}

variable "start_index_offset" {
description = "Offset to apply to the start index"
type = number
}
Loading