@@ -21,6 +21,7 @@ import {
2121 PrincipalType ,
2222 ProgressUpdateType ,
2323 RunEnvironment ,
24+ WORKER_ROUTE_POLICY ,
2425} from '@openops/shared' ;
2526import { accessTokenManager } from '../authentication/context/access-token-manager' ;
2627import { flowRunService } from '../flows/flow-run/flow-run-service' ;
@@ -37,6 +38,7 @@ export const flowWorkerController: FastifyPluginAsyncTypebox = async (app) => {
3738 {
3839 config : {
3940 allowedPrincipals : [ PrincipalType . WORKER ] ,
41+ security : WORKER_ROUTE_POLICY ,
4042 } ,
4143 logLevel : 'silent' ,
4244 schema : {
@@ -63,6 +65,7 @@ export const flowWorkerController: FastifyPluginAsyncTypebox = async (app) => {
6365 {
6466 config : {
6567 allowedPrincipals : [ PrincipalType . WORKER ] ,
68+ security : WORKER_ROUTE_POLICY ,
6669 } ,
6770 schema : {
6871 description :
@@ -81,6 +84,7 @@ export const flowWorkerController: FastifyPluginAsyncTypebox = async (app) => {
8184 {
8285 config : {
8386 allowedPrincipals : [ PrincipalType . WORKER ] ,
87+ security : WORKER_ROUTE_POLICY ,
8488 } ,
8589 schema : {
8690 description :
@@ -104,6 +108,7 @@ export const flowWorkerController: FastifyPluginAsyncTypebox = async (app) => {
104108 {
105109 config : {
106110 allowedPrincipals : [ PrincipalType . WORKER ] ,
111+ security : WORKER_ROUTE_POLICY ,
107112 } ,
108113 schema : {
109114 description :
@@ -133,6 +138,7 @@ export const flowWorkerController: FastifyPluginAsyncTypebox = async (app) => {
133138 {
134139 config : {
135140 allowedPrincipals : [ PrincipalType . WORKER ] ,
141+ security : WORKER_ROUTE_POLICY ,
136142 } ,
137143 schema : {
138144 description :
@@ -169,6 +175,7 @@ export const flowWorkerController: FastifyPluginAsyncTypebox = async (app) => {
169175 {
170176 config : {
171177 allowedPrincipals : [ PrincipalType . WORKER ] ,
178+ security : WORKER_ROUTE_POLICY ,
172179 } ,
173180 schema : {
174181 description :
@@ -213,6 +220,7 @@ export const flowWorkerController: FastifyPluginAsyncTypebox = async (app) => {
213220 {
214221 config : {
215222 allowedPrincipals : [ PrincipalType . WORKER ] ,
223+ security : WORKER_ROUTE_POLICY ,
216224 } ,
217225 schema : {
218226 description :
0 commit comments