mirror of
https://github.com/fsouza/fake-gcs-server.git
synced 2026-04-27 14:45:49 +03:00
[GH-ISSUE #355] SSL certificate and secure calls #69
Labels
No labels
bug
compatibility-issue
docker
documentation
enhancement
help wanted
needs information
pull-request
question
stale
unfortunate
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/fake-gcs-server#69
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @viAtom on GitHub (Oct 28, 2020).
Original GitHub issue: https://github.com/fsouza/fake-gcs-server/issues/355
We're using Node.js and based on the example, we should set the env var
NODE_TLS_REJECT_UNAUTHORIZEDto'0'to disable SSL checks. Unfortunately, it triggers this node warning :Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification.I don't think there is much to do client-based and the curl calls made in the README are explicitly using the
--insecureflag. Would it be possible or too much work to use a custom certificate in the server ? Like one created with let's encrypt or a given one that we can use in the SSL agent to remove this env var.We are using
fake-gcs-serverfor testing purposes and we want node warnings in the CI job so we can't disable node warnings only for this one, but it's polluting the test running output with node warnings.Any idea on how we can proceed or does it need change on the repository ?
Thanks !
@fsouza commented on GitHub (Oct 28, 2020):
@viAtom you should be able to use http instead. For that you need to:
-scheme httphttp://<host>:<port>as the endpointLike, assuming the server is running on port 8080, you should be able to do something like this:
@viAtom commented on GitHub (Oct 31, 2020):
Thank you, it worked with this docker-compose config and your code, my CI thanks you too 🙏