Skip to content

✨ Feat: add ASSET_OWNER role, enforce asset visibility, and refine no…#3042

Draft
Lifeng-Chen wants to merge 6 commits into
developfrom
clf/lianyong_asset_owner
Draft

✨ Feat: add ASSET_OWNER role, enforce asset visibility, and refine no…#3042
Lifeng-Chen wants to merge 6 commits into
developfrom
clf/lianyong_asset_owner

Conversation

@Lifeng-Chen
Copy link
Copy Markdown

…rthbound knowledge APIs

  • Introduce ASSET_OWNER role with virtual tenant scope (asset_owner_tenant_id) and invitation bootstrap flow
  • Add/adjust role permissions and tenant migrations for ASSET_OWNER-scoped resources (agents, skills, models, tools, invitations)
  • Enforce visibility rules: hide ASSET_OWNER agent prompts for non-ASSET_OWNER callers (prompts_hidden) and restrict ASSET_OWNER skills/docs/files to asset-owner scope
  • Tighten attachment access control for attachments/asset_owner/{user_id} while keeping knowledge_base files readable for authenticated users
  • Refine /nb/v1/knowledge endpoints and parameters for index and file operations (list/create/delete indices, list files, delete documents, upload/download)

…rthbound knowledge APIs

* Introduce ASSET_OWNER role with virtual tenant scope (asset_owner_tenant_id) and invitation bootstrap flow
* Add/adjust role permissions and tenant migrations for ASSET_OWNER-scoped resources (agents, skills, models, tools, invitations)
* Enforce visibility rules: hide ASSET_OWNER agent prompts for non-ASSET_OWNER callers (prompts_hidden) and restrict ASSET_OWNER skills/docs/files to asset-owner scope
* Tighten attachment access control for attachments/asset_owner/{user_id} while keeping knowledge_base files readable for authenticated users
* Refine /nb/v1/knowledge endpoints and parameters for index and file operations (list/create/delete indices, list files, delete documents, upload/download)
Merge develop's effectiveIndexName fallback for chunk CRUD/search APIs
while keeping embedding model mismatch validation before hybrid search.
Comment thread backend/apps/northbound_knowledge_app.py Fixed
Comment thread backend/apps/northbound_knowledge_app.py Fixed
Comment thread backend/apps/northbound_knowledge_app.py Fixed
@Lifeng-Chen Lifeng-Chen marked this pull request as draft May 28, 2026 01:23
Comment thread backend/services/asset_owner_visibility.py Outdated
Comment thread backend/database/agent_db.py
Copy link
Copy Markdown
Contributor

@Jasonxia007 Jasonxia007 left a comment

Choose a reason for hiding this comment

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

部分逻辑建议修改

- Add tenant_id migration and asset owner permissions/menu SQL
- Expose northbound knowledge/vector database updates for asset owner visibility
- Add backend auth/utils and invitation/agent/user management services
- Update invitation list UI
- Add tenant_id migration and asset owner permissions/menu SQL
- Expose northbound knowledge/vector database updates for asset owner visibility
- Add backend auth/utils and invitation/agent/user management services
- Update invitation list UI
- Add tenant_id migration and asset owner permissions/menu SQL
- Expose northbound knowledge/vector database updates for asset owner visibility
- Add backend auth/utils and invitation/agent/user management services
- Update invitation list UI
- Add tenant_id migration and asset owner permissions/menu SQL
- Expose northbound knowledge/vector database updates for asset owner visibility
- Add backend auth/utils and invitation/agent/user management services
- Update invitation list UI
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.

3 participants