Unstructured-IO / unstructured-api

Apache License 2.0
489 stars 102 forks source link

Support API Key for self-hosted #321

Closed omikader closed 9 months ago

omikader commented 9 months ago

My team and I are using a self-hosted version of unstructured and we would like to secure our service, similar to how the hosted version uses API keys to prevent unauthorized access.

I was thinking it might be possible to pass in a single optional API key as an ENV variable to the Docker service such that any requests without the unstructured-api-key header are rejected. This way, we could reasonably ensure that our self-hosted version of unstructured is only invokable from our application.

Thanks for building such a great tool!