Feature: Admin PKI fields (#619)

* Add admin PKI fields

* Renaming state ref

* WIP: Refactoring

* Refactoring Security Config

* Ensure admin keys have been set before allowing managed mode
This commit is contained in:
philon-
2025-05-16 10:24:41 -04:00
committed by GitHub
parent 513a285fee
commit 1274584497
5 changed files with 257 additions and 105 deletions
+5 -2
View File
@@ -5,13 +5,16 @@ import { IsBoolean, IsString } from "class-validator";
export class SecurityValidation implements
Omit<
Protobuf.Config.Config_SecurityConfig,
keyof Message | "adminKey" | "privateKey" | "publicKey"
| keyof Message
| "adminKey"
| "privateKey"
| "publicKey"
> {
@IsBoolean()
adminChannelEnabled: boolean;
@IsString()
adminKey: string;
adminKey: [string, string, string];
@IsBoolean()
bluetoothLoggingEnabled: boolean;