You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix unsafe local mode to load rotated roots from disk
Previously, unsafe local mode would only use the initial trusted
root and wouldn't load any rotated roots from disk. This meant
that if roots were rotated while online, then switching to unsafe
local mode would fail to recognize the newer root versions.
This fix adds:
- loadRootFromDisk(): New method that loads rotated root metadata
from local disk, similar to how online mode loads from remote
- Updated unsafeLocalRefresh(): Now calls loadRootFromDisk() to
load any rotated roots before loading other metadata
- Updated loadRoot(): Persists versioned root files (N.root.json)
to disk for offline use by unsafe local mode
This allows unsafe local mode to properly handle root rotations
when operating offline, as long as the rotated roots were
previously downloaded in online mode.
0 commit comments