MCPcopy
hub / github.com/borgbackup/borg / _assert_secure

Method _assert_secure

src/borg/cache.py:200–206  ·  view source on GitHub ↗
(self, manifest, key)

Source from the content-addressed store, hash-verified

198 logger.debug("security: repository checks ok, allowing access")
199
200 def _assert_secure(self, manifest, key):
201 self.assert_location_matches()
202 self.assert_key_type(key)
203 self.assert_no_manifest_replay(manifest, key)
204 if not self.known():
205 logger.debug("security: remembering previously unknown repository")
206 self.save(manifest, key)
207
208 def assert_access_unknown(self, warn_if_unencrypted, manifest, key):
209 # warn_if_unencrypted=False is only used for initializing a new repository.

Callers 1

assert_secureMethod · 0.95

Calls 6

assert_key_typeMethod · 0.95
knownMethod · 0.95
saveMethod · 0.95
debugMethod · 0.80

Tested by

no test coverage detected