OpCert counters

Open
#40 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
haskell
Domain
security

Research direction

Start with the context in issue #32 and the current KES Agent handling of OpCert serial numbers and opcert.counter. Clarify the security scenario for rejecting gaps, recovery after an incorrect or compromised certificate, and missed uploads in self-healing networks; done means the behavior and reset or recovery approach are agreed and documented.

Written by the indexing model from the issue text.

Description

backburner research

Split off from #32

OpCerts should be rejected when their serial number does not match the next serial number in sequence.
Currently, KES Agent only rejects opcerts whose serial numbers are the same or lower than the current one, and it does not track serial numbers itself. This means that when a KES Agent restarts, it will accept any OpCert (provided the signature checks out), and it will always accept OpCerts whose serial number is higher than that of the one it currently holds.

Clarify:

  • What exactly is the scenario against which exact serial number checks defend? (That is, why is it important to not only check that no serial number has been used twice, but also that there are no gaps in the sequence of serial numbers?)
  • How do we currently handle the situation where a user has generated an incorrect/compromised OpCert, and needs to generate a new one without installing the incorrect one? This would require resetting the OpCert counter (opcert.counter), but AFAICT, there is no straightforward way of doing that.
  • How are we going to handle a situation where multiple KES agents are running in a self-healing network, and one of them misses a key upload due to being unavailable for a long enough amount of time?
Dominant language
Haskell
Stars
2
Forks
13
PR merge metrics
No merged PRs in 30d

Getting set up

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.

More from IntersectMBO/kes-agent

All issues in IntersectMBO/kes-agent

Similar issues

More Haskell issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.