]> git.ipfire.org Git - thirdparty/FORT-validator.git/commit
Separate TA caching logic from RPP caching logic
authorAlberto Leiva Popper <ydahhrk@gmail.com>
Sat, 21 Sep 2024 01:04:29 +0000 (19:04 -0600)
committerAlberto Leiva Popper <ydahhrk@gmail.com>
Sat, 21 Sep 2024 01:04:29 +0000 (19:04 -0600)
commit5da329d9b95209c5ebbfa1afced7bb7052a68a57
tree47a0db2feac632f5423e065f3f912e6a8fdfd724
parent9de06b67f7da2c54aa97a7d8c93eb2859baaecb9
Separate TA caching logic from RPP caching logic

(Was getting shot in the foot by overly reusing code.)

Testing and course correcting, week 2. Unstable.

Fixes (from the previous commit)

> 2. Fall back to rsync only on RRDP download failure; it's wasteful to
>    also do it on RRDP validation failure.

RPPs:
RRDP download failure triggers rsync download fallback.
RPP validation failure no longer triggers rsync download
fallback.

TAs:
HTTP download failure triggers rsync download fallback.
HTTP validation failure still triggers rsync download fallback.
(Because it's the TA, and needs to be treated more
paranoically.)

This commit is also a startup for

> 3. Must commit repository content at the RPP level, not at the module
>    level. (One failing RPP should not invalidate the whole module.)

Because I'm headed into a more explicit separation between "Repository"
and "RPP."
17 files changed:
src/cache.c
src/cache.h
src/cachent.c
src/cachent.h
src/cert_stack.c
src/cert_stack.h
src/object/certificate.c
src/object/certificate.h
src/object/tal.c
src/print_file.c
src/thread_var.c
src/thread_var.h
src/types/map.c
src/types/map.h
src/types/url.c
src/types/url.h
test/cache_test.c