Skip to content

N°9519 - Add proxy to Webhook Request#29

Open
ozan-cristan wants to merge 1 commit intoCombodo:masterfrom
ozan-cristan:fix/proxy
Open

N°9519 - Add proxy to Webhook Request#29
ozan-cristan wants to merge 1 commit intoCombodo:masterfrom
ozan-cristan:fix/proxy

Conversation

@ozan-cristan
Copy link
Copy Markdown

@ozan-cristan ozan-cristan commented Mar 12, 2026

Question Answer
Related to a SourceForge thread / Another PR / Combodo ticket? https://sourceforge.net/p/itop/discussion/922361/thread/0b15547ab3/
Type of change? Enhancement

Symptom (bug) / Objective (enhancement)

In many enterprise environments, iTop servers do not have direct access to the Internet and must route all outbound HTTP/HTTPS traffic through a corporate proxy.

Currently, the webhook integration module does not provide any way to configure a proxy for outbound requests.
As a result, webhook calls fail in restricted networks, usually with DNS resolution or connection errors, making integrations with external services (Telegram, Slack, APIs, etc.) unusable.

The objective of this enhancement is to allow webhook HTTP requests to be routed through a configurable proxy, making the webhook integration usable in secured and restricted infrastructures.


Reproduction procedure (bug)

(Not applicable, this is an enhancement and not a bug.)


Cause (bug)

(Not applicable, this is an enhancement and not a bug.)


Proposed solution (bug and enhancement)

The solution adds optional HTTP proxy support to the webhook request sender:

  • The proxy configuration is read from the module settings:

    • host (mandatory)

    • user (optional)

    • password (optional)

  • When a proxy is defined, the corresponding CURL options are injected into the request:

    • CURLOPT_PROXY

    • CURLOPT_PROXYTYPE

    • CURLOPT_PROXYUSERPWD (if authentication is configured)

  • When no proxy is defined, the behavior remains unchanged, ensuring full backward compatibility.

This allows webhook integrations to work transparently in environments where Internet access is only available through a proxy.

The change is limited to the webhook integration module and does not impact any other part of iTop.

@ozan-cristan
Copy link
Copy Markdown
Author

Hi,

I have uploaded the pull request with the proposed changes related to proxy support.

PR: #29

Please let me know if you would like me to add more details or make any adjustments.

Best regards,
Cristian

Copy link
Copy Markdown
Collaborator

@Hipska Hipska left a comment

Choose a reason for hiding this comment

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

Quick remark, please make the code comments in English so everyone can understand them.

Also, be aware that your changes make that these proxy settings are now applied by default for all new users!

And I guess the people from Combodo will require you to fill in the request template, You seem to have removed it all (in your initial post)

@jf-cbd jf-cbd moved this from First review needed to Pending technical review in Combodo PRs dashboard Mar 13, 2026
@jf-cbd jf-cbd moved this from Pending technical review to Pending review in Combodo PRs dashboard Apr 13, 2026
@jf-cbd
Copy link
Copy Markdown
Member

jf-cbd commented Apr 17, 2026

Hello, thank you for your PR ! We'll review your code in sprint 3.4, that should start at the end of summer (from September).

@jf-cbd jf-cbd moved this from Pending review to Assigned to a sprint in Combodo PRs dashboard Apr 17, 2026
@jf-cbd jf-cbd changed the title Add proxy to Webhook Request N°9519 - Add proxy to Webhook Request Apr 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Assigned to a sprint

Development

Successfully merging this pull request may close these issues.

5 participants