{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/meta-azure-service-broker/issues/166","repository_url":"https://api.github.com/repos/Azure/meta-azure-service-broker","labels_url":"https://api.github.com/repos/Azure/meta-azure-service-broker/issues/166/labels{/name}","comments_url":"https://api.github.com/repos/Azure/meta-azure-service-broker/issues/166/comments","events_url":"https://api.github.com/repos/Azure/meta-azure-service-broker/issues/166/events","html_url":"https://github.com/Azure/meta-azure-service-broker/issues/166","id":308697448,"node_id":"MDU6SXNzdWUzMDg2OTc0NDg=","number":166,"title":"RedisCache Service","user":{"login":"nevenc-pivotal","id":14920177,"node_id":"MDQ6VXNlcjE0OTIwMTc3","avatar_url":"https://avatars1.githubusercontent.com/u/14920177?v=4","gravatar_id":"","url":"https://api.github.com/users/nevenc-pivotal","html_url":"https://github.com/nevenc-pivotal","followers_url":"https://api.github.com/users/nevenc-pivotal/followers","following_url":"https://api.github.com/users/nevenc-pivotal/following{/other_user}","gists_url":"https://api.github.com/users/nevenc-pivotal/gists{/gist_id}","starred_url":"https://api.github.com/users/nevenc-pivotal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nevenc-pivotal/subscriptions","organizations_url":"https://api.github.com/users/nevenc-pivotal/orgs","repos_url":"https://api.github.com/users/nevenc-pivotal/repos","events_url":"https://api.github.com/users/nevenc-pivotal/events{/privacy}","received_events_url":"https://api.github.com/users/nevenc-pivotal/received_events","type":"User","site_admin":false},"labels":[{"id":443466576,"node_id":"MDU6TGFiZWw0NDM0NjY1NzY=","url":"https://api.github.com/repos/Azure/meta-azure-service-broker/labels/acknowledge","name":"acknowledge","color":"f9d0c4","default":false},{"id":443442829,"node_id":"MDU6TGFiZWw0NDM0NDI4Mjk=","url":"https://api.github.com/repos/Azure/meta-azure-service-broker/labels/azure-rediscache","name":"azure-rediscache","color":"1d76db","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-26T19:06:15Z","updated_at":"2018-08-29T08:37:02Z","closed_at":null,"author_association":"NONE","body":"I discovered a possible problem with Azure Service Broker (the one that gets created out of the box with Azure Marketplace PCF install):\r\n\r\ndefault RedisCache config is:\r\n\r\n```\r\n{\r\n  \"parameters\": {\r\n      \"enableNonSslPort\": false,\r\n      \"sku\": {\r\n          \"name\": \"Basic\",\r\n          \"family\": \"C\",\r\n          \"capacity\": 0\r\n      }\r\n  }\r\n}\r\n```\r\n\r\nSo, non-SSL port is not enabled by default (6379) - and service broker adds both ports to ENV when service is bound, e.g.\r\n\r\n```\r\n{\r\n \"VCAP_SERVICES\": {\r\n  \"azure-rediscache\": [\r\n   {\r\n    \"credentials\": {\r\n     \"hostname\": \"u50060acf075.redis.cache.windows.net\",\r\n     \"name\": \"u50060acf075\",\r\n     \"port\": 6379,\r\n     \"primaryKey\": \"xxxx\",\r\n     \"redisUrl\": \"redis://u50060acf075:xxxx@u50060acf075.redis.cache.windows.net:6379\",\r\n     \"secondaryKey\": \"yyyy\",\r\n     \"sslPort\": 6380\r\n    },\r\n    \"label\": \"azure-rediscache\",\r\n    \"name\": \"myredis\",\r\n    \"plan\": \"basic\",\r\n    \"provider\": null,\r\n    \"syslog_drain_url\": null,\r\n    \"tags\": [\r\n     \"Azure\",\r\n     \"Redis\",\r\n     \"Cache\"\r\n    ],\r\n    \"volume_mounts\": []\r\n   }\r\n  ]\r\n }\r\n}\r\n```\r\n\r\nProblem is that if nonSSL port is disabled (the case of default Azure Marketplace PCF install):\r\n-  `redisUrl` is using a wrong port (e.g. `port` and `6379` instead of `sslPort` and `6380`)\r\n-   and wrong protocol (e.g. `redis://` instead of `rediss://`)\r\n\r\nThings work as expected, if we don't enforce SSL. Service broker creates proper `port` (e.g. `6379`) and `redisUrl` on non-SSL port  (e.g. `redis://....:6379`).\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Azure/meta-azure-service-broker/issues/comments/416872473","html_url":"https://github.com/Azure/meta-azure-service-broker/issues/166#issuecomment-416872473","issue_url":"https://api.github.com/repos/Azure/meta-azure-service-broker/issues/166","id":416872473,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNjg3MjQ3Mw==","user":{"login":"gumichel","id":2857591,"node_id":"MDQ6VXNlcjI4NTc1OTE=","avatar_url":"https://avatars3.githubusercontent.com/u/2857591?v=4","gravatar_id":"","url":"https://api.github.com/users/gumichel","html_url":"https://github.com/gumichel","followers_url":"https://api.github.com/users/gumichel/followers","following_url":"https://api.github.com/users/gumichel/following{/other_user}","gists_url":"https://api.github.com/users/gumichel/gists{/gist_id}","starred_url":"https://api.github.com/users/gumichel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gumichel/subscriptions","organizations_url":"https://api.github.com/users/gumichel/orgs","repos_url":"https://api.github.com/users/gumichel/repos","events_url":"https://api.github.com/users/gumichel/events{/privacy}","received_events_url":"https://api.github.com/users/gumichel/received_events","type":"User","site_admin":false},"created_at":"2018-08-29T08:37:02Z","updated_at":"2018-08-29T08:37:02Z","author_association":"NONE","body":"Hi @zhongyi-zhang,\r\nWe are facing this issue in our project. It prevents us from using Redis with Spring Cloud Redis Connector with SSL enable. "}}
{"actor":{"display_login":"gumichel"}}