Skip to content

Commit

Permalink
Release/0.3.1 (#154)
Browse files Browse the repository at this point in the history
* Update setup.md

* Updated instructions to address dashboard permissions.

* update clusters to SINGLE_USER (#153)

---------

Co-authored-by: Arun Pamulapati <[email protected]>
  • Loading branch information
dleiva04 and arunpamulapati authored Oct 7, 2024
1 parent 348cea3 commit 57b3f41
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ resources:
job_clusters:
- job_cluster_key: job_cluster
new_cluster:
data_security_mode: SINGLE_USER
num_workers: 5
spark_version: {{.latest_lts}}
runtime_engine: "PHOTON"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ resources:
job_clusters:
- job_cluster_key: job_cluster
new_cluster:
data_security_mode: SINGLE_USER
num_workers: 5
spark_version: {{.latest_lts}}
runtime_engine: "PHOTON"
Expand Down
12 changes: 11 additions & 1 deletion docs/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,19 @@ You now have two jobs (SAT Initializer Notebook & SAT Driver Notebook). Run SAT

### 2. Access Databricks SQL Dashboards

> **Note:** You can also use Lakeview Dashboards to view the results.
> **Note:** You can use Lakeview Dashboards to view the results.
The Dashboard is, by default, owned by the profile you used to set up SAT or the Service Principle. If you see errors running the dashboard, you are likely running into permissions issues.
1. Go over to the dashboard and click on the "Share" button in the top right.
2. Click on the cogwheel and select the option "Assign new owner"
3. Assign yourself as the new owner of the dashboard. You can also assign this to someone who has access to the SAT catalog/schema and tables.
4. Click on the "Published" option at the top to switch to the draft version of the dashboard.Click on the "Publish" button next to the share option.
5. In the general settings section, you can choose one of two options:
Embed credentials (default): All viewers will run queries using the owner's credentials and compute. This may expose data to users who normally wouldn't have access.
Don't ember credentials: Each viewer will need access to this workspace, the associated data, and the compute to view this dashboard. We recommend using this option.


> **Note:** We are switching SAT to Lakeview Dashboard, but the classic dashboard is still available.
In DBSQL find "SAT - Security Analysis Tool" dashboard to see the report. You can filter the dashboard by **SAT** tag. (The old classic legacy dashboard can be found in Workspace -> Home -> SAT_dashboard)
<img src="./images/sat_dashboard_loc.png" width="70%" height="70%">
Expand Down
12 changes: 7 additions & 5 deletions terraform/common/jobs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ resource "databricks_job" "initializer" {
job_cluster {
job_cluster_key = "job_cluster"
new_cluster {
num_workers = 5
spark_version = data.databricks_spark_version.latest_lts.id
node_type_id = data.databricks_node_type.smallest.id
runtime_engine = "PHOTON"
data_security_mode = "SINGLE_USER"
num_workers = 5
spark_version = data.databricks_spark_version.latest_lts.id
node_type_id = data.databricks_node_type.smallest.id
runtime_engine = "PHOTON"
dynamic "gcp_attributes" {
for_each = var.gcp_impersonate_service_account == "" ? [] : [var.gcp_impersonate_service_account]
content {
Expand All @@ -17,7 +18,7 @@ resource "databricks_job" "initializer" {
}

task {
task_key = "Initializer"
task_key = "Initializer"
job_cluster_key = "job_cluster"
library {
pypi {
Expand All @@ -36,6 +37,7 @@ resource "databricks_job" "driver" {
job_cluster {
job_cluster_key = "job_cluster"
new_cluster {
data_security_mode = "SINGLE_USER"
num_workers = 5
spark_version = data.databricks_spark_version.latest_lts.id
node_type_id = data.databricks_node_type.smallest.id
Expand Down

0 comments on commit 57b3f41

Please sign in to comment.