Production Critical: Use PostgreSQL storage backend in production. In-memory storage is for development/testing ONLY and will block GDPR endpoints in production.
GDPR_STORAGE_BACKEND
Purpose: Storage backend for compliance data (user profiles, preferences, consents, conversations, audit logs)
To run OpenAPI schema validation locally, you must set:
export JWT_SECRET_KEY="your-secret-key"
Then run:
make validate-openapi
Or:
python scripts/validation/validate_openapi.py
The validation will fail with the following error if JWT_SECRET_KEY is not set:
CRITICAL: JWT secret key not configured. Set JWT_SECRET_KEY environment variableor configure via Infisical. The service cannot start without a secure secret key.
CI/CD Configuration
GitHub Actions workflows automatically inject required secrets from repository secrets:
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"MCP Server with LangGraph","colors":{"primary":"#087056","light":"#07C983","dark":"#087056"},"logo":{"light":"/logo/light.svg","dark":"/logo/dark.svg"},"favicon":"/favicon.svg","api":{"playground":{}},"navbar":{"links":[{"href":"https://github.com/vishnu2kmohan/mcp-server-langgraph/discussions","label":"Support"}],"primary":{"type":"button","label":"GitHub","href":"https://github.com/vishnu2kmohan/mcp-server-langgraph"}},"footer":{"socials":{"github":"https://github.com/vishnu2kmohan/mcp-server-langgraph"}},"search":{"prompt":"Ask anything about MCP Server with LangGraph"},"integrations":{"telemetry":{"enabled":false}},"navigation":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/vishnu2kmohan/mcp-server-langgraph"},{"anchor":"Community","icon":"discord","href":"https://github.com/vishnu2kmohan/mcp-server-langgraph/discussions"},{"anchor":"CHANGELOG","icon":"newspaper","href":"https://github.com/vishnu2kmohan/mcp-server-langgraph/blob/main/CHANGELOG.md"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"hasAudioNarration":false,"customDomains":[],"gitSource":{"type":"github","owner":"local","repo":"local","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"local","isBase":true},"buildId":"local","clientVersion":"0.0.4173"},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":false,"isLoggedInCli":false,"mintExport":{}},"customCss":[],"page":{"pagePath":"reference/environment-variables","slug":"/reference/environment-variables","pageMetadata":{"title":"Environment Variables Reference","description":"This document lists all environment variables used by the MCP Server LangGraph application. - `JWT_SECRET_KEY` (REQUIRED)","icon":"file","seoTitle":"Environment Variables Reference - Reference Guide","seoDescription":"Technical reference: This document lists all environment variables used by the MCP Server LangGraph application. - `JWT_SECRET_KEY` (REQUIRED)","keywords":["reference","configuration","MCP Server","technical docs"],"contentType":"reference","href":"/reference/environment-variables"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"This document lists all environment variables used by the MCP Server LangGraph application. - \", _jsx(_components.code, {\n children: \"JWT_SECRET_KEY\"\n }), \" (REQUIRED)\"]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,h5:`h5`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`This document lists all environment variables used by the MCP Server LangGraph application.`}),`\n`,_jsx(Heading,{level:`3`,id:`required-environment-variables`,children:`Required Environment Variables`}),`\n`,_jsx(Heading,{level:`4`,id:`core-application`,children:`Core Application`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`JWT_SECRET_KEY`})}),` (REQUIRED)`,`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Purpose: Secret key for JWT token signing and validation`}),`\n`,_jsx(_components.li,{children:`Type: String (minimum 32 characters recommended)`}),`\n`,_jsxs(_components.li,{children:[`Example: `,_jsx(_components.code,{children:`export JWT_SECRET_KEY=\"your-secure-secret-key-here\"`})]}),`\n`,_jsx(_components.li,{children:`Used by: Authentication, Authorization, OpenAPI validation`}),`\n`,_jsxs(_components.li,{children:[`Security: ⚠️ `,_jsx(_components.strong,{children:`CRITICAL`}),` - Must be kept secret and never committed to version control`]}),`\n`]}),`\n`]}),`\n`]}),`\n`,_jsx(Heading,{level:`4`,id:`llm-api-keys`,children:`LLM API Keys`}),`\n`,_jsx(_components.p,{children:`At least one LLM provider API key is required for the agent to function:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:_jsx(_components.code,{children:`ANTHROPIC_API_KEY`})})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Purpose: API key for Claude models`}),`\n`,_jsx(_components.li,{children:`Provider: Anthropic`}),`\n`,_jsxs(_components.li,{children:[`Example: `,_jsx(_components.code,{children:`export ANTHROPIC_API_KEY=\"sk-ant-...\"`})]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:_jsx(_components.code,{children:`OPENAI_API_KEY`})})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Purpose: API key for GPT models`}),`\n`,_jsx(_components.li,{children:`Provider: OpenAI`}),`\n`,_jsxs(_components.li,{children:[`Example: `,_jsx(_components.code,{children:`export OPENAI_API_KEY=\"sk-...\"`})]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:_jsx(_components.code,{children:`GOOGLE_API_KEY`})})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Purpose: API key for Gemini models`}),`\n`,_jsx(_components.li,{children:`Provider: Google`}),`\n`,_jsxs(_components.li,{children:[`Example: `,_jsx(_components.code,{children:`export GOOGLE_API_KEY=\"AIza...\"`})]}),`\n`]}),`\n`]}),`\n`]}),`\n`,_jsx(Heading,{level:`4`,id:`authentication-\u0026-authorization`,children:`Authentication \u0026 Authorization`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:_jsx(_components.code,{children:`KEYCLOAK_CLIENT_SECRET`})})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Purpose: OAuth client secret for Keycloak SSO integration`}),`\n`,_jsx(_components.li,{children:`Type: String`}),`\n`,_jsx(_components.li,{children:`Default: None (SSO disabled if not set)`}),`\n`,_jsxs(_components.li,{children:[`Example: `,_jsx(_components.code,{children:`export KEYCLOAK_CLIENT_SECRET=\"your-keycloak-secret\"`})]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:_jsx(_components.code,{children:`OPENFGA_STORE_ID`})})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Purpose: OpenFGA store ID for fine-grained authorization`}),`\n`,_jsx(_components.li,{children:`Type: UUID string`}),`\n`,_jsxs(_components.li,{children:[`Example: `,_jsx(_components.code,{children:`export OPENFGA_STORE_ID=\"01H...\"`})]}),`\n`,_jsxs(_components.li,{children:[`Setup: Run `,_jsx(_components.code,{children:`make setup-openfga`}),` to generate`]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:_jsx(_components.code,{children:`OPENFGA_MODEL_ID`})})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Purpose: OpenFGA model ID for authorization rules`}),`\n`,_jsx(_components.li,{children:`Type: UUID string`}),`\n`,_jsxs(_components.li,{children:[`Example: `,_jsx(_components.code,{children:`export OPENFGA_MODEL_ID=\"01H...\"`})]}),`\n`,_jsxs(_components.li,{children:[`Setup: Run `,_jsx(_components.code,{children:`make setup-openfga`}),` to generate`]}),`\n`]}),`\n`]}),`\n`]}),`\n`,_jsx(Heading,{level:`4`,id:`hipaa-compliance-optional`,children:`HIPAA Compliance (Optional)`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`HIPAA_INTEGRITY_SECRET`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Purpose: HMAC secret for data integrity checksums (HIPAA 164.312(c)(1))`}),`\n`,_jsx(_components.li,{children:`Type: String (minimum 32 characters)`}),`\n`,_jsx(_components.li,{children:`Required: Only if processing Protected Health Information (PHI)`}),`\n`,_jsxs(_components.li,{children:[`Example: `,_jsx(_components.code,{children:`export HIPAA_INTEGRITY_SECRET=\"your-secure-hipaa-secret\"`})]}),`\n`]}),`\n`]}),`\n`]}),`\n`,_jsx(Heading,{level:`4`,id:`gdpr/hipaa/soc2-compliance-storage-adr-0041`,children:`GDPR/HIPAA/SOC2 Compliance Storage (ADR-0041)`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Production Critical`}),`: Use PostgreSQL storage backend in production. In-memory storage is for development/testing ONLY and will block GDPR endpoints in production.`]})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:_jsx(_components.code,{children:`GDPR_STORAGE_BACKEND`})})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Purpose: Storage backend for compliance data (user profiles, preferences, consents, conversations, audit logs)`}),`\n`,_jsx(_components.li,{children:`Type: String`}),`\n`,_jsxs(_components.li,{children:[`Values:`,`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`postgres`}),` - PostgreSQL storage (production)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`memory`}),` - In-memory storage (development/testing only)`]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`Default: `,_jsx(_components.code,{children:`memory`})]}),`\n`,_jsxs(_components.li,{children:[`Example: `,_jsx(_components.code,{children:`export GDPR_STORAGE_BACKEND=\"postgres\"`})]}),`\n`,_jsxs(_components.li,{children:[`Production: `,_jsxs(_components.strong,{children:[`MUST be set to `,_jsx(_components.code,{children:`postgres`})]})]}),`\n`,_jsxs(_components.li,{children:[`See: `,_jsx(_components.a,{href:`/architecture/adr-0041-postgresql-gdpr-storage`,children:`ADR-0041: PostgreSQL GDPR Storage`})]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:_jsx(_components.code,{children:`GDPR_POSTGRES_URL`})})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Purpose: PostgreSQL connection string for GDPR compliance data`}),`\n`,_jsx(_components.li,{children:`Type: PostgreSQL connection URL`}),`\n`,_jsxs(_components.li,{children:[`Required: Only if `,_jsx(_components.code,{children:`GDPR_STORAGE_BACKEND=postgres`})]}),`\n`,_jsxs(_components.li,{children:[`Example: `,_jsx(_components.code,{children:`export GDPR_POSTGRES_URL=\"postgresql://gdpr_user:secure_pass@db.example.com:5432/gdpr\"`})]}),`\n`,_jsx(_components.li,{children:`Note: Use separate database for compliance data isolation`}),`\n`,_jsxs(_components.li,{children:[`See: `,_jsx(_components.a,{href:`/deployment/gdpr-storage-configuration`,children:`GDPR Storage Configuration`})]}),`\n`]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Retention Requirements`}),`:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`User profiles: Until deletion request (GDPR Article 17)`}),`\n`,_jsx(_components.li,{children:`Preferences: Until deletion request`}),`\n`,_jsx(_components.li,{children:`Consents: 7 years (GDPR Article 7, legal requirement)`}),`\n`,_jsx(_components.li,{children:`Conversations: 90 days (GDPR Article 5(1)(e), configurable)`}),`\n`,_jsx(_components.li,{children:`Audit logs: 7 years (HIPAA §164.316(b)(2)(i), SOC2 CC6.6)`}),`\n`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Production Guard`}),`: If `,_jsx(_components.code,{children:`GDPR_STORAGE_BACKEND=memory`}),` in production, GDPR endpoints will be blocked to prevent data loss and compliance violations.`]}),`\n`,_jsx(Heading,{level:`3`,id:`optional-environment-variables`,children:`Optional Environment Variables`}),`\n`,_jsx(Heading,{level:`4`,id:`observability-\u0026-monitoring`,children:`Observability \u0026 Monitoring`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:_jsx(_components.code,{children:`LANGSMITH_API_KEY`})})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Purpose: LangSmith tracing and observability`}),`\n`,_jsx(_components.li,{children:`Default: Disabled if not set`}),`\n`,_jsxs(_components.li,{children:[`Example: `,_jsx(_components.code,{children:`export LANGSMITH_API_KEY=\"ls__...\"`})]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:_jsx(_components.code,{children:`LANGSMITH_PROJECT`})})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Purpose: LangSmith project name`}),`\n`,_jsx(_components.li,{children:`Default: “mcp-server-langgraph”`}),`\n`,_jsxs(_components.li,{children:[`Example: `,_jsx(_components.code,{children:`export LANGSMITH_PROJECT=\"my-project\"`})]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:_jsx(_components.code,{children:`OTEL_EXPORTER_OTLP_ENDPOINT`})})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Purpose: OpenTelemetry collector endpoint`}),`\n`,_jsxs(_components.li,{children:[`Default: “`,_jsx(_components.a,{href:`http://localhost:4317`,children:`http://localhost:4317`}),`”`]}),`\n`,_jsxs(_components.li,{children:[`Example: `,_jsx(_components.code,{children:`export OTEL_EXPORTER_OTLP_ENDPOINT=\"http://jaeger:4317\"`})]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:_jsx(_components.code,{children:`LOG_JSON_INDENT`})})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Purpose: JSON log indentation for readability`}),`\n`,_jsx(_components.li,{children:`Type: Integer`}),`\n`,_jsx(_components.li,{children:`Default: None (compact JSON)`}),`\n`,_jsxs(_components.li,{children:[`Example: `,_jsx(_components.code,{children:`export LOG_JSON_INDENT=2`})]}),`\n`]}),`\n`]}),`\n`]}),`\n`,_jsx(Heading,{level:`4`,id:`cloud-provider-integration`,children:`Cloud Provider Integration`}),`\n`,_jsx(_components.h5,{children:`AWS`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:_jsx(_components.code,{children:`AWS_REGION`})})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Purpose: AWS region for services`}),`\n`,_jsxs(_components.li,{children:[`Example: `,_jsx(_components.code,{children:`export AWS_REGION=\"us-east-1\"`})]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`AWS_ACCESS_KEY_ID`})}),` \u0026 `,_jsx(_components.strong,{children:_jsx(_components.code,{children:`AWS_SECRET_ACCESS_KEY`})})]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Purpose: AWS credentials`}),`\n`,_jsxs(_components.li,{children:[`Example: `,_jsx(_components.code,{children:`export AWS_ACCESS_KEY_ID=\"AKIA...\"`})]}),`\n`]}),`\n`]}),`\n`]}),`\n`,_jsx(_components.h5,{children:`Google Cloud Platform`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:_jsx(_components.code,{children:`GCP_PROJECT_ID`})})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Purpose: GCP project identifier`}),`\n`,_jsxs(_components.li,{children:[`Example: `,_jsx(_components.code,{children:`export GCP_PROJECT_ID=\"my-project\"`})]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:_jsx(_components.code,{children:`GOOGLE_APPLICATION_CREDENTIALS`})})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Purpose: Path to GCP service account key file`}),`\n`,_jsxs(_components.li,{children:[`Example: `,_jsx(_components.code,{children:`export GOOGLE_APPLICATION_CREDENTIALS=\"/path/to/key.json\"`})]}),`\n`]}),`\n`]}),`\n`]}),`\n`,_jsx(_components.h5,{children:`Azure`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:_jsx(_components.code,{children:`AZURE_MONITOR_CONNECTION_STRING`})})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Purpose: Azure Monitor connection string`}),`\n`,_jsxs(_components.li,{children:[`Example: `,_jsx(_components.code,{children:`export AZURE_MONITOR_CONNECTION_STRING=\"InstrumentationKey=...\"`})]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:_jsx(_components.code,{children:`AZURE_MONITOR_INSTRUMENTATION_KEY`})})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Purpose: Azure Monitor instrumentation key`}),`\n`,_jsxs(_components.li,{children:[`Example: `,_jsx(_components.code,{children:`export AZURE_MONITOR_INSTRUMENTATION_KEY=\"...\"`})]}),`\n`]}),`\n`]}),`\n`]}),`\n`,_jsx(Heading,{level:`4`,id:`external-services`,children:`External Services`}),`\n`,_jsx(_components.h5,{children:`Elasticsearch`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`ELASTICSEARCH_USERNAME`})}),` \u0026 `,_jsx(_components.strong,{children:_jsx(_components.code,{children:`ELASTICSEARCH_PASSWORD`})})]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Purpose: Elasticsearch authentication`}),`\n`,_jsxs(_components.li,{children:[`Example: `,_jsx(_components.code,{children:`export ELASTICSEARCH_USERNAME=\"elastic\"`})]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:_jsx(_components.code,{children:`ELASTICSEARCH_API_KEY`})})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Purpose: Elasticsearch API key authentication`}),`\n`,_jsxs(_components.li,{children:[`Example: `,_jsx(_components.code,{children:`export ELASTICSEARCH_API_KEY=\"...\"`})]}),`\n`]}),`\n`]}),`\n`]}),`\n`,_jsx(_components.h5,{children:`Datadog`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`DATADOG_API_KEY`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Purpose: Datadog monitoring integration`}),`\n`,_jsxs(_components.li,{children:[`Example: `,_jsx(_components.code,{children:`export DATADOG_API_KEY=\"...\"`})]}),`\n`]}),`\n`]}),`\n`]}),`\n`,_jsx(_components.h5,{children:`Splunk`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`SPLUNK_HEC_TOKEN`})}),` \u0026 `,_jsx(_components.strong,{children:_jsx(_components.code,{children:`SPLUNK_HEC_ENDPOINT`})})]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Purpose: Splunk HTTP Event Collector`}),`\n`,_jsxs(_components.li,{children:[`Example: `,_jsx(_components.code,{children:`export SPLUNK_HEC_ENDPOINT=\"https://splunk:8088\"`})]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`SPLUNK_ACCESS_TOKEN`})}),` \u0026 `,_jsx(_components.strong,{children:_jsx(_components.code,{children:`SPLUNK_REALM`})})]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Purpose: Splunk Observability Cloud`}),`\n`,_jsxs(_components.li,{children:[`Example: `,_jsx(_components.code,{children:`export SPLUNK_REALM=\"us0\"`})]}),`\n`]}),`\n`]}),`\n`]}),`\n`,_jsx(Heading,{level:`4`,id:`secrets-management`,children:`Secrets Management`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`INFISICAL_TOKEN`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Purpose: Infisical secrets management authentication`}),`\n`,_jsx(_components.li,{children:`Default: Falls back to environment variables if not set`}),`\n`,_jsxs(_components.li,{children:[`Example: `,_jsx(_components.code,{children:`export INFISICAL_TOKEN=\"st.xxx.yyy.zzz\"`})]}),`\n`,_jsx(_components.li,{children:`Note: Application works without Infisical (uses .env fallback)`}),`\n`]}),`\n`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`environment-configuration-files`,children:`Environment Configuration Files`}),`\n`,_jsx(Heading,{level:`4`,id:`development-env`,children:`Development (.env)`}),`\n`,_jsxs(_components.p,{children:[`Create a `,_jsx(_components.code,{children:`.env`}),` file in the project root for local development:`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`16`,language:`ini`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`ini`,children:_jsxs(_components.code,{language:`ini`,numberOfLines:`16`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`## Core (Required)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`JWT_SECRET_KEY`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=development-secret-key-change-in-production`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`## LLM Provider (at least one required)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`ANTHROPIC_API_KEY`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=sk-ant-your-key-here`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`## OPENAI_API_KEY=sk-your-key-here`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`## GOOGLE_API_KEY=your-key-here`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`## Authentication (Optional)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`## KEYCLOAK_CLIENT_SECRET=keycloak-secret`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`## OPENFGA_STORE_ID=01H...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`## OPENFGA_MODEL_ID=01H...`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`## Observability (Optional)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`## LANGSMITH_API_KEY=ls__your-key`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`LOG_JSON_INDENT`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=2`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`4`,id:`production`,children:`Production`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`⚠️ Security Warning`}),`: Never commit `,_jsx(_components.code,{children:`.env`}),` files to version control!`]}),`\n`,_jsx(_components.p,{children:`Use one of these approaches for production:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Environment variables`}),` - Set directly in deployment environment`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Infisical`}),` - Centralized secrets management (recommended)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Kubernetes Secrets`}),` - For Kubernetes deployments`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Cloud provider secrets`}),` - AWS Secrets Manager, GCP Secret Manager, Azure Key Vault`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`openapi-schema-validation`,children:`OpenAPI Schema Validation`}),`\n`,_jsx(_components.p,{children:`To run OpenAPI schema validation locally, you must set:`}),`\n`,_jsx(CodeBlock,{numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`export`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` JWT_SECRET_KEY`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your-secret-key\"`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Then run:`}),`\n`,_jsx(CodeBlock,{numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`make`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` validate-openapi`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Or:`}),`\n`,_jsx(CodeBlock,{numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`python`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` scripts/validation/validate_openapi.py`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The validation will fail with the following error if `,_jsx(_components.code,{children:`JWT_SECRET_KEY`}),` is not set:`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`yaml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`yaml`,children:_jsxs(_components.code,{language:`yaml`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`CRITICAL`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`JWT secret key not configured. Set JWT_SECRET_KEY environment variable`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`or configure via Infisical. The service cannot start without a secure secret key.`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`ci/cd-configuration`,children:`CI/CD Configuration`}),`\n`,_jsx(_components.p,{children:`GitHub Actions workflows automatically inject required secrets from repository secrets:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`.github/workflows/ci.yaml`}),` - Main CI pipeline`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`.github/workflows/pr-checks.yaml`}),` - Pull request checks`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`.github/workflows/quality-tests.yaml`}),` - Quality test suite`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`Required repository secrets:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`JWT_SECRET_KEY`})}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`ANTHROPIC_API_KEY`}),` (for production deployment)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`KUBECONFIG_PROD`}),` (for Kubernetes deployment)`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`quick-setup`,children:`Quick Setup`}),`\n`,_jsx(Heading,{level:`4`,id:`minimal-setup-development`,children:`Minimal Setup (Development)`}),`\n`,_jsx(CodeBlock,{numberOfLines:`9`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`9`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`## 1. Copy environment template`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`cp`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` .env.example`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` .env`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`## 2. Set required variables`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`export`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` JWT_SECRET_KEY`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"development-secret-$(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`openssl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` rand `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`-hex`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 16`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`)\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`export`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ANTHROPIC_API_KEY`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your-anthropic-key\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`## 3. Verify configuration`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`make`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` test-unit`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`4`,id:`full-setup-with-infrastructure`,children:`Full Setup (with Infrastructure)`}),`\n`,_jsx(CodeBlock,{numberOfLines:`13`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`13`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`## 1. Set core variables`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`export`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` JWT_SECRET_KEY`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"$(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`openssl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` rand `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`-hex`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 32`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`)\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`export`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ANTHROPIC_API_KEY`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your-anthropic-key\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`## 2. Start infrastructure`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`make`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` dev-setup`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`## 3. Get OpenFGA IDs from setup output`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`export`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` OPENFGA_STORE_ID`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"from-setup-output\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`export`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` OPENFGA_MODEL_ID`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"from-setup-output\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`## 4. Run tests`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`make`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` test`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`troubleshooting`,children:`Troubleshooting`}),`\n`,_jsx(Heading,{level:`4`,id:`”jwt_secret_key-not-configured”-error`,children:`”JWT_SECRET_KEY not configured” error`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Solution`}),`: Set the JWT secret key:`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`export`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` JWT_SECRET_KEY`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"$(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`openssl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` rand `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`-hex`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 32`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`)\"`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`4`,id:`“hipaa_integrity_secret-not-configured”-error`,children:`“HIPAA_INTEGRITY_SECRET not configured” error`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Solution`}),`: Either:`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Set the secret: `,_jsx(_components.code,{children:`export HIPAA_INTEGRITY_SECRET=\"$(openssl rand -hex 32)\"`})]}),`\n`,_jsxs(_components.li,{children:[`Skip HIPAA tests: `,_jsx(_components.code,{children:`pytest -m \"not hipaa\"`})]}),`\n`]}),`\n`,_jsx(Heading,{level:`4`,id:`”no-llm-api-key-found”-error`,children:`”No LLM API key found” error`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Solution`}),`: Set at least one LLM provider API key:`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`5`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`export`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ANTHROPIC_API_KEY`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your-key\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`## or`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`export`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` OPENAI_API_KEY`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your-key\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`## or`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`export`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` GOOGLE_API_KEY`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your-key\"`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`security-best-practices`,children:`Security Best Practices`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`✅ `,_jsx(_components.strong,{children:`Never commit secrets to version control`})]}),`\n`,_jsxs(_components.li,{children:[`✅ `,_jsx(_components.strong,{children:`Use different secrets for dev/staging/prod`})]}),`\n`,_jsxs(_components.li,{children:[`✅ `,_jsx(_components.strong,{children:`Rotate secrets regularly (every 90 days)`})]}),`\n`,_jsxs(_components.li,{children:[`✅ `,_jsx(_components.strong,{children:`Use strong random values`}),` (minimum 32 characters)`]}),`\n`,_jsxs(_components.li,{children:[`✅ `,_jsx(_components.strong,{children:`Restrict secret access`}),` (principle of least privilege)`]}),`\n`,_jsxs(_components.li,{children:[`✅ `,_jsx(_components.strong,{children:`Monitor secret usage`}),` (audit logs)`]}),`\n`,_jsxs(_components.li,{children:[`✅ `,_jsx(_components.strong,{children:`Use secrets management tools`}),` (Infisical, Vault, cloud providers)`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`references`,children:`References`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`https://infisical.com/docs`,children:`Infisical Documentation`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/guides/openfga-setup`,children:`OpenFGA Setup Guide`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/guides/keycloak-sso`,children:`Keycloak Integration`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/reference/development/ide-setup`,children:`Environment Setup Guide`})}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Environment Variables Reference","description":"This document lists all environment variables used by the MCP Server LangGraph application. - `JWT_SECRET_KEY` (REQUIRED)","icon":"file","seoTitle":"Environment Variables Reference - Reference Guide","seoDescription":"Technical reference: This document lists all environment variables used by the MCP Server LangGraph application. - `JWT_SECRET_KEY` (REQUIRED)","keywords":["reference","configuration","MCP Server","technical docs"],"contentType":"reference","href":"/reference/environment-variables"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Required Environment Variables","slug":"required-environment-variables","depth":3,"children":[]},{"title":"Core Application","slug":"core-application","depth":4,"children":[]},{"title":"LLM API Keys","slug":"llm-api-keys","depth":4,"children":[]},{"title":"Authentication \u0026 Authorization","slug":"authentication-\u0026-authorization","depth":4,"children":[]},{"title":"HIPAA Compliance (Optional)","slug":"hipaa-compliance-optional","depth":4,"children":[]},{"title":"GDPR/HIPAA/SOC2 Compliance Storage (ADR-0041)","slug":"gdpr/hipaa/soc2-compliance-storage-adr-0041","depth":4,"children":[]},{"title":"Optional Environment Variables","slug":"optional-environment-variables","depth":3,"children":[]},{"title":"Observability \u0026 Monitoring","slug":"observability-\u0026-monitoring","depth":4,"children":[]},{"title":"Cloud Provider Integration","slug":"cloud-provider-integration","depth":4,"children":[]},{"title":"External Services","slug":"external-services","depth":4,"children":[]},{"title":"Secrets Management","slug":"secrets-management","depth":4,"children":[]},{"title":"Environment Configuration Files","slug":"environment-configuration-files","depth":3,"children":[]},{"title":"Development (.env)","slug":"development-env","depth":4,"children":[]},{"title":"Production","slug":"production","depth":4,"children":[]},{"title":"OpenAPI Schema Validation","slug":"openapi-schema-validation","depth":3,"children":[]},{"title":"CI/CD Configuration","slug":"ci/cd-configuration","depth":3,"children":[]},{"title":"Quick Setup","slug":"quick-setup","depth":3,"children":[]},{"title":"Minimal Setup (Development)","slug":"minimal-setup-development","depth":4,"children":[]},{"title":"Full Setup (with Infrastructure)","slug":"full-setup-with-infrastructure","depth":4,"children":[]},{"title":"Troubleshooting","slug":"troubleshooting","depth":3,"children":[]},{"title":"”JWT_SECRET_KEY not configured” error","slug":"”jwt_secret_key-not-configured”-error","depth":4,"children":[]},{"title":"“HIPAA_INTEGRITY_SECRET not configured” error","slug":"“hipaa_integrity_secret-not-configured”-error","depth":4,"children":[]},{"title":"”No LLM API key found” error","slug":"”no-llm-api-key-found”-error","depth":4,"children":[]},{"title":"Security Best Practices","slug":"security-best-practices","depth":3,"children":[]},{"title":"References","slug":"references","depth":3,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/localhost/15bcc56bde3429ce/tco-calculator.js"],"subdomain":"localhost","siteName":"MCP Server with LangGraph","title":"Environment Variables Reference - MCP Server with LangGraph","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"originalFileLocation":"reference/environment-variables.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"This document lists all environment variables used by the MCP Server LangGraph application. - JWT_SECRET_KEY (REQUIRED)\">\u003cmeta data-mint-head name=\"application-name\" content=\"MCP Server with LangGraph\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/favicons/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/favicons/favicon-32x32.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/favicons/favicon-16x16.png\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/favicons/favicon.ico\">\u003cmeta data-mint-head property=\"og:title\" content=\"Environment Variables Reference - MCP Server with LangGraph\">\u003cmeta data-mint-head property=\"og:description\" content=\"This document lists all environment variables used by the MCP Server LangGraph application. - JWT_SECRET_KEY (REQUIRED)\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"MCP Server with LangGraph\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://local./reference/environment-variables\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Environment Variables Reference - MCP Server with LangGraph\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"This document lists all environment variables used by the MCP Server LangGraph application. - JWT_SECRET_KEY (REQUIRED)\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/favicons/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"MCP Server with LangGraph\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#087056\">\u003clink data-mint-head rel=\"canonical\" href=\"https://local./reference/environment-variables\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/reference/environment-variables.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"MCP Server with LangGraph\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"MCP Server with LangGraph\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/reference/environment-variables.md","siteName":"MCP Server with LangGraph","nav":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/vishnu2kmohan/mcp-server-langgraph"},{"anchor":"Community","icon":"discord","href":"https://github.com/vishnu2kmohan/mcp-server-langgraph/discussions"},{"anchor":"CHANGELOG","icon":"newspaper","href":"https://github.com/vishnu2kmohan/mcp-server-langgraph/blob/main/CHANGELOG.md"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/getting-started/introduction"}]},{"tab":"CI/CD","pages":[{"title":"CI/CD","href":"/ci-cd/overview"}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/introduction"}]},{"tab":"Deployment","pages":[{"title":"Deployment","href":"/deployment/overview"}]},{"tab":"Guides","pages":[{"title":"Guides","href":"/guides/presets"}]},{"tab":"Reference","groups":[{"group":"Quick Reference","pages":[{"title":"AWS EKS Deployment - Quick Reference","icon":"bolt","href":"/reference/quick-reference"},{"title":"Sources \u0026 References","icon":"book","href":"/reference/sources"},{"title":"Best Practices and Recommendations","description":"Comprehensive improvement recommendations for MCP Server LangGraph covering developer experience, code quality, testing, and deployment","icon":"lightbulb","href":"/reference/recommendations"}]},{"group":"Configuration","pages":[{"title":"Environment Variables Reference","icon":"file","href":"/reference/environment-variables"},{"title":"Setup Scripts Reference","description":"Comprehensive guide to all setup and configuration scripts for Keycloak and identity management","icon":"file-code","href":"/reference/setup-scripts"},{"title":"Configuration Files Reference","icon":"gear","href":"/reference/configuration-files"},{"title":"API Endpoints Reference","icon":"plug","href":"/reference/api-endpoints"},{"title":"Kong Gateway Plugins Reference","icon":"plug-circle-bolt","href":"/reference/kong-plugins"}]},{"group":"Tools \u0026 Compatibility","pages":[{"title":"AI Tools Compatibility Guide","icon":"wrench","href":"/reference/ai-tools-compatibility"},{"title":"MCP Registry Deployment Guide","icon":"book","href":"/reference/mcp-registry"},{"title":"Pydantic AI Integration","icon":"code","href":"/reference/pydantic-ai"}]},{"group":"Authoring Guides","pages":[{"title":"Mermaid Diagram Standards \u0026 Style Guide","icon":"diagram-project","href":"/reference/mermaid-guide"},{"title":"Documentation Authoring Guide","icon":"book-open","href":"/reference/documentation-authoring-guide"},{"title":"Icon Selection Guide","icon":"icons","href":"/reference/icon-selection-guide"}]},{"group":"CI/CD Reference","pages":[{"title":"IDE Setup Guide","icon":"code","href":"/reference/development/ide-setup"},{"title":"GitHub Actions Setup Guide","icon":"code","href":"/reference/development/github-actions"},{"title":"Build and Test Verification Summary","icon":"code","href":"/reference/development/build-verification"},{"title":"CI/CD Pipeline","icon":"code","href":"/reference/development/ci-cd/overview"},{"title":"GitHub Actions Workflows","icon":"github","href":"/reference/development/ci-cd/workflows"},{"title":"Testing Strategy","icon":"flask","href":"/reference/development/ci-cd/testing"},{"title":"Deployment Procedures","icon":"rocket","href":"/reference/development/ci-cd/deployment"},{"title":"Troubleshooting \u0026 Best Practices","icon":"wrench","href":"/reference/development/ci-cd/troubleshooting"},{"title":"Developer Setup Guide","icon":"code","href":"/reference/development/development"}]}]},{"tab":"Architecture","pages":[{"title":"Architecture","href":"/architecture/overview"}]},{"tab":"Releases","pages":[{"title":"Releases","href":"/releases/overview"}]},{"tab":"Compliance","pages":[{"title":"Compliance","href":"/compliance/gdpr/overview"}]}]},"basePath":"","title":"Environment Variables Reference - MCP Server with LangGraph","buildId":"805bd8087ee3","dynamics":[],"chunks":[]}