{"action":"created","issue":{"url":"https://api.github.com/repos/ContainX/openstack4j/issues/769","repository_url":"https://api.github.com/repos/ContainX/openstack4j","labels_url":"https://api.github.com/repos/ContainX/openstack4j/issues/769/labels{/name}","comments_url":"https://api.github.com/repos/ContainX/openstack4j/issues/769/comments","events_url":"https://api.github.com/repos/ContainX/openstack4j/issues/769/events","html_url":"https://github.com/ContainX/openstack4j/issues/769","id":170160902,"number":769,"title":"try to connect to openStack from webserver and get ClientResponseException{message=Target service not allowed, status=403, status-code=FORBIDDEN}","user":{"login":"eitanElmalam","id":20268444,"avatar_url":"https://avatars.githubusercontent.com/u/20268444?v=3","gravatar_id":"","url":"https://api.github.com/users/eitanElmalam","html_url":"https://github.com/eitanElmalam","followers_url":"https://api.github.com/users/eitanElmalam/followers","following_url":"https://api.github.com/users/eitanElmalam/following{/other_user}","gists_url":"https://api.github.com/users/eitanElmalam/gists{/gist_id}","starred_url":"https://api.github.com/users/eitanElmalam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eitanElmalam/subscriptions","organizations_url":"https://api.github.com/users/eitanElmalam/orgs","repos_url":"https://api.github.com/users/eitanElmalam/repos","events_url":"https://api.github.com/users/eitanElmalam/events{/privacy}","received_events_url":"https://api.github.com/users/eitanElmalam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2016-08-09T13:06:10Z","updated_at":"2016-08-24T11:24:07Z","closed_at":null,"body":"we are try to connect from cloud java application to openstack environment and get error:\r\nClientResponseException{message=Target service not allowed, status=403, status-code=FORBIDDEN}\r\nThe code is :\r\nOSClientV3 os = OSFactory.builderV3().endpoint(OPEN_STACK_URL)\r\n\t\t\t\t.credentials(\"admin\", \"devstack\", domainIdentifier)\r\n\t\t\t\t.scopeToProject( projectIdentifier,domainIdentifier)\r\n\r\n\t\t\t\t.authenticate();"},"comment":{"url":"https://api.github.com/repos/ContainX/openstack4j/issues/comments/242031269","html_url":"https://github.com/ContainX/openstack4j/issues/769#issuecomment-242031269","issue_url":"https://api.github.com/repos/ContainX/openstack4j/issues/769","id":242031269,"user":{"login":"eitanElmalam","id":20268444,"avatar_url":"https://avatars.githubusercontent.com/u/20268444?v=3","gravatar_id":"","url":"https://api.github.com/users/eitanElmalam","html_url":"https://github.com/eitanElmalam","followers_url":"https://api.github.com/users/eitanElmalam/followers","following_url":"https://api.github.com/users/eitanElmalam/following{/other_user}","gists_url":"https://api.github.com/users/eitanElmalam/gists{/gist_id}","starred_url":"https://api.github.com/users/eitanElmalam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eitanElmalam/subscriptions","organizations_url":"https://api.github.com/users/eitanElmalam/orgs","repos_url":"https://api.github.com/users/eitanElmalam/repos","events_url":"https://api.github.com/users/eitanElmalam/events{/privacy}","received_events_url":"https://api.github.com/users/eitanElmalam/received_events","type":"User","site_admin":false},"created_at":"2016-08-24T11:24:07Z","updated_at":"2016-08-24T11:24:07Z","body":"Hi,\r\n\r\nI did the fix and it solve the issue .\r\n---------------------------------------------------------------------------\r\nThe fix in file - HttpClienFactory:\r\n private CloseableHttpClient buildClient(Config config) {\r\n        HttpClientBuilder cb = HttpClientBuilder.create().setUserAgent(USER_AGENT);\r\n\r\n        SSLSocketFactory sslsf = null;\r\n \t\ttry {\r\n \t\t\tsslsf = new SSLSocketFactory(new TrustStrategy() {\r\n\r\n \t\t\t    public boolean isTrusted(\r\n \t\t\t            final X509Certificate[] chain, String authType) throws CertificateException {\r\n \t\t\t        return true;\r\n \t\t\t    }\r\n\r\n \t\t\t});\r\n \t\t} catch (KeyManagementException | UnrecoverableKeyException\r\n \t\t\t\t| NoSuchAlgorithmException | KeyStoreException e) {\r\n \t\t\te.printStackTrace();\r\n \t\t}\r\n \t\t\r\n \t\tcb.setSSLSocketFactory(sslsf);\r\n\r\n\r\n-------------------------------------------------------------------------------------\r\nCan you add the fix to next realese ?\r\nThanks\r\n\r\n"}}
{"actor":{"display_login":"eitanElmalam"}}