Skip to content

Commit c40ad3d

Browse files
authored
fix(onboarding): add additionalProperties validation to vendor and risk extraction schemas (#2256)
1 parent 7536c1b commit c40ad3d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

apps/app/src/trigger/tasks/onboarding/onboard-organization-helpers.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,10 +284,12 @@ export async function extractVendorsFromContext(
284284
'residual_probability',
285285
'residual_impact',
286286
],
287+
additionalProperties: false,
287288
},
288289
},
289290
},
290291
required: ['vendors'],
292+
additionalProperties: false,
291293
}),
292294
system:
293295
'Extract vendor names from the following questions and answers. Return their name (grammar-correct), website, description, category, inherent probability, inherent impact, residual probability, and residual impact.',
@@ -757,10 +759,12 @@ export async function extractRisksFromContext(
757759
'category',
758760
'department',
759761
],
762+
additionalProperties: false,
760763
},
761764
},
762765
},
763766
required: ['risks'],
767+
additionalProperties: false,
764768
}),
765769
system: `Create a list of 8-12 risks that are relevant to the organization. Use action-oriented language, assume reviewers understand basic termilology - skip definitions.
766770
Your mandate is to propose risks that satisfy both ISO 27001:2022 clause 6.1 (risk management) and SOC 2 trust services criteria CC3 and CC4.

0 commit comments

Comments
 (0)