-
Notifications
You must be signed in to change notification settings - Fork 142
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
feat: add support for API key validation for self-hosted #322
Conversation
Thanks for the PR! This certainly makes sense. A few things:
|
@awalker4 all set! Thanks for the quick review. Let me know if there's anything else you'd like to see before merging 🙂 |
Final thing - can you bump the version to 0.0.60 in the changelog? You can run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Head branch was pushed to by a user without write access
Head branch was pushed to by a user without write access
This PR gives people the ability to use the API key header to validate requests when self-hosting Unstructured. If the optional environment variable of
UNSTRUCTURED_API_KEY
does not match the request header ofunstructured-api-key
, then we fail with a401
response instead of fulfilling the request.This will allow people to self-host unstructured with confidence that only internal applications that have access to the shared key can use the service.
Closes #321