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.

How to perform modifications on bins handled by succinct hash bin delegations?

See original GitHub issue

Description of issue or feature request: Currently, I am working to support succinct hash bin delegation as described in TAP 15 in Repository Editor for TUF. Repository Editor for Tuf is a CLI tool that tests the usability of the public API calls provided by python-tuf while also providing a good hands-on visualization approach to learn about python-tuf and the TUF specification as a whole.

While working on it I came up with the following question: how do we want to approach changes related to delegated bins represented by succinct_roles dictionary inside a targets role?

For example, what should we do when a user wants to do the following in a bin metadata file:

  1. add/remove a new key
  2. change threshold
  3. bump expiry
  4. add/remove a target
  5. add/remove/edit delegation
  6. bump version

I want to discuss it with everyone who is interested but will especially love to hear the opinions of the maintainers.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
lukpuehcommented, Jul 19, 2022

Sounds right to me, and I would even say that, in terms of metadata update chains, there is nothing special about hash bin delegation when compared to any other delegation. This means whenever you change the keys or thresholds in delegating metadata (root or targets), you likely want to resign the delegated metadata, if you control the signing keys, which should always be true for hash bin delegation.

And you are right, 3 to 6 shouldn’t affect the delegating role, but they do usually entail a chain of updates in snapshot and timestamp.

I left a similar comment a while ago in https://github.com/theupdateframework/python-tuf/issues/958#issuecomment-553830755

1reaction
mnm678commented, Jul 13, 2022

Good question. I think that anything that is included in the succinct_roles definition should be changed with Targets API calls, like the ones you show above.

But something that only affects one bin (like adding a target) can be handled directly by that bin, just like a normal role adding a target.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is Binary Authorization and how to improve Security ...
Run gcloud beta container binauthz policy import policy.yaml. The policy you are editing is the “default” policy, and it applies to all GKE ......
Read more >
Configuration - Spark 3.3.1 Documentation
SparkConf allows you to configure some of the common properties (e.g. master URL and application name), as well as arbitrary key-value pairs through...
Read more >
draft-ietf-suit-manifest-06 - A Concise Binary Object ...
A Concise Binary Object Representation (CBOR)-based Serialization Format for the Software Updates for Internet of Things (SUIT) Manifest
Read more >
High Dimensional Discrete Integration over the Hypergrid
mize over multiple bins of the hash function. Using this oracle we proposed a modified WISH algorithm and call it MB-WISH (Multi-Bin WISH)....
Read more >
Performance Improvements in .NET 7
This post deep-dives into hundreds of performance improvements that ... code size=231] 8: JIT compiled HashHelpers:GetPrime(int):int [Tier0, ...
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