SAT v0.2.0 or higher introduces full support for Unity Catalog. allowing you to pick your catalog instead of
hive_metastore
and customize your schema name. Note: SAT requires at least one SAT set up in a workspace per Azure subscription.
Clone the Security Analysis Tool repository using:
git clone https://github.com/databricks-industry-solutions/security-analysis-tool.git
Navigate to the relevant cloud directory:
cd security-analysis-tool/terraform/<cloud>/
- Create a
terraform.tfvars
file using thetemplate.tfvars
file as a base. - Refer to the
variables.tf
for descriptions of the variables. - Set all required variables for your deployment.
- Follow the Azure Setup Guide for variable setup.
- "Reader" role at the subscription level via Access control (IAM).
- Accounts Admin role
- Admin role for each workspace
- Member of the metastore admin group
Refer to the documentation for workspace_url, workspace_id, and account_console_id
- Set up Azure CLI credentials for the provider block in
provider.tf
. - Use the Azure CLI to log in. The CLI will open a web browser for authentication:
az login
Proxies are now supported as part of SAT. You can add your HTTP and HTTPS links to use your proxies.
{
"http": "http://example.com",
"https": "https://example.com"
}
- Initialize Terraform:
terraform init
- Plan Terraform Changes - create a plan to preview changes to your infrastructure:
terraform plan
- Apply Terraform Plan - Execute the proposed changes:
terraform apply
- Run "SAT Initializer Notebook":
- This must be run successfully once. While it can be run multiple times, a single successful run is sufficient.
- Run "SAT Driver Notebook":
- This notebook can be scheduled to run periodically (e.g., every Monday, Wednesday, and Friday).
- Navigate to the SQL > Dashboard in the left menu from the Databricks workspace.
- Select the SAT Dashboard, pic a Workspace from the dropdown, and refresh the dashboard.
- If a pre-existing secret scope named
sat_scope
causes jobs to fail:
- Rename the secret scope in
secrets.tf
- Re-run
terraform apply
. - Update the secret scope name in 6 locations (
CMD 4
andCMD 5
) ofWorkspace -> Applications -> SAT-TF/notebooks/Utils/initialize
. - Re-run failed jobs
Congratulations!!! Please review the setup documentation for the instructions on usage, FAQs and general understanding of SAT setup