{"action":"created","issue":{"url":"https://api.github.com/repos/blacklabelops/confluence/issues/46","repository_url":"https://api.github.com/repos/blacklabelops/confluence","labels_url":"https://api.github.com/repos/blacklabelops/confluence/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/blacklabelops/confluence/issues/46/comments","events_url":"https://api.github.com/repos/blacklabelops/confluence/issues/46/events","html_url":"https://github.com/blacklabelops/confluence/issues/46","id":298844191,"number":46,"title":"xmlstarlet for Crowd SSO causing mangled seraph-config.xml ?","user":{"login":"dragon788","id":487774,"avatar_url":"https://avatars2.githubusercontent.com/u/487774?v=4","gravatar_id":"","url":"https://api.github.com/users/dragon788","html_url":"https://github.com/dragon788","followers_url":"https://api.github.com/users/dragon788/followers","following_url":"https://api.github.com/users/dragon788/following{/other_user}","gists_url":"https://api.github.com/users/dragon788/gists{/gist_id}","starred_url":"https://api.github.com/users/dragon788/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dragon788/subscriptions","organizations_url":"https://api.github.com/users/dragon788/orgs","repos_url":"https://api.github.com/users/dragon788/repos","events_url":"https://api.github.com/users/dragon788/events{/privacy}","received_events_url":"https://api.github.com/users/dragon788/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-02-21T05:11:51Z","updated_at":"2018-02-24T17:45:33Z","closed_at":null,"author_association":"NONE","body":"I'm not sure if it is the mangled seraph-config.xml shown below or something else with the Crowd_enable_SSO flag, but there is something fishy going on.\r\n\r\nI'm attempting to simulate an environment with all the Atlassian apps communicating with each other via a \"composed\" docker-compose and I've ironed out most of the kinks (and will hopefully PR a few changes to your repos soon), but every time I enable Crowd authentication if I also have Crowd SSO turned on for the Confluence container it completely prevents logging in. There is a known issue with Crowd in Confluence preventing local logins from working, but this is actually preventing valid Crowd logins from working either, I end up having to tear down the instance and set it up again. I've also run into issues with the Jira container and Crowd SSO so I've turned it off on those for now, though Bitbucket doesn't seem to mind whether it is on or off.\r\n\r\n```<?xml version=\"1.0\"?>\r\n<security-config\r\n  >\r\n    <parameters\r\n    >\r\n        <init-param\r\n      >\r\n            <param-name\r\n        >login.url</param-name\r\n      >\r\n            <param-value\r\n        >/login.action?os_destination=${originalurl}&amp;permissionViolation=true</param-value\r\n      >\r\n        </init-param\r\n    >\r\n        <init-param\r\n      >\r\n            <param-name\r\n        >link.login.url</param-name\r\n      >\r\n            <param-value\r\n        >/login.action</param-value\r\n      >\r\n        </init-param\r\n    >\r\n        <init-param\r\n      >\r\n            <param-name\r\n        >cookie.encoding</param-name\r\n      >\r\n            <param-value\r\n        >cNf</param-value\r\n      >\r\n        </init-param\r\n    >\r\n        <init-param\r\n      >\r\n            <param-name\r\n        >login.cookie.key</param-name\r\n      >\r\n            <param-value\r\n        >seraph.confluence</param-value\r\n      >\r\n        </init-param\r\n    >\r\n\r\n        <!--only basic authentication available-->\r\n        <init-param\r\n      >\r\n            <param-name\r\n        >authentication.type</param-name\r\n      >\r\n            <param-value\r\n        >os_authType</param-value\r\n      >\r\n        </init-param\r\n    >\r\n        \r\n        <!-- Invalidate session on login to prevent session fixation attack -->\r\n         <init-param\r\n      >\r\n            <param-name\r\n        >invalidate.session.on.login</param-name\r\n      >\r\n            <param-value\r\n        >true</param-value\r\n      >\r\n        </init-param\r\n    >\r\n        <!-- Add names for session attributes that must not be copied to a new session when the old one gets invalidated.\r\n          Currently it is empty (i.e. all attributes will be copied). -->\r\n        <init-param\r\n      >\r\n            <param-name\r\n        >invalidate.session.exclude.list</param-name\r\n      >\r\n            <param-value\r\n      />\r\n        </init-param\r\n    >\r\n    </parameters\r\n  >\r\n\r\n    <rolemapper\r\n      class=\"com.atlassian.confluence.security.ConfluenceRoleMapper\"\r\n  />\r\n    <controller\r\n      class=\"com.atlassian.confluence.setup.seraph.ConfluenceSecurityController\"\r\n  />\r\n\r\n    <!-- Default Confluence authenticator, which uses the configured user management for authentication. -->\r\n    \r\n\r\n    <!-- Custom authenticators appear below. To enable one of them, comment out the default authenticator above and uncomment the one below. -->\r\n\r\n    <!-- Authenticator with support for Crowd single-sign on (SSO). -->\r\n    <!-- <authenticator class=\"com.atlassian.confluence.user.ConfluenceCrowdSSOAuthenticator\"/> -->\r\n\r\n    <!-- Specialised version of the default authenticator which adds authenticated users to confluence-users if they aren't already a member. -->\r\n    \r\n\r\n    <services\r\n    >\r\n        <service\r\n        class=\"com.atlassian.seraph.service.PathService\"\r\n      >\r\n            <init-param\r\n        >\r\n                <param-name\r\n          >config.file</param-name\r\n        >\r\n                <param-value\r\n          >seraph-paths.xml</param-value\r\n        >\r\n            </init-param\r\n      >\r\n        </service\r\n    >\r\n    </services\r\n  >\r\n\r\n    <elevatedsecurityguard\r\n      class=\"com.atlassian.confluence.security.seraph.ConfluenceElevatedSecurityGuard\"\r\n  />\r\n\r\n<authenticator\r\n      class=\"com.atlassian.confluence.user.ConfluenceCrowdSSOAuthenticator\"\r\n  /></security-config\r\n>\r\n```"},"comment":{"url":"https://api.github.com/repos/blacklabelops/confluence/issues/comments/368245789","html_url":"https://github.com/blacklabelops/confluence/issues/46#issuecomment-368245789","issue_url":"https://api.github.com/repos/blacklabelops/confluence/issues/46","id":368245789,"user":{"login":"blacklabelops","id":11004090,"avatar_url":"https://avatars1.githubusercontent.com/u/11004090?v=4","gravatar_id":"","url":"https://api.github.com/users/blacklabelops","html_url":"https://github.com/blacklabelops","followers_url":"https://api.github.com/users/blacklabelops/followers","following_url":"https://api.github.com/users/blacklabelops/following{/other_user}","gists_url":"https://api.github.com/users/blacklabelops/gists{/gist_id}","starred_url":"https://api.github.com/users/blacklabelops/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blacklabelops/subscriptions","organizations_url":"https://api.github.com/users/blacklabelops/orgs","repos_url":"https://api.github.com/users/blacklabelops/repos","events_url":"https://api.github.com/users/blacklabelops/events{/privacy}","received_events_url":"https://api.github.com/users/blacklabelops/received_events","type":"User","site_admin":false},"created_at":"2018-02-24T17:45:33Z","updated_at":"2018-02-24T17:45:33Z","author_association":"OWNER","body":"Same in Jira, needs a crowd.properties."}}
{"actor":{"display_login":"blacklabelops"}}