Skip to content

Commit

Permalink
feat: Added auth policy for health check endpoints (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
niallthomson authored Apr 3, 2024
1 parent ceeeefa commit b872734
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/codebuild/backend/src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ export const awsCodebuildPlugin = createBackendPlugin({
httpAuth,
}),
);
httpRouter.addAuthPolicy({
path: '/health',
allow: 'unauthenticated',
});
},
});
},
Expand Down
4 changes: 4 additions & 0 deletions plugins/codepipeline/backend/src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ export const awsCodePiplinePlugin = createBackendPlugin({
httpAuth,
}),
);
httpRouter.addAuthPolicy({
path: '/health',
allow: 'unauthenticated',
});
},
});
},
Expand Down
4 changes: 4 additions & 0 deletions plugins/ecs/backend/src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ export const amazonEcsPlugin = createBackendPlugin({
httpAuth,
}),
);
httpRouter.addAuthPolicy({
path: '/health',
allow: 'unauthenticated',
});
},
});
},
Expand Down

0 comments on commit b872734

Please sign in to comment.