Skip to content
This repository was archived by the owner on Feb 23, 2026. It is now read-only.

chore: adds disable SNI on provider API request#136

Merged
anilmurty merged 1 commit intomainfrom
fix/disable-sni-example
Oct 3, 2025
Merged

chore: adds disable SNI on provider API request#136
anilmurty merged 1 commit intomainfrom
fix/disable-sni-example

Conversation

@stalniy
Copy link
Contributor

@stalniy stalniy commented Oct 3, 2025

No description provided.

@codecov-commenter
Copy link

codecov-commenter commented Oct 3, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.13%. Comparing base (3e957ce) to head (16dafa1).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #136   +/-   ##
=======================================
  Coverage   70.13%   70.13%           
=======================================
  Files          23       23           
  Lines         864      864           
  Branches      221      221           
=======================================
  Hits          606      606           
  Misses        244      244           
  Partials       14       14           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@stalniy stalniy force-pushed the fix/disable-sni-example branch from 54aae54 to 83e9986 Compare October 3, 2025 10:21
@stalniy stalniy mentioned this pull request Oct 3, 2025
@stalniy stalniy force-pushed the fix/disable-sni-example branch from 83e9986 to 16dafa1 Compare October 3, 2025 10:24
@stalniy stalniy requested review from baktun14 and Copilot October 3, 2025 10:29
Copy link

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

This PR adds configuration to disable Server Name Indication (SNI) for HTTPS connections to provider APIs, enabling proper mTLS authentication with self-signed certificates. The changes ensure that provider API communication uses the correct SSL/TLS handshake process for authenticating with blockchain-based providers.

  • Adds servername: "" configuration to disable SNI in HTTPS agent setup
  • Includes explanatory comments about the necessity of disabling SNI for mTLS authentication
  • Adds comprehensive documentation explaining provider API communication requirements

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
examples/create_deployment.ts Updates HTTPS agent configuration to disable SNI with explanatory comment
examples/README.md Adds detailed documentation section explaining provider API communication and certificate handling

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

cert: certificate.cert,
key: certificate.privateKey,
rejectUnauthorized: false, // provider API responds with self-signed certificate but it needs to be verified manually!
servername: "" // required to disable SNI, so the provider API will use mTLS authentication (e.i., self-signed certificates)
Copy link

Copilot AI Oct 3, 2025

Choose a reason for hiding this comment

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

Corrected 'e.i.' to 'i.e.' (id est, meaning 'that is').

Suggested change
servername: "" // required to disable SNI, so the provider API will use mTLS authentication (e.i., self-signed certificates)
servername: "" // required to disable SNI, so the provider API will use mTLS authentication (i.e., self-signed certificates)

Copilot uses AI. Check for mistakes.
key: certificate.privateKey,
rejectUnauthorized: false
rejectUnauthorized: false, // provider API responds with self-signed certificate but it needs to be verified manually!
servername: "" // required to disable SNI, so the provider API will use mTLS authentication (e.i., self-signed certificates)
Copy link

Copilot AI Oct 3, 2025

Choose a reason for hiding this comment

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

Corrected 'e.i.' to 'i.e.' (id est, meaning 'that is').

Suggested change
servername: "" // required to disable SNI, so the provider API will use mTLS authentication (e.i., self-signed certificates)
servername: "" // required to disable SNI, so the provider API will use mTLS authentication (i.e., self-signed certificates)

Copilot uses AI. Check for mistakes.
@anilmurty anilmurty merged commit c173459 into main Oct 3, 2025
3 checks passed
@anilmurty anilmurty deleted the fix/disable-sni-example branch October 3, 2025 16:34
@github-actions
Copy link

🎉 This PR is included in version 1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants