Skip to content

fix(dashboards,synthetics_private_locations): drop stale restricted_roles under new flag (4/4)#632

Draft
michael-richey wants to merge 1 commit into
drop-unresolvable-principals-monitors-syntheticsfrom
drop-unresolvable-principals-dashboards-spl
Draft

fix(dashboards,synthetics_private_locations): drop stale restricted_roles under new flag (4/4)#632
michael-richey wants to merge 1 commit into
drop-unresolvable-principals-monitors-syntheticsfrom
drop-unresolvable-principals-dashboards-spl

Conversation

@michael-richey

Copy link
Copy Markdown
Collaborator

Context

Stacked PR 4 of 4. Base: drop-unresolvable-principals-monitors-synthetics (PR #631). Completes the rollout.

This PR

Applies the flat-list drop-aware filter to the two remaining resource types with a restricted_roles list:

  • dashboards: restricted_roles
  • synthetics_private_locations: metadata.restricted_roles

Both previously had trivial pass-through connect_id overrides; they now get a connect_resources override that filters stale roles under --drop-unresolvable-principals while keeping widget/other connections on the generic path and preserving the empty-list access-elevation hard-fail.

Testing

New connect_resources drop suite in test_dashboards.py and a new test_synthetics_private_locations.py module (drop, empty-list risk, middle-element regression, flag-off, no-op-when-absent). Green; ruff clean.

🤖 Generated with Claude Code

…oles under new flag

Completes the rollout by applying the flat-list drop-aware filter to the two remaining
resource types with a `restricted_roles` list:

- dashboards: `restricted_roles`
- synthetics_private_locations: `metadata.restricted_roles`

Both previously had trivial pass-through `connect_id` overrides; they now get a
`connect_resources` override that filters stale roles under `--drop-unresolvable-principals`
while keeping widget/other connections on the generic path and preserving the empty-list
access-elevation hard-fail. Adds a new unit test module for synthetics_private_locations.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@michael-richey michael-richey force-pushed the drop-unresolvable-principals-monitors-synthetics branch from 518113c to 27fd78f Compare July 14, 2026 21:32
@michael-richey michael-richey force-pushed the drop-unresolvable-principals-dashboards-spl branch from e163cc1 to a16b6d4 Compare July 14, 2026 21:32
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.

1 participant