mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 16:09:01 +08:00
Don't write Octoprint keys to workspace projects
They should not be shared since they are private keys, so let's protect the user from accidentally sharing it via a project file.
This commit is contained in:
parent
20ab6265c8
commit
50ccf101d8
@ -97,7 +97,7 @@ class ThreeMFWorkspaceWriter(WorkspaceWriter):
|
|||||||
file_in_archive.compress_type = zipfile.ZIP_DEFLATED
|
file_in_archive.compress_type = zipfile.ZIP_DEFLATED
|
||||||
|
|
||||||
# Do not include the network authentication keys
|
# Do not include the network authentication keys
|
||||||
ignore_keys = {"network_authentication_id", "network_authentication_key"}
|
ignore_keys = {"network_authentication_id", "network_authentication_key", "octoprint_api_key"}
|
||||||
serialized_data = container.serialize(ignored_metadata_keys = ignore_keys)
|
serialized_data = container.serialize(ignored_metadata_keys = ignore_keys)
|
||||||
|
|
||||||
archive.writestr(file_in_archive, serialized_data)
|
archive.writestr(file_in_archive, serialized_data)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user