{"action":"created","comment":{"url":"https://api.github.com/repos/ppalaga/wildfly-camel/pulls/comments/191385334","pull_request_review_id":123890382,"id":191385334,"diff_hunk":"@@ -0,0 +1,170 @@\n+/*\n+* #%L\n+* Wildfly Camel :: Testsuite\n+* %%\n+* Copyright (C) 2013 - 2018 RedHat\n+* %%\n+* Licensed under the Apache License, Version 2.0 (the \"License\");\n+* you may not use this file except in compliance with the License.\n+* You may obtain a copy of the License at\n+*\n+*      http://www.apache.org/licenses/LICENSE-2.0\n+*\n+* Unless required by applicable law or agreed to in writing, software\n+* distributed under the License is distributed on an \"AS IS\" BASIS,\n+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+* See the License for the specific language governing permissions and\n+* limitations under the License.\n+* #L%\n+*/\n+package org.wildfly.camel.test.common.security;\n+\n+import java.io.IOException;\n+import java.nio.file.Files;\n+import java.nio.file.Path;\n+import java.security.KeyManagementException;\n+import java.security.KeyStoreException;\n+import java.security.NoSuchAlgorithmException;\n+import java.security.UnrecoverableKeyException;\n+import java.security.cert.CertificateException;\n+\n+import javax.net.ssl.HostnameVerifier;\n+import javax.net.ssl.SSLSession;\n+\n+import org.apache.http.conn.ssl.SSLConnectionSocketFactory;\n+import org.apache.http.conn.ssl.TrustSelfSignedStrategy;\n+import org.apache.http.ssl.SSLContextBuilder;\n+import org.apache.http.ssl.SSLContexts;\n+import org.jboss.shrinkwrap.api.asset.StringAsset;\n+import org.jboss.shrinkwrap.api.spec.WebArchive;\n+import org.slf4j.Logger;\n+import org.slf4j.LoggerFactory;\n+import org.wildfly.camel.test.common.utils.FileUtils;\n+import org.wildfly.camel.test.common.utils.WildFlyCli;\n+import org.wildfly.camel.test.cxf.ws.secure.subA.Application;\n+import org.wildfly.camel.test.cxf.ws.secure.subA.CxfWsRouteBuilder;\n+import org.wildfly.camel.test.cxf.ws.secure.subA.GreetingService;\n+import org.wildfly.camel.test.cxf.ws.secure.subA.GreetingsProcessor;\n+\n+public class SecurityUtils {\n+    private static final Logger LOG = LoggerFactory.getLogger(SecurityUtils.class);\n+\n+    private static final String APPLICATION_KEYSTORE_PASSWORD = \"password\";\n+\n+    private static final String CLIENT_CERT_KEYSTORE_PASSWORD = \"123456\";\n+    private static final String CLIENT_CRT = \"client.crt\";\n+    private static final String CLIENT_KEYSTORE = \"client.keystore\";\n+    private static final String CLIENT_TRUSTSTORE = \"client.truststore\";\n+    private static final String SERVER_ALIAS = \"server\";\n+    private static final String SERVER_CRT = \"server.crt\";\n+    private static final String SERVER_KEYSTORE = \"server.keystore\";\n+    private static final String SERVER_TRUSTSTORE = \"server.truststore\";\n+    private static final String UNTRUSTED_CRT = \"untrusted.crt\";\n+    private static final String UNTRUSTED_KEYSTORE = \"untrusted.keystore\";\n+\n+    private static final String JBOSS_WEB_XML_TEMPLATE = \"<jboss-web><security-domain>%s</security-domain></jboss-web>\";\n+    private static final String WEB_XML_TEMPLATE = \"<web-app>\" //\n+            + \"<security-constraint>\" //\n+            + \"<display-name>SecurityConstraint</display-name>\" //\n+            + \"<web-resource-collection>\" //\n+            + \"<web-resource-name>All Resources</web-resource-name>\" //\n+            + \"<url-pattern>///*</url-pattern>\" //","path":"itests/standalone/basic/src/test/java/org/wildfly/camel/test/common/security/SecurityUtils.java","position":71,"original_position":71,"commit_id":"dfd3e14d73e5f17c36a6f275b18b9001a33b76e8","original_commit_id":"dfd3e14d73e5f17c36a6f275b18b9001a33b76e8","user":{"login":"jamesnetherton","id":4721408,"avatar_url":"https://avatars2.githubusercontent.com/u/4721408?v=4","gravatar_id":"","url":"https://api.github.com/users/jamesnetherton","html_url":"https://github.com/jamesnetherton","followers_url":"https://api.github.com/users/jamesnetherton/followers","following_url":"https://api.github.com/users/jamesnetherton/following{/other_user}","gists_url":"https://api.github.com/users/jamesnetherton/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesnetherton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesnetherton/subscriptions","organizations_url":"https://api.github.com/users/jamesnetherton/orgs","repos_url":"https://api.github.com/users/jamesnetherton/repos","events_url":"https://api.github.com/users/jamesnetherton/events{/privacy}","received_events_url":"https://api.github.com/users/jamesnetherton/received_events","type":"User","site_admin":false},"body":"Possibly a silly question but I want to make sure we have this covered....\r\n\r\nThere could potentially be multiple CXF endpoints configured within the deployment. This solution can handle applying security to multiple paths, right?\r\n\r\nE.g if I were to configure CXF endpoint 'A' to /foo/bar and endpoint 'B' to /foo/bar/cheese, can I apply individual security constraints to each individual path?","created_at":"2018-05-29T11:09:58Z","updated_at":"2018-05-29T11:46:17Z","html_url":"https://github.com/ppalaga/wildfly-camel/pull/1#discussion_r191385334","pull_request_url":"https://api.github.com/repos/ppalaga/wildfly-camel/pulls/1","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/ppalaga/wildfly-camel/pulls/comments/191385334"},"html":{"href":"https://github.com/ppalaga/wildfly-camel/pull/1#discussion_r191385334"},"pull_request":{"href":"https://api.github.com/repos/ppalaga/wildfly-camel/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/ppalaga/wildfly-camel/pulls/1","id":190585775,"html_url":"https://github.com/ppalaga/wildfly-camel/pull/1","diff_url":"https://github.com/ppalaga/wildfly-camel/pull/1.diff","patch_url":"https://github.com/ppalaga/wildfly-camel/pull/1.patch","issue_url":"https://api.github.com/repos/ppalaga/wildfly-camel/issues/1","number":1,"state":"open","locked":false,"title":"ENTESB-7959 wf 13 WIP","user":{"login":"ppalaga","id":1826249,"avatar_url":"https://avatars0.githubusercontent.com/u/1826249?v=4","gravatar_id":"","url":"https://api.github.com/users/ppalaga","html_url":"https://github.com/ppalaga","followers_url":"https://api.github.com/users/ppalaga/followers","following_url":"https://api.github.com/users/ppalaga/following{/other_user}","gists_url":"https://api.github.com/users/ppalaga/gists{/gist_id}","starred_url":"https://api.github.com/users/ppalaga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppalaga/subscriptions","organizations_url":"https://api.github.com/users/ppalaga/orgs","repos_url":"https://api.github.com/users/ppalaga/repos","events_url":"https://api.github.com/users/ppalaga/events{/privacy}","received_events_url":"https://api.github.com/users/ppalaga/received_events","type":"User","site_admin":false},"body":"This is supposed to work on top of WF 13 commit 2df7ebafb61f9f6f92edd5222100a563c4180e12 available in my branch https://github.com/ppalaga/wildfly/tree/WFLY-10446","created_at":"2018-05-25T13:17:42Z","updated_at":"2018-05-29T11:46:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6f2dd408bfafa86908a4a5addcab29602564e0ce","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ppalaga/wildfly-camel/pulls/1/commits","review_comments_url":"https://api.github.com/repos/ppalaga/wildfly-camel/pulls/1/comments","review_comment_url":"https://api.github.com/repos/ppalaga/wildfly-camel/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ppalaga/wildfly-camel/issues/1/comments","statuses_url":"https://api.github.com/repos/ppalaga/wildfly-camel/statuses/dfd3e14d73e5f17c36a6f275b18b9001a33b76e8","head":{"label":"ppalaga:ENTESB-7959","ref":"ENTESB-7959","sha":"dfd3e14d73e5f17c36a6f275b18b9001a33b76e8","user":{"login":"ppalaga","id":1826249,"avatar_url":"https://avatars0.githubusercontent.com/u/1826249?v=4","gravatar_id":"","url":"https://api.github.com/users/ppalaga","html_url":"https://github.com/ppalaga","followers_url":"https://api.github.com/users/ppalaga/followers","following_url":"https://api.github.com/users/ppalaga/following{/other_user}","gists_url":"https://api.github.com/users/ppalaga/gists{/gist_id}","starred_url":"https://api.github.com/users/ppalaga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppalaga/subscriptions","organizations_url":"https://api.github.com/users/ppalaga/orgs","repos_url":"https://api.github.com/users/ppalaga/repos","events_url":"https://api.github.com/users/ppalaga/events{/privacy}","received_events_url":"https://api.github.com/users/ppalaga/received_events","type":"User","site_admin":false},"repo":{"id":101184017,"name":"wildfly-camel","full_name":"ppalaga/wildfly-camel","owner":{"login":"ppalaga","id":1826249,"avatar_url":"https://avatars0.githubusercontent.com/u/1826249?v=4","gravatar_id":"","url":"https://api.github.com/users/ppalaga","html_url":"https://github.com/ppalaga","followers_url":"https://api.github.com/users/ppalaga/followers","following_url":"https://api.github.com/users/ppalaga/following{/other_user}","gists_url":"https://api.github.com/users/ppalaga/gists{/gist_id}","starred_url":"https://api.github.com/users/ppalaga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppalaga/subscriptions","organizations_url":"https://api.github.com/users/ppalaga/orgs","repos_url":"https://api.github.com/users/ppalaga/repos","events_url":"https://api.github.com/users/ppalaga/events{/privacy}","received_events_url":"https://api.github.com/users/ppalaga/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ppalaga/wildfly-camel","description":"WildFly Camel Subsystem","fork":true,"url":"https://api.github.com/repos/ppalaga/wildfly-camel","forks_url":"https://api.github.com/repos/ppalaga/wildfly-camel/forks","keys_url":"https://api.github.com/repos/ppalaga/wildfly-camel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ppalaga/wildfly-camel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ppalaga/wildfly-camel/teams","hooks_url":"https://api.github.com/repos/ppalaga/wildfly-camel/hooks","issue_events_url":"https://api.github.com/repos/ppalaga/wildfly-camel/issues/events{/number}","events_url":"https://api.github.com/repos/ppalaga/wildfly-camel/events","assignees_url":"https://api.github.com/repos/ppalaga/wildfly-camel/assignees{/user}","branches_url":"https://api.github.com/repos/ppalaga/wildfly-camel/branches{/branch}","tags_url":"https://api.github.com/repos/ppalaga/wildfly-camel/tags","blobs_url":"https://api.github.com/repos/ppalaga/wildfly-camel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ppalaga/wildfly-camel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ppalaga/wildfly-camel/git/refs{/sha}","trees_url":"https://api.github.com/repos/ppalaga/wildfly-camel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ppalaga/wildfly-camel/statuses/{sha}","languages_url":"https://api.github.com/repos/ppalaga/wildfly-camel/languages","stargazers_url":"https://api.github.com/repos/ppalaga/wildfly-camel/stargazers","contributors_url":"https://api.github.com/repos/ppalaga/wildfly-camel/contributors","subscribers_url":"https://api.github.com/repos/ppalaga/wildfly-camel/subscribers","subscription_url":"https://api.github.com/repos/ppalaga/wildfly-camel/subscription","commits_url":"https://api.github.com/repos/ppalaga/wildfly-camel/commits{/sha}","git_commits_url":"https://api.github.com/repos/ppalaga/wildfly-camel/git/commits{/sha}","comments_url":"https://api.github.com/repos/ppalaga/wildfly-camel/comments{/number}","issue_comment_url":"https://api.github.com/repos/ppalaga/wildfly-camel/issues/comments{/number}","contents_url":"https://api.github.com/repos/ppalaga/wildfly-camel/contents/{+path}","compare_url":"https://api.github.com/repos/ppalaga/wildfly-camel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ppalaga/wildfly-camel/merges","archive_url":"https://api.github.com/repos/ppalaga/wildfly-camel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ppalaga/wildfly-camel/downloads","issues_url":"https://api.github.com/repos/ppalaga/wildfly-camel/issues{/number}","pulls_url":"https://api.github.com/repos/ppalaga/wildfly-camel/pulls{/number}","milestones_url":"https://api.github.com/repos/ppalaga/wildfly-camel/milestones{/number}","notifications_url":"https://api.github.com/repos/ppalaga/wildfly-camel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ppalaga/wildfly-camel/labels{/name}","releases_url":"https://api.github.com/repos/ppalaga/wildfly-camel/releases{/id}","deployments_url":"https://api.github.com/repos/ppalaga/wildfly-camel/deployments","created_at":"2017-08-23T13:36:21Z","updated_at":"2017-08-23T13:36:24Z","pushed_at":"2018-05-25T13:17:42Z","git_url":"git://github.com/ppalaga/wildfly-camel.git","ssh_url":"git@github.com:ppalaga/wildfly-camel.git","clone_url":"https://github.com/ppalaga/wildfly-camel.git","svn_url":"https://github.com/ppalaga/wildfly-camel","homepage":"","size":15898,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"ppalaga:wildfly-13.x","ref":"wildfly-13.x","sha":"d0498eb2b9c4b04ed4af22533b38e21ec003d9e9","user":{"login":"ppalaga","id":1826249,"avatar_url":"https://avatars0.githubusercontent.com/u/1826249?v=4","gravatar_id":"","url":"https://api.github.com/users/ppalaga","html_url":"https://github.com/ppalaga","followers_url":"https://api.github.com/users/ppalaga/followers","following_url":"https://api.github.com/users/ppalaga/following{/other_user}","gists_url":"https://api.github.com/users/ppalaga/gists{/gist_id}","starred_url":"https://api.github.com/users/ppalaga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppalaga/subscriptions","organizations_url":"https://api.github.com/users/ppalaga/orgs","repos_url":"https://api.github.com/users/ppalaga/repos","events_url":"https://api.github.com/users/ppalaga/events{/privacy}","received_events_url":"https://api.github.com/users/ppalaga/received_events","type":"User","site_admin":false},"repo":{"id":101184017,"name":"wildfly-camel","full_name":"ppalaga/wildfly-camel","owner":{"login":"ppalaga","id":1826249,"avatar_url":"https://avatars0.githubusercontent.com/u/1826249?v=4","gravatar_id":"","url":"https://api.github.com/users/ppalaga","html_url":"https://github.com/ppalaga","followers_url":"https://api.github.com/users/ppalaga/followers","following_url":"https://api.github.com/users/ppalaga/following{/other_user}","gists_url":"https://api.github.com/users/ppalaga/gists{/gist_id}","starred_url":"https://api.github.com/users/ppalaga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppalaga/subscriptions","organizations_url":"https://api.github.com/users/ppalaga/orgs","repos_url":"https://api.github.com/users/ppalaga/repos","events_url":"https://api.github.com/users/ppalaga/events{/privacy}","received_events_url":"https://api.github.com/users/ppalaga/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ppalaga/wildfly-camel","description":"WildFly Camel Subsystem","fork":true,"url":"https://api.github.com/repos/ppalaga/wildfly-camel","forks_url":"https://api.github.com/repos/ppalaga/wildfly-camel/forks","keys_url":"https://api.github.com/repos/ppalaga/wildfly-camel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ppalaga/wildfly-camel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ppalaga/wildfly-camel/teams","hooks_url":"https://api.github.com/repos/ppalaga/wildfly-camel/hooks","issue_events_url":"https://api.github.com/repos/ppalaga/wildfly-camel/issues/events{/number}","events_url":"https://api.github.com/repos/ppalaga/wildfly-camel/events","assignees_url":"https://api.github.com/repos/ppalaga/wildfly-camel/assignees{/user}","branches_url":"https://api.github.com/repos/ppalaga/wildfly-camel/branches{/branch}","tags_url":"https://api.github.com/repos/ppalaga/wildfly-camel/tags","blobs_url":"https://api.github.com/repos/ppalaga/wildfly-camel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ppalaga/wildfly-camel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ppalaga/wildfly-camel/git/refs{/sha}","trees_url":"https://api.github.com/repos/ppalaga/wildfly-camel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ppalaga/wildfly-camel/statuses/{sha}","languages_url":"https://api.github.com/repos/ppalaga/wildfly-camel/languages","stargazers_url":"https://api.github.com/repos/ppalaga/wildfly-camel/stargazers","contributors_url":"https://api.github.com/repos/ppalaga/wildfly-camel/contributors","subscribers_url":"https://api.github.com/repos/ppalaga/wildfly-camel/subscribers","subscription_url":"https://api.github.com/repos/ppalaga/wildfly-camel/subscription","commits_url":"https://api.github.com/repos/ppalaga/wildfly-camel/commits{/sha}","git_commits_url":"https://api.github.com/repos/ppalaga/wildfly-camel/git/commits{/sha}","comments_url":"https://api.github.com/repos/ppalaga/wildfly-camel/comments{/number}","issue_comment_url":"https://api.github.com/repos/ppalaga/wildfly-camel/issues/comments{/number}","contents_url":"https://api.github.com/repos/ppalaga/wildfly-camel/contents/{+path}","compare_url":"https://api.github.com/repos/ppalaga/wildfly-camel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ppalaga/wildfly-camel/merges","archive_url":"https://api.github.com/repos/ppalaga/wildfly-camel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ppalaga/wildfly-camel/downloads","issues_url":"https://api.github.com/repos/ppalaga/wildfly-camel/issues{/number}","pulls_url":"https://api.github.com/repos/ppalaga/wildfly-camel/pulls{/number}","milestones_url":"https://api.github.com/repos/ppalaga/wildfly-camel/milestones{/number}","notifications_url":"https://api.github.com/repos/ppalaga/wildfly-camel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ppalaga/wildfly-camel/labels{/name}","releases_url":"https://api.github.com/repos/ppalaga/wildfly-camel/releases{/id}","deployments_url":"https://api.github.com/repos/ppalaga/wildfly-camel/deployments","created_at":"2017-08-23T13:36:21Z","updated_at":"2017-08-23T13:36:24Z","pushed_at":"2018-05-25T13:17:42Z","git_url":"git://github.com/ppalaga/wildfly-camel.git","ssh_url":"git@github.com:ppalaga/wildfly-camel.git","clone_url":"https://github.com/ppalaga/wildfly-camel.git","svn_url":"https://github.com/ppalaga/wildfly-camel","homepage":"","size":15898,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ppalaga/wildfly-camel/pulls/1"},"html":{"href":"https://github.com/ppalaga/wildfly-camel/pull/1"},"issue":{"href":"https://api.github.com/repos/ppalaga/wildfly-camel/issues/1"},"comments":{"href":"https://api.github.com/repos/ppalaga/wildfly-camel/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/ppalaga/wildfly-camel/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/ppalaga/wildfly-camel/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ppalaga/wildfly-camel/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/ppalaga/wildfly-camel/statuses/dfd3e14d73e5f17c36a6f275b18b9001a33b76e8"}},"author_association":"OWNER"}}
{"actor":{"display_login":"jamesnetherton"}}