Skip to content

Commit

Permalink
Increase the default value for MaxRootRotations (#645)
Browse files Browse the repository at this point in the history
The default value of 32 is quite small, it may break certain clients that are
trying to do complete tuf refresh on a large TUF repo.

Signed-off-by: Fredrik Skogman <kommendorkapten@github.com>
  • Loading branch information
kommendorkapten authored Jul 16, 2024
1 parent 5abb621 commit ecec5d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion metadata/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func New(remoteURL string, rootBytes []byte) (*UpdaterConfig, error) {

return &UpdaterConfig{
// TUF configuration
MaxRootRotations: 32,
MaxRootRotations: 256,
MaxDelegations: 32,
RootMaxLength: 512000, // bytes
TimestampMaxLength: 16384, // bytes
Expand Down
2 changes: 1 addition & 1 deletion metadata/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func TestNewUpdaterConfig(t *testing.T) {
remoteURL: "somepath",
rootBytes: []byte("somerootbytes"),
config: &UpdaterConfig{
MaxRootRotations: 32,
MaxRootRotations: 256,
MaxDelegations: 32,
RootMaxLength: 512000,
TimestampMaxLength: 16384,
Expand Down

0 comments on commit ecec5d3

Please sign in to comment.