Skip to content

Consistent snapshots#53

Merged
lmars merged 7 commits intomasterfrom
consistent-snapshots
Jan 20, 2015
Merged

Consistent snapshots#53
lmars merged 7 commits intomasterfrom
consistent-snapshots

Conversation

@lmars
Copy link
Copy Markdown
Contributor

@lmars lmars commented Jan 17, 2015

The idea here is that repositories will default to using consistent snapshots, and can be disabled by running tuf init --consistent-snapshot=false before adding any target files.

If target files have already been added, the only way to change whether consistent snapshots are used is to run (the yet unimplemented) tuf regenerate --consistent-snapshot=false.

Closes #8.

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.

We can't assume that Content-Length will be present, since the response might be chunked.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thats why I return -1 below to indicate that fact, or is that logic flawed?

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.

Looks right, must have missed that the first time.

@titanous
Copy link
Copy Markdown
Contributor

Are we doing interop tests for both consistent hashing and not?

@lmars
Copy link
Copy Markdown
Contributor Author

lmars commented Jan 20, 2015

@titanous interop tests for consistent snapshots added

@lmars lmars force-pushed the consistent-snapshots branch from 9475c9c to b0d4c9b Compare January 20, 2015 01:05
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.

Return a url.Error here.

@titanous
Copy link
Copy Markdown
Contributor

LGTM pending my last comment.

lmars added a commit that referenced this pull request Jan 20, 2015
@lmars lmars merged commit ed8160e into master Jan 20, 2015
@lmars lmars deleted the consistent-snapshots branch January 20, 2015 01:18
rdimitrov pushed a commit to rdimitrov/go-tuf that referenced this pull request Jan 25, 2024
…eframework#53)

Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.11.0 to 0.12.0.
- [Commits](golang/crypto@v0.11.0...v0.12.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
rdimitrov pushed a commit that referenced this pull request Jan 29, 2024
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.11.0 to 0.12.0.
- [Commits](golang/crypto@v0.11.0...v0.12.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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.

Consistent snapshots

2 participants