-
Notifications
You must be signed in to change notification settings - Fork 29
minor: extend device state for secureboot and FDE status #1977
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -49,6 +49,9 @@ export type StatePatchV2Body = { | |||||||
| api_secret?: string; | ||||||||
| memory_usage?: number; | ||||||||
| memory_total?: number; | ||||||||
| is_secureboot_enabled?: boolean; | ||||||||
| is_storage_encrypted?: boolean; | ||||||||
| secureboot_keys_metadata?: string | null; | ||||||||
|
Comment on lines
+52
to
+54
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. State-patch v2 will never report these props:
Suggested change
|
||||||||
| storage_block_device?: string; | ||||||||
| storage_usage?: number; | ||||||||
| storage_total?: number; | ||||||||
|
|
||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| ALTER TABLE "device" ADD COLUMN IF NOT EXISTS "is secureboot enabled" BOOLEAN NULL; | ||
| ALTER TABLE "device" ADD COLUMN IF NOT EXISTS "is storage encrypted" BOOLEAN NULL; | ||
| ALTER TABLE "device" ADD COLUMN IF NOT EXISTS "secureboot keys metadata" JSONB NULL; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This doesn't actually match the generated schema from the sbvr so this would be an invalid migration, it's better to fix at the sbvr level but it's worth noting that you can generate the schema via |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -187,6 +187,9 @@ Term: memory usage | |
| Term: memory total | ||
| Concept Type: Integer (Type) | ||
|
|
||
| Term= secureboot keys metadata | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Personally I wouldn't expose this on v6, if it's info people want then they can update to using v7 |
||
| Concept Type: Short Text (Type) | ||
|
|
||
| Term: storage block device | ||
| Concept Type: Short Text (Type) | ||
|
|
||
|
|
@@ -567,10 +570,14 @@ Fact type: device has memory usage | |
| Necessity: each device has at most one memory usage | ||
| Fact type: device has memory total | ||
| Necessity: each device has at most one memory total | ||
| Fact type: device is secureboot enabled | ||
| Fact type: device has secureboot key metadata | ||
| Necessity: each device has at most one secureboot key metadata | ||
| Fact type: device has storage block device | ||
| Necessity: each device has at most one storage block device | ||
| Fact type: device has storage usage | ||
| Necessity: each device has at most one storage usage | ||
| Fact type: device is storage encrypted | ||
| Fact type: device has storage total | ||
| Necessity: each device has at most one storage total | ||
| Fact type: device has cpu usage | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.