You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2012/10/23 15:27:13 UTC

[jira] [Created] (AMQ-4124) Disable sample web application from out of the box broker

Claus Ibsen created AMQ-4124:
--------------------------------

             Summary: Disable sample web application from out of the box broker
                 Key: AMQ-4124
                 URL: https://issues.apache.org/jira/browse/AMQ-4124
             Project: ActiveMQ
          Issue Type: Improvement
          Components: Broker
    Affects Versions: 5.7.0
            Reporter: Claus Ibsen
            Assignee: Claus Ibsen
            Priority: Minor
             Fix For: 5.8.0


The out of the box broker you can start with bin/activemq includes a sample web application. We should disable this web app as people dont want to run this in the production broker. Instead we should have instructions to startup the broker with a activemq-demo.xml file that has the sample instead.

See nabble
http://activemq.2283324.n4.nabble.com/DISCUSS-ActiveMQ-out-of-the-box-Should-not-include-the-demos-tp4658044.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Comment Edited] (AMQ-4124) Disable sample web application from out of the box broker

Posted by "Gary Tully (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQ-4124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13489485#comment-13489485 ] 

Gary Tully edited comment on AMQ-4124 at 11/2/12 3:34 PM:
----------------------------------------------------------

just a thought on this, it may be better to simply restrict the jetty endpoint to the loopback address by default. So that any vulnerability in the demos or any webapp is not visible by default.
Having the samples enabled out of the box makes for a nice simple intro to messaging and the features of the broker. Once you have localhost access to the machine.

but I agree, they should not be enabled for production. Maybe the loopback address for jetty is a separate issue.
                
      was (Author: gtully):
    just a thought on this, it may be better to simply restrict the jetty endpoint to the loopback address by default. So that any vulnerability in the demos or any webapp is not visible by default.
Having the samples enabled out of the box makes for a nice simple intro to messaging and the features of the broker. Once you have localhost access to the machine.
                  
> Disable sample web application from out of the box broker
> ---------------------------------------------------------
>
>                 Key: AMQ-4124
>                 URL: https://issues.apache.org/jira/browse/AMQ-4124
>             Project: ActiveMQ
>          Issue Type: Improvement
>          Components: Broker
>    Affects Versions: 5.7.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 5.8.0
>
>
> The out of the box broker you can start with bin/activemq includes a sample web application. We should disable this web app as people dont want to run this in the production broker. Instead we should have instructions to startup the broker with a activemq-demo.xml file that has the sample instead.
> See nabble
> http://activemq.2283324.n4.nabble.com/DISCUSS-ActiveMQ-out-of-the-box-Should-not-include-the-demos-tp4658044.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (AMQ-4124) Disable sample web application from out of the box broker

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQ-4124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13492215#comment-13492215 ] 

Claus Ibsen commented on AMQ-4124:
----------------------------------

Currently you do, which has been documented in the user-guide that is included in the distro
{code}
./bin/activemq console xbean:conf/activemq-demo.xml
{code}

So what if we make that easier by having a "demo" as shorthand for that, have a demo command, that runs the broker with demos enabled so you can do
{code}
./bin/activemq demo
{code}

Which runs it in demo mode. And I think you can run with console enabled also
{code}
./bin/activemq console demo
{code}

                
> Disable sample web application from out of the box broker
> ---------------------------------------------------------
>
>                 Key: AMQ-4124
>                 URL: https://issues.apache.org/jira/browse/AMQ-4124
>             Project: ActiveMQ
>          Issue Type: Improvement
>          Components: Broker
>    Affects Versions: 5.7.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 5.8.0
>
>
> The out of the box broker you can start with bin/activemq includes a sample web application. We should disable this web app as people dont want to run this in the production broker. Instead we should have instructions to startup the broker with a activemq-demo.xml file that has the sample instead.
> See nabble
> http://activemq.2283324.n4.nabble.com/DISCUSS-ActiveMQ-out-of-the-box-Should-not-include-the-demos-tp4658044.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (AMQ-4124) Disable sample web application from out of the box broker

Posted by "Gary Tully (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQ-4124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13489485#comment-13489485 ] 

Gary Tully commented on AMQ-4124:
---------------------------------

just a thought on this, it may be better to simply restrict the jetty endpoint to the loopback address by default. So that any vulnerability in the demos or any webapp is not visible by default.
Having the samples enabled out of the box makes for a nice simple intro to messaging and the features of the broker. Once you have localhost access to the machine.
                
> Disable sample web application from out of the box broker
> ---------------------------------------------------------
>
>                 Key: AMQ-4124
>                 URL: https://issues.apache.org/jira/browse/AMQ-4124
>             Project: ActiveMQ
>          Issue Type: Improvement
>          Components: Broker
>    Affects Versions: 5.7.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 5.8.0
>
>
> The out of the box broker you can start with bin/activemq includes a sample web application. We should disable this web app as people dont want to run this in the production broker. Instead we should have instructions to startup the broker with a activemq-demo.xml file that has the sample instead.
> See nabble
> http://activemq.2283324.n4.nabble.com/DISCUSS-ActiveMQ-out-of-the-box-Should-not-include-the-demos-tp4658044.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (AMQ-4124) Disable sample web application from out of the box broker

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-4124?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved AMQ-4124.
------------------------------

    Resolution: Fixed
    
> Disable sample web application from out of the box broker
> ---------------------------------------------------------
>
>                 Key: AMQ-4124
>                 URL: https://issues.apache.org/jira/browse/AMQ-4124
>             Project: ActiveMQ
>          Issue Type: Improvement
>          Components: Broker
>    Affects Versions: 5.7.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 5.8.0
>
>
> The out of the box broker you can start with bin/activemq includes a sample web application. We should disable this web app as people dont want to run this in the production broker. Instead we should have instructions to startup the broker with a activemq-demo.xml file that has the sample instead.
> See nabble
> http://activemq.2283324.n4.nabble.com/DISCUSS-ActiveMQ-out-of-the-box-Should-not-include-the-demos-tp4658044.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (AMQ-4124) Disable sample web application from out of the box broker

Posted by "Gary Tully (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQ-4124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13492289#comment-13492289 ] 

Gary Tully commented on AMQ-4124:
---------------------------------

probably no need for the demo shortcut, it is no harm to expose the xbean:url format as a means of providing an alternative configuration file and there are a bunch of other configuration files that folks may want to use. It keeps the scripts simpler.
                
> Disable sample web application from out of the box broker
> ---------------------------------------------------------
>
>                 Key: AMQ-4124
>                 URL: https://issues.apache.org/jira/browse/AMQ-4124
>             Project: ActiveMQ
>          Issue Type: Improvement
>          Components: Broker
>    Affects Versions: 5.7.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 5.8.0
>
>
> The out of the box broker you can start with bin/activemq includes a sample web application. We should disable this web app as people dont want to run this in the production broker. Instead we should have instructions to startup the broker with a activemq-demo.xml file that has the sample instead.
> See nabble
> http://activemq.2283324.n4.nabble.com/DISCUSS-ActiveMQ-out-of-the-box-Should-not-include-the-demos-tp4658044.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira