Open
Description
openedon Oct 29, 2021
JupterLab has started recently unconditionally adding orig_nbformat: 1
into edited notebook since jupyterlab/jupyterlab#10118. This broke notebook trust, since orig_nbformat
is included in sign.compute_signature
but is later stripped in v4/rwbase.strip_transient
on save. Therefore digest computed before save does not match one restored.
sign.compute_signature
should not only do signature_removed
but skip all transient metadata in order to ensure that we compute signature on exactly the same structure as it will be saved to disk.
I am not jupyter developer so I don't want to propose PR as I don't know what is desired implementation of the fix for this problem.
This issue is related to jupyterlab/jupyterlab#11005
Metadata
Assignees
Labels
No labels
Activity