Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update how the node SDK handles self signed requests #722

Merged
merged 1 commit into from
Nov 5, 2023

Conversation

stnguyen90
Copy link
Contributor

What does this PR do?

The NODE_TLS_REJECT_UNAUTHORIZED env variable will disable SSL checks for all requests. This PR changes the node SDK to only disable SSL checks for Appwrite related requests by passing an option to axios.

Fixes appwrite/appwrite#6832

Test Plan

Before change:

image

After change:

image

Without calling setSelfSigned():

image

Related PRs and Issues

Have you read the Contributing Guidelines on issues?

Yes

The NODE_TLS_REJECT_UNAUTHORIZED env variable will disable SSL checks
for all requests. This PR changes the node SDK to only disable SSL
checks for Appwrite related requests by passing an option to axios.
@lohanidamodar lohanidamodar merged commit 8e71ca4 into master Nov 5, 2023
36 checks passed
@stnguyen90 stnguyen90 deleted the fix-6832-node-self-signed branch November 22, 2023 23:28
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.

🐛 Bug Report: Enabling self signed certificates for Node SDK doesn't work
3 participants