Interface AccessControl

    • Method Detail

      • hasAccess

        @Deprecated
        default boolean hasAccess​(RequesterIdentity requesterIdentity)
        Deprecated.
        First-step access control when processing broker requests. Decides whether request is allowed to acquire resources for further processing. Request may still be rejected at table-level later on. The default implementation is kept to have backward compatibility with the existing implementations
        Parameters:
        requesterIdentity - requester identity
        Returns:
        true if authorized, false otherwise
      • authorize

        default org.apache.pinot.spi.auth.AuthorizationResult authorize​(RequesterIdentity requesterIdentity)
        First-step access control when processing broker requests. Decides whether request is allowed to acquire resources for further processing. Request may still be rejected at table-level later on. The default implementation returns a BasicAuthorizationResultImpl with the result of the hasAccess() of the implementation
        Parameters:
        requesterIdentity - requester identity
        Returns:
        AuthorizationResult with the result of the access control check
      • hasAccess

        @Deprecated
        default boolean hasAccess​(RequesterIdentity requesterIdentity,
                                  org.apache.pinot.common.request.BrokerRequest brokerRequest)
        Deprecated.
        Fine-grained access control on parsed broker request. May check table, column, permissions, etc. The default implementation is kept to have backward compatibility with the existing implementations
        Parameters:
        requesterIdentity - requester identity
        brokerRequest - broker request (incl query)
        Returns:
        true if authorized, false otherwise
      • authorize

        default org.apache.pinot.spi.auth.AuthorizationResult authorize​(RequesterIdentity requesterIdentity,
                                                                        org.apache.pinot.common.request.BrokerRequest brokerRequest)
        Verify access control on parsed broker request. May check table, column, permissions, etc. The default implementation returns a BasicAuthorizationResultImpl with the result of the hasAccess() of the implementation
        Parameters:
        requesterIdentity - requester identity
        brokerRequest - broker request (incl query)
        Returns:
        AuthorizationResult with the result of the access control check
      • hasAccess

        @Deprecated
        default boolean hasAccess​(RequesterIdentity requesterIdentity,
                                  Set<String> tables)
        Deprecated.
        Fine-grained access control on pinot tables. The default implementation is kept to have backward compatibility with the existing implementations
        Parameters:
        requesterIdentity - requester identity
        tables - Set of pinot tables used in the query. Table name can be with or without tableType.
        Returns:
        true if authorized, false otherwise
      • authorize

        default org.apache.pinot.spi.auth.TableAuthorizationResult authorize​(RequesterIdentity requesterIdentity,
                                                                             Set<String> tables)
        Verify access control on pinot tables. The default implementation returns a TableAuthorizationResult with the result of the hasAccess() of the implementation
        Parameters:
        requesterIdentity - requester identity
        tables - Set of pinot tables used in the query. Table name can be with or without tableType.
        Returns:
        TableAuthorizationResult with the result of the access control check