Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Made /health open for monitoring #260

Merged
merged 1 commit into from
May 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions middleware/app/api/routes/health.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@


@router.get("/")
def health_check(
x_api_key: Optional[str] = Header(None),
):
def health_check():
"""
Perform checks to verify system health.
For instance, check database connection, external services, etc.
Expand All @@ -29,9 +27,6 @@ def health_check(
FUNCTION_NAME = "health_check()"
log.info("Entering {}".format(FUNCTION_NAME))

if x_api_key != os.getenv("AWS_API_KEY"):
preprocess_external_call(x_api_key)

response = health_service.health_check()

log.info("Exiting {}".format(FUNCTION_NAME))
Expand Down
2 changes: 0 additions & 2 deletions middleware/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,6 @@ Resources:
Ref: ByteShareAPIGW
Path: /health
Method: any
Auth:
ApiKeyRequired: true
UploadApi:
Type: Api
Properties:
Expand Down
Loading