File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,28 +21,34 @@ data:
2121 default partition_allow = false
2222 default user_allow = false
2323
24+ ### SPARK ###
25+ # These rules are tailored for the create-spark-report job.
26+
27+ # Allow the spark user access to the 'customer_analytics_db'
2428 database_allow if {
2529 input.identity.username == spark_user
2630 input.resources.database.name == customer_analytics_db
2731 }
2832
29- # Allow 'SELECT * FROM lakehouse.customer_analytics.customer'
33+ # Allow the 'SELECT * FROM lakehouse.customer_analytics.customer' query in create-spark-report
3034 table_allow if {
3135 input.identity.username == spark_user
3236 input.resources.table.dbName == customer_analytics_db
3337 input.resources.table.tableName == "customer"
3438 input.privileges.readRequiredPriv[0].priv == "SELECT"
3539 }
3640
37- # Allow: 'CREATE TABLE IF NOT EXISTS lakehouse.customer_analytics.spark_report AS SELECT c_birth_country, count(*) FROM ..'
41+ # Allow the 'CREATE TABLE IF NOT EXISTS lakehouse.customer_analytics.spark_report AS SELECT c_birth_country, count(*) FROM ..'
42+ # query in create-spark-report
3843 table_allow if {
3944 input.identity.username == spark_user
4045 input.resources.table.dbName == customer_analytics_db
4146 input.resources.table.tableName == "spark_report"
4247 input.privileges.writeRequiredPriv[0].priv == "CREATE"
4348 }
4449
45- # Trino
50+ ### TRINO ###
51+ # We allow everything here for the technical trino user in order to still do data exploration
4652 database_allow if {
4753 input.identity.username == trino_user
4854 }
Original file line number Diff line number Diff line change @@ -584,12 +584,12 @@ stacks:
584584 - helmChart : https://raw.githubusercontent.com/stackabletech/demos/main/stacks/_templates/postgresql-superset.yaml
585585 - plainYaml : https://raw.githubusercontent.com/stackabletech/demos/main/stacks/end-to-end-security/krb5.yaml
586586 - plainYaml : https://raw.githubusercontent.com/stackabletech/demos/main/stacks/end-to-end-security/kerberos-secretclass.yaml
587- - plainYaml : stacks/end-to-end-security/opa.yaml
587+ - plainYaml : https://raw.githubusercontent.com/stackabletech/demos/main/ stacks/end-to-end-security/opa.yaml
588588 - plainYaml : https://raw.githubusercontent.com/stackabletech/demos/main/stacks/end-to-end-security/zookeeper.yaml # TODO: Add authentication
589589 - plainYaml : https://raw.githubusercontent.com/stackabletech/demos/main/stacks/end-to-end-security/hdfs.yaml
590590 - plainYaml : https://raw.githubusercontent.com/stackabletech/demos/main/stacks/end-to-end-security/hdfs-regorules.yaml
591- - plainYaml : stacks/end-to-end-security/hive-metastore.yaml
592- - plainYaml : stacks/end-to-end-security/hive-metastore-regorules.yaml
591+ - plainYaml : https://raw.githubusercontent.com/stackabletech/demos/main/ stacks/end-to-end-security/hive-metastore.yaml
592+ - plainYaml : https://raw.githubusercontent.com/stackabletech/demos/main/ stacks/end-to-end-security/hive-metastore-regorules.yaml
593593 - plainYaml : https://raw.githubusercontent.com/stackabletech/demos/main/stacks/end-to-end-security/trino.yaml
594594 - plainYaml : https://raw.githubusercontent.com/stackabletech/demos/main/stacks/end-to-end-security/trino-regorules.yaml
595595 - plainYaml : https://raw.githubusercontent.com/stackabletech/demos/main/stacks/end-to-end-security/trino-policies.yaml
You can’t perform that action at this time.
0 commit comments