fix: identify APT local-file handoff failure and verify Windows admin tunnel
Rust development slice / linux (push) Failing after 6s
Rust development slice / linux (push) Failing after 6s
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user