Harden Windows DLP enforcement and Electron runtime packaging

This commit is contained in:
Karl committed 2026-10-13 23:19:22 +02:00
1 parent e7d778aeac
commit 8a253eda89
120 files changed
+3569 -135

No files matched your search

+1
View File
@@ -13,6 +13,7 @@ export const GroupRestrictionsSchema=z.object({
lockedSections:unique(z.enum(SETTINGS_SECTIONS),SETTINGS_SECTIONS.length).default([]),
managedBookmarks:BookmarkItemsSchema.default([])
}).strict();
// eslint-disable-next-line no-control-regex -- Explicitly reject control characters in security-sensitive input.
export const PolicyGroupSchema=z.object({id,name:z.string().min(1).max(100).refine(v=>!/[\u0000-\u001f\u007f]/.test(v)),
memberDeviceIds:unique(id,10000),restrictions:GroupRestrictionsSchema,
rollout:z.object({stage:z.enum(['pilot','expanded','all']),deviceIds:unique(id,10000).default([])}).strict()