-
Notifications
You must be signed in to change notification settings - Fork 30
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?
Conversation
8ba6abd to
9b22c71
Compare
9b22c71 to
dcc1ab0
Compare
| is_secureboot_enabled?: boolean; | ||
| is_storage_encrypted?: boolean; | ||
| secureboot_keys_metadata?: string | null; |
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.
State-patch v2 will never report these props:
| is_secureboot_enabled?: boolean; | |
| is_storage_encrypted?: boolean; | |
| secureboot_keys_metadata?: string | null; |
| Concept Type: Integer (Type) | ||
|
|
||
| Term= secureboot keys metadata | ||
| Concept Type: Short Text (Type) |
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.
| Concept Type: Short Text (Type) | |
| Concept Type: JSON (Type) |
| @@ -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; No newline at end of file | |||
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.
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 npm run generate-model-schema and make sure the column types match
| Term: memory total | ||
| Concept Type: Integer (Type) | ||
|
|
||
| Term= secureboot keys metadata |
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.
Personally I wouldn't expose this on v6, if it's info people want then they can update to using v7
https://balena.fibery.io/Work/Improvement/Spec-for-Supervisor-+-API-changes-2388
related-to: