Skip to content

CRE-4343/CRE-4352: Add mtls support in OutboundHTTPRequest + feature …#2067

Open
cedric-cordenier wants to merge 2 commits into
mainfrom
CRE-4343-add-mtls-types
Open

CRE-4343/CRE-4352: Add mtls support in OutboundHTTPRequest + feature …#2067
cedric-cordenier wants to merge 2 commits into
mainfrom
CRE-4343-add-mtls-types

Conversation

@cedric-cordenier
Copy link
Copy Markdown
Contributor

…flag for mtls

Requires

Supports

Copilot AI review requested due to automatic review settings May 18, 2026 10:37
@cedric-cordenier cedric-cordenier requested a review from a team as a code owner May 18, 2026 10:37
@github-actions
Copy link
Copy Markdown

👋 cedric-cordenier, thanks for creating this pull request!

To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team.

Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks!

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 18, 2026

✅ API Diff Results - github.com/smartcontractkit/chainlink-common

✅ Compatible Changes (4)

pkg/settings/cresettings.Orgs (1)
  • HTTPAction — ➕ Added
pkg/types/gateway (2)
  • MtlsAuth — ➕ Added

  • Secret — ➕ Added

pkg/types/gateway.OutboundHTTPRequest (1)
  • Mtls — ➕ Added

📄 View full apidiff report

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds mTLS client-credential support to OutboundHTTPRequest (private key + certificate) and introduces a per-org feature flag MtlsAuthAllowed to gate the new capability via the cresettings system.

Changes:

  • Add MtlsAuth (with a redacting Secret type) to OutboundHTTPRequest, and include it in Hash().
  • Add new PerOrg.HTTPAction.MtlsAuthAllowed setting with default false, wired into schema/defaults files.
  • Add hash-related unit tests for the new mTLS field.

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
pkg/types/gateway/action.go Adds Secret, MtlsAuth types, new Mtls field, and hash inclusion.
pkg/types/gateway/action_test.go New hash tests covering Mtls equality, nil vs non-nil, and byte-shift cases.
pkg/settings/cresettings/settings.go Adds perOrgHTTPAction with MtlsAuthAllowed; fixes alignment of existing fields.
pkg/settings/cresettings/settings_test.go Whitespace/indentation fix on existing line.
pkg/settings/cresettings/README.md Adds new gate node to the mermaid diagram.
pkg/settings/cresettings/defaults.toml Adds [PerOrg.HTTPAction] section with default.
pkg/settings/cresettings/defaults.json Adds matching HTTPAction.MtlsAuthAllowed default.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pkg/settings/cresettings/README.md Outdated
Comment thread pkg/types/gateway/action.go Outdated
Comment thread pkg/types/gateway/action.go Outdated
@cedric-cordenier cedric-cordenier force-pushed the CRE-4343-add-mtls-types branch 2 times, most recently from 3915a8d to 1aeadf2 Compare May 18, 2026 10:51
@cedric-cordenier cedric-cordenier force-pushed the CRE-4343-add-mtls-types branch from 1aeadf2 to 8cfc841 Compare May 18, 2026 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants