Skip to content

Make some curl options configurable to fix issue #19 - #22

Merged
dflaven merged 1 commit into
masterfrom
feature/configure-curl-options
Oct 16, 2026
Merged

dflaven merged 1 commit into
masterfrom
feature/configure-curl-options

Conversation

@dflaven

@dflaven dflaven commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Base information

Question Answer
A GitHub Issue Issue #19
Type of change Enhancement

This PR makes the following CURL options configurable (via your .env.local configuration file):

  • Whether or not to check if the peer SSL certificate is valid
  • The connection timeout
  • The timeout of the whole curl execution

@CombodoApplicationsAccount CombodoApplicationsAccount added the internal Work made by Combodo label Oct 16, 2026
Copilot AI balanced review requested due to automatic review settings October 16, 2026 11:10

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The configuration wiring and constructor updates are consistent, with no unresolved findings.

0 open findings

What changed in this PR

Makes outbound iTop cURL settings configurable through environment variables and enables TLS certificate verification by default, addressing issue #19.

Changes:

  • Exposes connection timeout, request timeout, and certificate verification settings.
  • Injects these settings into iTopClient.
  • Updates existing tests for the expanded constructor.
File Description
tests/​phpunit/​iTopClientTest.php Supplies the new constructor arguments.
src/​Service/​iTopClient.php Applies injected cURL settings.
config/​services.yaml Wires environment settings into the client.
.env Defines timeout defaults and enables certificate verification.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@dflaven
dflaven merged commit 37b59ab into master Oct 16, 2026
2 checks passed
@dflaven
dflaven deleted the feature/configure-curl-options branch October 16, 2026 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal Work made by Combodo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants