Skip to content

bundle: add telemetry for workspace.state_path permission scope#5440

Draft
shreyas-goenka wants to merge 1 commit into
mainfrom
pr-telemetry-permission-scope
Draft

bundle: add telemetry for workspace.state_path permission scope#5440
shreyas-goenka wants to merge 1 commit into
mainfrom
pr-telemetry-permission-scope

Conversation

@shreyas-goenka
Copy link
Copy Markdown
Contributor

Summary

Adds telemetry to detect when workspace.state_path's permission scope is broader than the bundle's top-level permissions section declares.

Three new fields on BundleDeployExperimental:

  • state_path_scope_exceeds_permissions — state_path is under /Workspace/Shared (all workspace users can read/write) but the permissions section does not grant group_name: users CAN_MANAGE, so the effective scope exceeds the declared one.
  • state_path_is_shared — state_path is under /Workspace/Shared.
  • state_path_outside_root_path — state_path is not nested under root_path.

The signals are computed in a small self-contained helper (statePathScopeSignals), so this change is independent of the workspace permission validation work and can be reviewed and merged on its own.

Adds three fields to BundleDeployExperimental:
- state_path_scope_exceeds_permissions: state_path is under /Workspace/Shared (all
  workspace users can read/write) but the permissions section does not grant
  group_name: users CAN_MANAGE — the effective scope exceeds the declared one.
- state_path_is_shared: state_path is under /Workspace/Shared.
- state_path_outside_root_path: state_path is not nested under root_path.

The signals are computed in a small self-contained helper so this telemetry change
is independent of the workspace permission validation mutators.

Co-authored-by: Shreyas Goenka <shreyas.goenka@databricks.com>
@eng-dev-ecosystem-bot
Copy link
Copy Markdown
Collaborator

Commit: 82c37e0

Run: 26949953896

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants