Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
183 changes: 127 additions & 56 deletions factory_reset/factory_reset.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions factory_reset/factory_reset.proto
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,20 @@ message StartRequest {
bool zero_fill = 2;
// Instructs the Target to retain certificates
bool retain_certs = 3;

enum DeleteImages {
// do not delete any images.
UNSPECIFIED = 0;
// delete only images which the target deems sensitive
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any guidance for vendors on this sensitive part? this is very vague.

SENSITIVE_IMAGES = 1;
// delete all images on the target (including sensitive images)
ALL_IMAGES = 2;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this mean that the node will not be able to boot again without manual intervention?

}
// Instructs the target to cleanup images before proceeding with the
// factory reset.
// If sensitive images exist and delete_images is UNSPECIFIED, then
// the target will return an INVALID_ARGUMENT error
DeleteImages delete_images = 4;
}

message ResetSuccess {
Expand Down