Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Conversation

@richard-julien
Copy link
Member

@richard-julien richard-julien commented Feb 17, 2025

See #844

After merge, please take care of OpenCTI-Platform/opencti#9992

Comment on lines -146 to -150
if auth is not None:
self.session = requests.session()
self.session.auth = auth
else:
self.session = requests.session()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this part has been removed?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont want the auth to be changed like that. You have the token,cert, custom hearders that will produce the auth.

@aHenryJard aHenryJard self-assigned this Apr 1, 2025
json_logging: Optional[bool] = False,
bundle_send_to_queue: Optional[bool] = True,
cert: Optional[Union[str, Tuple[str, str]]] = None,
custom_headers: Optional[str] = None,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The doc above the function is not up to date with custom_headers

Copy link
Member

@aHenryJard aHenryJard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested with pycti call locally, and debug header on OpenCTI side, work as expected.

It's just missing the update of the init documentation.

@labo-flg
Copy link
Member

should be either targeting master or release/current, not 6.6.0

@SamuelHassine SamuelHassine changed the base branch from release/6.6.0 to master April 12, 2025 09:59
@SamuelHassine SamuelHassine merged commit 0beafee into master Apr 12, 2025
7 checks passed
@SamuelHassine SamuelHassine deleted the issue/844 branch April 12, 2025 22:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

filigran team use to identify PR from the Filigran team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add capability to add custom headers in opencti http client

7 participants