Skip to content
This repository was archived by the owner on Jan 25, 2022. It is now read-only.

Don't verify TLS [DEVOPS-627] #1

Open
wants to merge 1 commit into
base: mab
Choose a base branch
from
Open

Don't verify TLS [DEVOPS-627] #1

wants to merge 1 commit into from

Conversation

deanrock
Copy link

Library doesn't support disabling peer (and peer hostname) verification, which is needed for our testing environments.

We should just disable this for all \Redis instances.

@@ -1875,10 +1875,18 @@ PHP_REDIS_API int redis_sock_connect(RedisSock *redis_sock)
tv_ptr = &tv;
}

php_stream_context *context = php_stream_context_alloc();

Choose a reason for hiding this comment

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

Copy link
Author

Choose a reason for hiding this comment

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

Ideally we would pass in the context to \Redis, but in for our case explicitly creating a context should be good enough.

We also don't want to modify global PHP context for obvious reasons.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants