transparency-dev / transparency-dev/tesseract

Migrate preloader

Open
#353 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Go
Stars
37
Forks
18
Avg merge
19h 22m
Merged PRs (30d)
15

Description

Right now, Preloaders runs on CloudBuild. This was a quick way to restart the preloader every hour in order to make it run with a fresh bearer token. When the preloader starts, it needs to know at which index to start reading entries from the source log. It uses the destination log size as a proxy.

Once the log is public:

  • we don't need to get a bearer token to submit to the log anymore
  • the log will receive submission from clients other than the preloader, therefore, the destination log size won't be a good proxy for the index to start reading entries at on the source log

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the Preloader implementation and its CloudBuild configuration, then trace how it chooses the source-log starting index and obtains the bearer token. The migration is complete when the preloader no longer depends on hourly CloudBuild restarts or bearer tokens, and does not use destination-log size as its source position after other clients can submit entries.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, google-cloud
Domain
backend, infrastructure
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.