Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add capability to add custom headers in opencti http client #844

Open
richard-julien opened this issue Feb 17, 2025 · 0 comments · May be fixed by #845
Open

Add capability to add custom headers in opencti http client #844

richard-julien opened this issue Feb 17, 2025 · 0 comments · May be fixed by #845
Assignees
Labels
feature use for describing a new feature to develop
Milestone

Comments

@richard-julien
Copy link
Member

richard-julien commented Feb 17, 2025

Problem to Solve

In some case it could be interesting to add custom headers in query between worker/connectors and opencti.
Case need to be handle in

  • opencti_api_client to add headers
  • connector_helper to get information from the conf

Example in connector configuration

opencti:
  url: 'http://localhost:4000'
  token: 'd434ce02-e58e-4cac-8b4c-42bf16748e84'
  custom_headers: "X-Custom-Header01: some_value;X-Custom-Header02: some_value"

Or by env variable

OPENCTI_CUSTOM_HEADERS="Content-Type: application/json;Authorization: Bearer my_token;X-Custom-Header: some_value"

Separator used is defined with ;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature use for describing a new feature to develop
Projects
None yet
1 participant