question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RepositorySimulator: add support for delegated hash bins

See original GitHub issue

Description of issue or feature request:

Currently repository_tool.py provides an easy way to distribute a large number of target files over multiple delegated roles (hashed bins). A feature described in PEP458 that would be used in warehouse. https://github.com/theupdateframework/python-tuf/blob/2206fc917e46ff584dcae75e640e1144c8b9f078/tuf/repository_tool.py#L2494

Having such functionality in RepositorySimulator that uses metadata api will be useful for testing the newer code.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
joshuaglcommented, Oct 27, 2021

The hashed bin delegation code in repository_tool was cleaned up and simplified when the Warehouse work kicked off. See, for example, https://github.com/theupdateframework/python-tuf/pull/1007 and https://github.com/theupdateframework/python-tuf/pull/1012. Specifically:

As a follow-on we refactored some of the helper functions to be public API (see https://github.com/theupdateframework/python-tuf/pull/1058) in repository_lib for use with an early iteration of the metadata API:

1reaction
jkucommented, Oct 27, 2021

IMO this feature should not be implemented in test code but rather be part of repository tooling (#1136).

absolutely true as the mid/long term goal but it might still make sense to implement in RepositorySimulator first:

  • no need to wait for the library module to be able to test ngclient
  • gives us data about the complexity and what a good API (implemented on top of Metadata API) might look like
Read more comments on GitHub >

github_iconTop Results From Across the Web

Design repository library · Issue #1136 · theupdateframework/python ...
lukpueh added this to the Repository Library Refactor milestone on Sep 10, 2020 ... RepositorySimulator: add support for delegated hash bins #1639.
Read more >
Blockchain Gateways, Bridges and Delegated Hash-Locks
Abstract: In the current work we discuss the notion of gateways as a means for interoperability across different blockchain systems.
Read more >
hitachi cml190sxw samsung: Topics by WorldWideScience.org
With confusing documentation and baffling support, the references provided by phone manufacturers can be intimidating. Enter Samsung Galaxy S 6 For Dummies!
Read more >
RepositorySimulator: add support for delegated hash bins ...
Currently repository_tool.py provides an easy way to distribute a large number of target files over multiple delegated roles (hashed bins). A feature described ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found