From 75ca093b246603f886548dbb5d666972e92c591e Mon Sep 17 00:00:00 2001 From: carlosmonastyrski Date: Thu, 27 Mar 2025 16:31:25 -0300 Subject: [PATCH] Add FAQ docs for custom headers --- docs/cli/faq.mdx | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/docs/cli/faq.mdx b/docs/cli/faq.mdx index 47e89a48f6..02c539e619 100644 --- a/docs/cli/faq.mdx +++ b/docs/cli/faq.mdx @@ -33,3 +33,28 @@ Yes. This is simply a configuration file and contains no sensitive data. https://app.infisical.com/project//settings ``` + + + + The Infisical CLI supports custom HTTP headers for requests to servers that require additional authentication. Set these headers using the `INFISICAL_CUSTOM_HEADERS` environment variable: + + ```bash + export INFISICAL_CUSTOM_HEADERS="Access-Client-Id=your-client-id Access-Client-Secret=your-client-secret" + ``` + + After setting this environment variable, run your Infisical commands as usual. + + + + + Custom headers are necessary when your Infisical server is protected by services like Cloudflare Access or other reverse proxies that require specific authentication headers. Without this feature, you would need to implement security workarounds that might compromise your security posture. + + + + + Custom headers should be specified in the format `headername1=headervalue1 headername2=headervalue2`, with spaces separating each header-value pair. For example: + + ```bash + export INFISICAL_CUSTOM_HEADERS="Header1=value1 Header2=value2 Header3=value3" + ``` + \ No newline at end of file