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

Guardrail: allow_filtering_custom_error_message

    XMLWordPrintableJSON

Details

    Description

      in Apache Cassandra Release Version 4.1 :
      with "allow_filtering_enabled: false" option under guardrails :
      regular users cannot run queries with allow filtering clause in SELECT commands. Users get following error message :
      <stdin>:1:InvalidRequest: Error from server: code=2200 [Invalid query] message="Guardrail allow_filtering violated: Querying with ALLOW FILTERING is not allowed"

      I propose for a new parameter in conf file : something like : allow_filtering_custom_error_message and allow cluster operators to configure custom message
      so if someone runs a SELECT command along with "ALLOW FILTERING"
      it should print ERROR : InvalidRequest:code=2202:message="STOP using allow_filtering clause"

      so this will allow the operators to stop users from running allow filtering as well as give them to configure a custom error message.

      Attachments

        Issue Links

          Activity

            People

              adelapena Andres de la Peña
              oramad Sarma Pydipally
              Andres de la Peña
              Berenguer Blasi
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 50m
                  1h 50m