Closed omikader closed 9 months ago
Thanks for the PR! This certainly makes sense. A few things:
test_general/api.test_app.py
to validate?@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 make version-sync
to bump all the relevant files. Thanks!
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 https://github.com/Unstructured-IO/unstructured-api/issues/321