Skip to content

Commit

Permalink
feat: add new opaque tamper message (#40)
Browse files Browse the repository at this point in the history
* feat: add new opaque tamper message

* address comments and change field name

* fix ci?

* fix ci frfr

* fix ci on gd no cap
  • Loading branch information
TheButlah authored Jan 9, 2025
1 parent e806db4 commit 508e53b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
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;
}

0 comments on commit 508e53b

Please sign in to comment.