@@ -14,6 +14,7 @@ import {
1414import {
1515 ApplicationError ,
1616 assertNotNullOrUndefined ,
17+ ENGINE_ROUTE_POLICY ,
1718 EngineHttpResponse ,
1819 EnginePrincipal ,
1920 ErrorCode ,
@@ -55,6 +56,7 @@ export const flowEngineWorker: FastifyPluginAsyncTypebox = async (app) => {
5556 {
5657 config : {
5758 allowedPrincipals : [ PrincipalType . ENGINE ] ,
59+ security : ENGINE_ROUTE_POLICY ,
5860 } ,
5961 schema : {
6062 description :
@@ -76,6 +78,7 @@ export const flowEngineWorker: FastifyPluginAsyncTypebox = async (app) => {
7678 {
7779 config : {
7880 allowedPrincipals : [ PrincipalType . ENGINE ] ,
81+ security : ENGINE_ROUTE_POLICY ,
7982 } ,
8083 schema : {
8184 description :
@@ -397,6 +400,7 @@ async function trackExecution(
397400const GetFileRequestParams = {
398401 config : {
399402 allowedPrincipals : [ PrincipalType . ENGINE ] ,
403+ security : ENGINE_ROUTE_POLICY ,
400404 } ,
401405 schema : {
402406 params : Type . Object ( {
@@ -408,6 +412,7 @@ const GetFileRequestParams = {
408412const UpdateStepProgress = {
409413 config : {
410414 allowedPrincipals : [ PrincipalType . ENGINE ] ,
415+ security : ENGINE_ROUTE_POLICY ,
411416 } ,
412417 schema : {
413418 body : UpdateRunProgressRequest ,
@@ -417,6 +422,7 @@ const UpdateStepProgress = {
417422const SendWebhookResponse = {
418423 config : {
419424 allowedPrincipals : [ PrincipalType . ENGINE ] ,
425+ security : ENGINE_ROUTE_POLICY ,
420426 } ,
421427 schema : {
422428 description :
@@ -428,6 +434,7 @@ const SendWebhookResponse = {
428434const UpdateFailureCount = {
429435 config : {
430436 allowedPrincipals : [ PrincipalType . ENGINE ] ,
437+ security : ENGINE_ROUTE_POLICY ,
431438 } ,
432439 schema : {
433440 description :
@@ -439,6 +446,7 @@ const UpdateFailureCount = {
439446const GetLockedVersionRequest = {
440447 config : {
441448 allowedPrincipals : [ PrincipalType . ENGINE ] ,
449+ security : ENGINE_ROUTE_POLICY ,
442450 } ,
443451 schema : {
444452 description :
@@ -453,6 +461,7 @@ const GetLockedVersionRequest = {
453461const RemoveFlowRequest = {
454462 config : {
455463 allowedPrincipals : [ PrincipalType . ENGINE ] ,
464+ security : ENGINE_ROUTE_POLICY ,
456465 } ,
457466 schema : {
458467 description :
0 commit comments