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

Add JWT API key authentication to YOLOv4 #65

Merged
merged 3 commits into from
Jan 11, 2025
Merged

Add JWT API key authentication to YOLOv4 #65

merged 3 commits into from
Jan 11, 2025

Conversation

bgoelTT
Copy link
Contributor

@bgoelTT bgoelTT commented Dec 30, 2024

This PR addresses #64 by adding JWT API key authentication to the main inference endpoint. Authentication is performed similarly to the other inference servers, where the Authentication header is sent with a Bearer token.

Tests

Tests were added to tt-metal-yolov4/tests/test_inference_api.py to demonstrate valid and invalid API requests.

@bgoelTT bgoelTT added the enhancement New feature or request label Dec 30, 2024
@bgoelTT bgoelTT self-assigned this Dec 30, 2024
Copy link
Contributor

@milank94 milank94 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updates look good. Some reorganization could be done to consolidate some of the common utils such as jwt_util.py with the other models.

@sbennettTT please ensure that these updates are propagated to AI Playground

Copy link
Contributor

@sbennettTT sbennettTT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nothing crazy, good authentication implementation

@bgoelTT bgoelTT merged commit 99d6bb2 into main Jan 11, 2025
3 checks passed
@bgoelTT bgoelTT deleted the ben/yolov4-auth branch January 11, 2025 00:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants