Hi Guys,

My understanding is that there are two safe ways of usage of SQL Standards
Based Authorization (SSBA):

   1. Hide Hive Metastore from the world by embedding it into HiveServer2.
   *MetaStoreAuthzAPIAuthorizerEmbedOnly* configuration for Metastore is
   only a half-protection since everyone can change tables-specific metadata.
   2. Have "two Metastores", but Public one should be additionally
   protected by Storage Based Authorization

Option #2 is much more demanded, since there are too many frameworks in
Hadoop ecosystem which use Hive Metastore. But necessity to keep both SQL
and HDFS ACLs in sync is an administration nightmare (especially taking
into account that "doAs" option is false in SSBA mode).

*Why isn't it possible to add SSBA-like authorizer to Hive Metastore as
well?* The authorizer could check if a user has permissions to update
table-specific metadata according to his role and username. I could even
imagine following layout:

   1. All the files in Hive tables can be accessed only by few system users
   (hive, spark-sql, impala, etc)
   2. There is only a single place of granting permissions - through SQL
   standards and all SQL-like frameworks around the metastore should use it
   3. Additional HDFS permissions configuration would be needed only for
   rare cases of data access from non-impersonated execution pipelines (Spark
   Core, etc)
   4. No necessity to have embedded into HiveServer2 metastore, no strange
   configuration options, easier for understanding and documentation

May be I've missed something in my understanding... So, please, point me to
my mistake in this case.

Reply via email to