Skip to content

k8s HTTP retriever securely pass api key header #1822

Answered by thomaspoignant
tomflenner asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @tomflenner 👋 !
I am not super familiar with how sealed secret works but if you can use them as environment variables you can mount your API key in the HTTP header of your HTTP retriever inside the relay proxy.

I just did a test on my local environment and you can add an environment variable that looks like RETRIEVER_HEADERS_AUTHORIZATION=Bearer xxx when starting your container and the header will be added to every HTTP calls made by the HTTP retriever.

Would it work for your use case?

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@tomflenner
Comment options

@thomaspoignant
Comment options

@tomflenner
Comment options

Answer selected by thomaspoignant
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants