fix: identify APT local-file handoff failure and verify Windows admin tunnel
Rust development slice / linux (push) Failing after 6s

This commit is contained in:
2026-11-13 14:42:44 +01:00
parent a707d80e40
commit e18fae0e8a
12 changed files with 483 additions and 17 deletions
+5
View File
@@ -23,6 +23,11 @@ class DownloadGuards(unittest.TestCase):
for delta in (dt.timedelta(days=1),dt.timedelta(days=1,seconds=1)):
self.assertIsNone(select_file('download',self.config['url_path'],self.config,self.now+delta))
def test_explicit_repair_allowlist_cannot_expose_another_file(self):
self.config['public_files']={'/repair.zip':'windows-dev-repair.zip','/bad':'../../domain.key'}
self.assertEqual(select_file('download','/repair.zip',self.config,self.now),Path('/srv/rmm-bootstrap-download/windows-dev-repair.zip'))
self.assertIsNone(select_file('download','/bad',self.config,self.now))
def test_acme_has_no_arbitrary_file_path(self):
token='a'*43
self.assertEqual(select_file('acme','/.well-known/acme-challenge/'+token,{},self.now),Path('/srv/rmm-bootstrap-acme')/token)