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.

Must signed.version be incremented every time a role is re-signed?

See original GitHub issue

Description of issue or feature request:

After reading the TUF specification and studying the basic_repo.py example, one thing remains unclear to me:

When exactly do we need to increment signed.version?

It is clear that we need to increment the signed.version after e.g. adding a new target, as detailed in the basic_repo.py example.

However, what if we only modify signed.expires, after a role has expired, without changing anything else? Do we also need to increment signed.version in that case? That would imply e.g. the version of timestamp is incremented every time it is re-signed.

In general, do we need to increment a role’s signed.version every time we re-sign that role, without exception?

Current behavior:

It is not explicitly clear from the documentation when signed.version needs to be incremented.

Expected behavior:

It would be very helpful if the documentation/specification could clarify this point explicitly.

Perhaps the basic_repo.py example could also show a snippet where an expired timestamp is re-signed (without any changes to the root, targets, or snapshot metadata).

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:21 (11 by maintainers)

github_iconTop GitHub Comments

3reactions
lukpuehcommented, Jun 8, 2022

bump the version whenever someone signs a role

… and publishes it for someone to consume.

I would say.

3reactions
jkucommented, Jun 8, 2022

Good point, stuff like this would make the docs much better. I believe any change to published signed metadata should lead to version bump: otherwise clients can’t know when they need to download new metadata (in the case that they already have the previous version downloaded).

The only modification to metadata that doesn’t need this that I could imagine is adding signatures… but even that seems safe only before the metadata is made public to clients (otherwise some clients could have fewer signatures and then signing keys might get changed and who knows how that would end).

Read more comments on GitHub >

github_iconTop Results From Across the Web

One of our employees just resigned after receiving the newly ...
Unless you had mentioned so when releasing the new increment and employee had accepted the same formally, you cannot roll back and pay...
Read more >
c# - Can I automatically increment the file build version when ...
If you increment the AssemblyVersion, any project that uses your dll will need to be re-compiled. However, if you keep the AssemblyVersion the...
Read more >
How to have an auto incrementing version number in Visual ...
I currently hard code a version number in a site master page using a label but I want to be able to displayed...
Read more >
The bundle version, NNN, must be - Apple Developer
Since today, I'm getting this message (including the typo) every single time I try to upload a new build of my app to...
Read more >
What to Know About Sign-On Bonuses - US News Money
Some companies pay the sign-on bonus in one lump sum after the new employee signs the paperwork for a new job. Others pay...
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