Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-11755

nodetool info should run with "readonly" jmx access

    XMLWordPrintableJSON

Details

    Description

      nodetool info crash when granted with readonly jmx access

      In the example given in attachment, the jmxremote.access file gives readonly access to the cassandra jmx role.

      When the role is granted to readwrite access, everything works.

      The main reason is that node datacenter and rack info are fetched by an operation invocation instead of by an attribute read. The former one is not allowed to the role with readonly access.

      This is a security concern because nodetool info could be called by a monitoring agent (Nagios for instance) and enterprise policy often don't allow these agents to connect to JMX with higher privileges than "readonly".

      Attachments

        1. nodetool-info-exception-when-readonly.txt
          3 kB
          Jérôme Mainaud
        2. 11755-2.1.patch
          3 kB
          Jérôme Mainaud

        Activity

          People

            jxerome Jérôme Mainaud
            jxerome Jérôme Mainaud
            Jérôme Mainaud
            Paulo Motta
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: