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.

Expiration check does not follow the spec

See original GitHub issue

Description of issue or feature request:

The metadata expiry check code does not follow the specification:

Check for a freeze attack. The expiration timestamp in the trusted $ROLE metadata file MUST be higher than the fixed update expiration time.

Current behavior:

expires < now

Expected behavior:

expires <= now

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:22 (19 by maintainers)

github_iconTop GitHub Comments

3reactions
ericktcommented, Dec 3, 2020

@joshuagl - you are correct, we are using <= in rust-tuf and go-tuf.

2reactions
joshuaglcommented, Dec 8, 2020

I’ve created a PR against python-tuf (#1235) and filed issues against the in-toto specification (in-toto/docs#42) and reference implementation (in-toto/in-toto#417). That just leaves Tough that doesn’t follow the rough consensus here, @iliana would you like me to file an issue there?

Read more comments on GitHub >

github_iconTop Results From Across the Web

When Do Checks Expire? - Investopedia
Key Takeaways · By law, banks are only required to honor checks for up to six months.1 · It's wise to contact the...
Read more >
specification/tuf-spec.md at master - GitHub
The framework downloads the file and performs security checks to ensure that the downloaded file is exactly what is expected according to the...
Read more >
how do i test cookie expiry in rails rspec - Stack Overflow
To test that expiry is being set properly in the controller setting the cookie, you could stub out the #cookies method and make...
Read more >
Product Dating Information Statement - Sigma-Aldrich
Sigma-Aldrich further suggests following industry laboratory practices of using products with no expiration date or retest dates within 5 years ...
Read more >
HTTP/1.1: Header Field Definitions
If max-stale is assigned a value, then the client is willing to accept a response that has exceeded its expiration time by no...
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