{"action":"created","issue":{"url":"https://api.github.com/repos/cloudfoundry-incubator/cflocal/issues/27","repository_url":"https://api.github.com/repos/cloudfoundry-incubator/cflocal","labels_url":"https://api.github.com/repos/cloudfoundry-incubator/cflocal/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/cloudfoundry-incubator/cflocal/issues/27/comments","events_url":"https://api.github.com/repos/cloudfoundry-incubator/cflocal/issues/27/events","html_url":"https://github.com/cloudfoundry-incubator/cflocal/issues/27","id":328573990,"node_id":"MDU6SXNzdWUzMjg1NzM5OTA=","number":27,"title":"Unable to tunnel services with cf local stage & cf local run","user":{"login":"privettoli","id":3314620,"node_id":"MDQ6VXNlcjMzMTQ2MjA=","avatar_url":"https://avatars1.githubusercontent.com/u/3314620?v=4","gravatar_id":"","url":"https://api.github.com/users/privettoli","html_url":"https://github.com/privettoli","followers_url":"https://api.github.com/users/privettoli/followers","following_url":"https://api.github.com/users/privettoli/following{/other_user}","gists_url":"https://api.github.com/users/privettoli/gists{/gist_id}","starred_url":"https://api.github.com/users/privettoli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/privettoli/subscriptions","organizations_url":"https://api.github.com/users/privettoli/orgs","repos_url":"https://api.github.com/users/privettoli/repos","events_url":"https://api.github.com/users/privettoli/events{/privacy}","received_events_url":"https://api.github.com/users/privettoli/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-06-01T15:58:02Z","updated_at":"2018-06-04T22:30:07Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nI'm trying to use cf local with on-prem hosted Pivotal CF, \r\nAfter successful cf login while executing \r\n```bash\r\ncf local stage app-dev-green -e -f app-dev-green -p ../target/app-0.0.1-SNAPSHOT.war\r\n``` \r\nI have following errors:\r\n```js\r\nWarning: unable to forward service: appdynamics-agent:appdynamics[0]\r\nWarning: unable to forward service: config-server:p-config-server[0]\r\nWarning: unable to forward service: redis-store:p-redis[0]\r\nWarning: unable to forward service: config-server-keystore:user-provided[0]\r\n```\r\n\r\nSo the problem that I experience is that tunneling of services doesn't work for me, because of firewall restrictions I'm unable to connect to the services from localhost with cf run,\r\n\r\nI tried to investigate by reading the repo source code, I have a hypothesis that cf local is unable to get credentials required for staging the app with tunneling,\r\n\r\nPlease, point me to the right direction to solve the issue,\r\n\r\nThanks in advance,"},"comment":{"url":"https://api.github.com/repos/cloudfoundry-incubator/cflocal/issues/comments/394521027","html_url":"https://github.com/cloudfoundry-incubator/cflocal/issues/27#issuecomment-394521027","issue_url":"https://api.github.com/repos/cloudfoundry-incubator/cflocal/issues/27","id":394521027,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NDUyMTAyNw==","user":{"login":"sclevine","id":1848837,"node_id":"MDQ6VXNlcjE4NDg4Mzc=","avatar_url":"https://avatars3.githubusercontent.com/u/1848837?v=4","gravatar_id":"","url":"https://api.github.com/users/sclevine","html_url":"https://github.com/sclevine","followers_url":"https://api.github.com/users/sclevine/followers","following_url":"https://api.github.com/users/sclevine/following{/other_user}","gists_url":"https://api.github.com/users/sclevine/gists{/gist_id}","starred_url":"https://api.github.com/users/sclevine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sclevine/subscriptions","organizations_url":"https://api.github.com/users/sclevine/orgs","repos_url":"https://api.github.com/users/sclevine/repos","events_url":"https://api.github.com/users/sclevine/events{/privacy}","received_events_url":"https://api.github.com/users/sclevine/received_events","type":"User","site_admin":false},"created_at":"2018-06-04T22:30:07Z","updated_at":"2018-06-04T22:30:07Z","author_association":"MEMBER","body":"The service forwarding (`-f`) logic may not work with all types of services. CF Local attempts to replace the domains in the local copy of the service bindings with tunneled ports on localhost. Can you try with a p-mysql database and see if that works? We're considering a different implementation of this that works seamlessly with all services by forwarding all of the egress traffic through the remote app.\r\n\r\nNote that for security, the tunnels aren't active during `cf local stage`. CF Local replaces the service binding domains with the same values as launch, but it doesn't actually open the tunnels. So firewall rules would only affect the tunnels in the `cf local run` case. I realize that this may break certain services that need to be accessible during staging (ex. proprietary APM agents that are downloaded from service instances during staging), and we have plans to address that eventually.\r\n\r\n"}}
{"actor":{"display_login":"sclevine"}}