Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add new opaque tamper message #40

Merged
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
1 change: 1 addition & 0 deletions messages/sec.options
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
orb.mcu.sec.SERequest.data max_size: 512
orb.mcu.sec.Tamper.unencrypted_json max_size: 640
16 changes: 13 additions & 3 deletions messages/sec.proto
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,15 @@ message SecToJetson
orb.mcu.Versions versions = 2;
orb.mcu.Log log = 3;
orb.mcu.sec.SEResponse se_response = 4;
orb.mcu.sec.private.Tamper tampered = 5;
orb.mcu.sec.private.Tamper tampered = 5 [deprecated = true];
orb.mcu.BatteryStatus battery_status = 7;
orb.mcu.FatalError fatal_error = 8;
orb.mcu.sec.private.TamperRaw tamper_raw = 9;
orb.mcu.sec.private.TamperStates tamper_states = 10;
orb.mcu.sec.private.TamperRaw tamper_raw = 9 [deprecated = true];
orb.mcu.sec.private.TamperStates tamper_states = 10 [deprecated = true];
orb.mcu.Temperature temperature = 11;
orb.mcu.MemfaultEvent memfault_event = 12;
orb.mcu.HardwareDiagnostic hardware_diag = 13;
orb.mcu.sec.Tamper tamper = 14;
}
}

Expand All @@ -68,3 +69,12 @@ message SEResponse
int32 error_code = 2;
bytes data = 3;
}

message Tamper {
/// Contains tamper information serialized as json. It is "opaque" because
/// the schema of the json is not known by orb-messages. Inspecting the
/// json is instead done at run time by other software.
// NOTE: in proto3, all fields are implicitly optional. But we mark it
// explicitly here just to be extra clear.
optional string unencrypted_json = 1;
}