Skip to content

Bugfix/disabling allow all in action governance now disables it - #1479

Open
Xeelee33 wants to merge 2 commits into
microsoft:Developmentfrom
Xeelee33:bugfix/normalize_action_item_id
Open

Bugfix/disabling allow all in action governance now disables it#1479
Xeelee33 wants to merge 2 commits into
microsoft:Developmentfrom
Xeelee33:bugfix/normalize_action_item_id

Conversation

@Xeelee33

Copy link
Copy Markdown
Contributor

Summary

  • Fixed delegated action-type governance so explicit item policies now override broader feature-level action access once they exist.
  • Prevents blocked action types, such as Azure Maps, from still appearing in personal workspace action creation flows after an admin saves a delegated item policy.
  • Aligns governance enforcement with the admin policy intent: an explicit targeted policy is now authoritative for that action type.

Release Notes & Latest Features

  • New Feature
  • Bug Fix
  • UI Enhancement
  • Breaking Change
  • Internal only

Is this visible to end users?

  • Yes
  • No

Is this admin-facing (Admin Settings, governance, deployment, config)?

  • Yes
  • No

Should this become a Latest Feature card?

  • Yes
  • No
  • Already added

Screenshot needed for the card?

  • Yes
  • No
  • Attached

Version bump

  • application/single_app/config.py VERSION third segment bumped, or not needed because this is docs-only
  • deployers/version.txt bumped, or not needed because deployers/ was not changed

Testing / validation

  • git diff --check origin/Development...HEAD -- application/single_app/config.py application/single_app/functions_governance.py
  • python -m py_compile application/single_app/config.py application/single_app/functions_governance.py
  • python scripts/check_broken_access_control.py --base-sha origin/Development --head-sha HEAD application/single_app/functions_governance.py
  • python scripts/check_xss_sinks.py --base-sha origin/Development --head-sha HEAD application/single_app/functions_governance.py
  • Manual validation: confirmed the personal action-type governance scenario where an explicit policy targeting Azure Maps should remove it from the governed action-type list.

Before change, a delegation item with Allow All disabled and no one granted still allowed all users and groups to access it.
Policy configured to disable all access to the Personal Action "Azure Maps"
image

"Azure Maps" action still available in Personal Workspace:
image
image

After change in this PR, the same policy disabled Azure Maps action
image

Documentation

  • Release notes updated, or not needed
  • Feature documentation updated, or not needed
  • Fix documentation updated, or not needed

Security checklist

  • New Flask routes include @swagger_route(security=get_auth_security())
  • Settings sent to non-admin frontends use sanitize_settings_for_user()
  • Browser JavaScript is served from local SimpleChat static assets only; no CDN-hosted JS
  • No secrets, keys, connection strings, or local-only artifacts are included

Make explicit action-type item policies authoritative during governance checks.
Previously, a feature-level allow could still permit an action type such as
Azure Maps even when an explicit personal_action_type policy existed with
allow_all=false and no allowed principals.

This updates action-type enforcement so:
- feature-level policy grants access only when no explicit item policy exists
- explicit item policies must pass once they are present
- empty explicit allowlists correctly block the targeted action type
@Xeelee33 Xeelee33 changed the title Bugfix/normalize action item Bugfix/disabling allow all in action governance now disables it Sep 12, 2026
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