theupdateframework / theupdateframework/specification

Introduce a notion of slack time to the update worfklow's fixed notion of time

Open
#137 1 comment 1 reaction 1 assignee View on GitHub

@joshuagl is already working on this.

Since Dec 3, 2020.

enhancement
Dominant language
Python
Stars
405
Forks
59
Avg merge
3d 4h
Merged PRs (30d)
1

Description

It could be useful to allow for some slack in metadata expiration time during the client update workflow; for example to help ameliorate the impact of issues such as NTP drift, or to help on clients without real-time clocks.

Such a notion of slack time was introduced in #118, but later removed in #136 (as it was specified in a way which caused too much confusion).

Pseudocode for such a feature might look like (h/t @trishankatdatadog):

# T is the slack time value, i.e. 10mins
fixed_time = now(UTC) - T
# language in the spec
not_expired = expiration > fixed_time
# complement
expired = expiration <= fixed_time

If such a feature is desirable, it may be simpler to specify reliably after #121 is completed.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.