Skip to content

Databricks SQL Addition Okta Queries - #2142

Merged
arielkr256 merged 4 commits into
developfrom
databricks-queries-okta
Jul 23, 2026
Merged

arielkr256 merged 4 commits into
developfrom
databricks-queries-okta

Conversation

@zaynahsmith-dasilva

@zaynahsmith-dasilva zaynahsmith-dasilva commented Jul 9, 2026 •

Copy link
Copy Markdown
Contributor

Background

Changes

  • Added a databricks sql YAML key to the existing SQL queries within the Okta log type.

Testing

@zaynahsmith-dasilva zaynahsmith-dasilva added the tuning detection tuning label Jul 9, 2026
@zaynahsmith-dasilva
zaynahsmith-dasilva requested review from a team as code owners July 9, 2026 17:39
@cursor

cursor Bot commented Jul 9, 2026 •

Copy link
Copy Markdown

PR Summary

Medium Risk
Medium risk because this adds alternate SQL implementations for security detections and threat-hunting queries, where dialect differences could affect alert results. Existing Snowflake logic is largely preserved.

Overview
Adds DatabricksQuery definitions across Okta saved and scheduled queries, while converting existing Query fields to SnowflakeQuery. The new Databricks SQL ports adapt nested-field access, array functions, length functions, collection aggregation, and lateral explode syntax for Databricks compatibility.

Also updates the Okta AD Agent z-score query to use panther_lookups.public.okta_ad_baseline_90d instead of the previous lookup table name.

Reviewed by Cursor Bugbot for commit ea0411f. Bugbot is set up for automated code reviews on this repo. Configure here.

Comment thread queries/okta_queries/okta_swa_offhours_access_behavioral_query.yml Outdated
@zaynahsmith-dasilva
zaynahsmith-dasilva force-pushed the databricks-queries-okta branch from 3062685 to b593925 Compare July 9, 2026 17:52
Comment thread queries/okta_queries/okta_ad_agent_auth_zscore_anomaly_query.yml
@zaynahsmith-dasilva
zaynahsmith-dasilva force-pushed the databricks-queries-okta branch from 3fe5ac1 to 1b0797f Compare July 9, 2026 19:31

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit ea0411f. Configure here.

Comment thread queries/okta_queries/okta_ad_agent_auth_zscore_anomaly_query.yml
@zaynahsmith-dasilva
zaynahsmith-dasilva marked this pull request as draft July 9, 2026 19:40
@arielkr256
arielkr256 marked this pull request as ready for review July 23, 2026 18:57
@arielkr256
arielkr256 added this pull request to the merge queue Jul 23, 2026
Merged via the queue into develop with commit a33775e Jul 23, 2026
21 checks passed
@arielkr256
arielkr256 deleted the databricks-queries-okta branch July 23, 2026 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tuning detection tuning

2 participants