Default "Automatically include workspace members" to off for new apps, consistent with datasets
Self Checks
- [x] I have read the Contributing Guide and Language Policy.
- [x] I have searched for existing issues search for existing issues, including closed ones.
- [x] I confirm that I am using English to submit this report, otherwise it will be closed.
- [x] Please do not modify this template :) and fill in all the required fields.
1. Is this request related to a challenge you're experiencing? Tell me about your story.
With RBAC enabled, every newly created app gets Automatically include workspace members turned on, and all current workspace members are granted the default access policy. There is no way to change this default.
Some workspaces are shared by many members, but each app should be editable only by its owner, the workspace owner, and people granted access one by one. Other members may see the app in the list, but should not open it, edit it, or read its logs. Today, every new app is open to the whole workspace right after it is created, so someone has to turn the toggle off and remove members by hand for each app, and the app stays open until they do.
Datasets already work the way we need: #42430 (fixing #42429) changed their default to automatic_include_workspace_members=False. Apps still use True:
api/services/app/console_gateway.py(initialize_created_app, mainbdbe2d0120) callsReplaceMemberBindings(automatic_include_workspace_members=True)and queuesinitialize_created_app_rbac_access_task, which grantsAPP_RBAC_DEFAULT_ACCESS_POLICY_IDto all members.- The same code is in 1.17.1 (
api/controllers/console/app/app.py:726-734).
Proposal: make apps consistent with datasets. New apps start with automatic_include_workspace_members=False and do not queue the member initialization task. Users who want the whole workspace can still turn the toggle on in Resource Access.
2. Additional context or comments
- The creator keeps access to the new app: app creation already calls
try_sync_creator_access_policy_member_bindings(api/services/app_service.py), so the regression fixed for datasets in #42499 / #42507 should not happen here. I will cover this with tests. - Workspace owners and admins keep access through their RBAC roles.
- Existing apps are not changed.
- If maintainers prefer to keep
Truefor some deployments, I can add a config option for the default instead. Please let me know which you prefer.
3. Can you help us with this feature?
- [x] I am interested in contributing to this feature.