NLnetLabs / routinator

An RPKI Validator and RTR server written in Rust
https://nlnetlabs.nl/projects/routing/routinator/
BSD 3-Clause "New" or "Revised" License
454 stars 70 forks source link

--rrdp-keep-responses does not keep responses for repository that uses redirects #935

Open ties opened 7 months ago

ties commented 7 months ago

As a user, when I use routinator --rrdp-keep-responses ~/src/tmp/routinator-responses -vv server to log RRDP responses, I see an empty file for the repository at https://rpki1.rpki-test.sit.fraunhofer.de/rrdp/notification.xml.

I think that this is the only repository using redirects. This may be the only repository redirecting to a different FQDN.

$ routinator --rrdp-keep-responses ~/src/tmp/routinator-responses -vvv server
...
[DEBUG] starting new connection: https://rpki1.rpki-test.sit.fraunhofer.de/
[DEBUG] redirecting 'https://rpki1.rpki-test.sit.fraunhofer.de/rrdp/notification.xml' to 'https://c514fb3d-739f-478e-8c0e-1f14f751fee1.rpki.rpki-test.sit.fraunhofer.de/rrdp/notification.xml'
[DEBUG] starting new connection: https://c514fb3d-739f-478e-8c0e-1f14f751fee1.rpki.rpki-test.sit.fraunhofer.de/
~/src/tmp/routinator-responses/rpki1.rpki-test.sit.fraunhofer.de/rrdp/notification.xml$ ls -al
total 0
drwxr-xr-x@ 4 me  staff  128 Feb  7 15:45 .
drwxr-xr-x@ 3 me  staff   96 Feb  7 15:38 ..
-rw-r--r--@ 1 me  staff    0 Feb  7 15:38 2024-02-07T14:38:21.221806+00:00
-rw-r--r--@ 1 me  staff    0 Feb  7 15:45 2024-02-07T14:45:44.994853+00:00
ties commented 7 months ago

This repository seems to be using dynamic hostnames. This can cause metric (or well, when storing files, directory) bloat.

PNG image