bgp / stayrtr

RPKI-To-Router server implementation in Go
BSD 3-Clause "New" or "Revised" License
91 stars 13 forks source link

Remove -checktime, instead honor `expires` in JSON #3

Closed job closed 3 years ago

job commented 3 years ago

The RTR daemon should monitor the per-VRP expires key and expire automatically out-of-the-box.

randomthingsandstuff commented 3 years ago

What about when expires key doesn't exist? Wasn't this added to up-rev rpki-client code only? Not sure if this will be problematic from xversion perspective.

job commented 3 years ago

We have a few (not mutually exclusive) options:

job commented 3 years ago

made some progress

vurt$ ./cmd/stayrtr/stayrtr -cache=/var/db/rpki-client/json -checktime=true
ERRO[0000] Error updating: VRP JSON file is older than 24 hours: 2020-07-17 13:38:44 +0000 UTC
INFO[0000] StayRTR Server started (sessionID:13855, refresh:3600, retry:600, expire:7200)
^C

vurt$ ./cmd/stayrtr/stayrtr -cache=/var/db/rpki-client/json -checktime=false
INFO[0000] New update (971 uniques, 971 total prefixes). 0 bytes. Updating sha256 hash  -> 2e25e354abf2c393784daf1e6ca4f7cff5b013abc81a9ccff6ed9818244d0b95
INFO[0000] Updated added, new serial 0
INFO[0000] StayRTR Server started (sessionID:21149, refresh:3600, retry:600, expire:7200)