Skip to content

Migrate to tlog policy - #1128

Open
BenBirt wants to merge 7 commits into
transparency-dev:mainfrom
BenBirt:migrate_to_tlog_policy
Open

Migrate to tlog policy#1128
BenBirt wants to merge 7 commits into
transparency-dev:mainfrom
BenBirt:migrate_to_tlog_policy

Conversation

@BenBirt

@BenBirt BenBirt commented Aug 19, 2026

Copy link
Copy Markdown

(This is a continuation of @AlCutter's #1127. PR text copied below.)

This PR migrates Tessera to use the policy package from the formats repo when configuring witness and mirroring.

The old in-repo approach has been marked as deprecated, but an effort has been made to maintain backwards compatibility for folks already using that approach. This has made the diff quite a bit larger than it otherwise would have been.

Towards #1123

@BenBirt
BenBirt requested a review from a team as a code owner August 19, 2026 12:44
@BenBirt
BenBirt requested a review from phbnf August 19, 2026 12:44
Comment thread append_lifecycle_test.go
} {
t.Run(test.desc, func(t *testing.T) {
opts := NewAppendOptions().WithWitnesses(witnesses, test.witnessOpts)
if len(opts.witnesses.Components) != 1 {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this check len(opts.wintessPolicy.Witnesses)?

Comment thread witness.go
}

// alloc returns a unique name, preferring want.
func (a *nameAllocator) alloc(want string) string {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this block empty strings for "want"?Or maybe it's not relevant because no code would ever call that with an empty string?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants