RRDP serial numbers should only increase.
authorclaudio <claudio@openbsd.org>
Thu, 16 Jun 2022 16:09:56 +0000 (16:09 +0000)
committerclaudio <claudio@openbsd.org>
Thu, 16 Jun 2022 16:09:56 +0000 (16:09 +0000)
commit79ab6f25dc0f9a5b9ee3db1dcf2f8a27de636cdd
tree1ac6492e9be942e5efff27cd3a269daa222f6a3e
parenta656415f7e040b982c06247659a4617de8045c04
RRDP serial numbers should only increase.
Warn if the serial number decreases between syncs.

On top of this only allow a small window of up to 2 deltas from the
current one to consider our cache to be in sync.
The number 2 is probably to conservative and should be adjusted once
some data points got collected.

It seems to happen that CAs restore RRDP snapshots instead of building
a fresh snapshot with a new session-id. Which results in rpki-client to
ignore the repo until the serial number is bigger again.
OK tb@
usr.sbin/rpki-client/rrdp_notification.c