Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(multi-tenant): fix some issues #1141

Merged
merged 8 commits into from
Dec 27, 2024

Conversation

wklken
Copy link
Collaborator

@wklken wklken commented Dec 20, 2024

Description

  • 升级 django 到最新版本
  • 升级 bkpaas-auth sdk, 支持多租户登录, 可以获取 request.user.tenant_id/display_name
  • 修复:多租户漏掉禁用 esb模块【存在import导致拉起失败】
  • open api/inner api网关列表接口,要求调用方传入 header头
  • 修复:文档中可以看到 全租户网关+本租户网关
  • 增加 /gateway/{id}/tenant-apps/接口用于 应用选择器 【还需要等待用户管理接口再补齐】
  • 多租户版本文档中心公共参数,展示多租户相关说明
  • 增加 components/bkuser, 用于获取租户列表,批量获取用户dispaly_name;
  • bkauth响应协议中 tenant 信息放在 bk_tenant
  • jwt中间件可以拿到 request.app.tenant_mode/tenant_id
  • 调用 paasv3 接口时,传递 X-Bk-Tenant-Id 头

Checklist

  • 填写 PR 描述及相关 issue (write PR description and related issue)
  • 代码风格检查通过 (code style check passed)
  • PR 中包含单元测试 (include unit test)
  • 单元测试通过 (unit test passed)
  • 本地开发联调环境验证通过 (local development environment verification passed)

@wklken wklken merged commit 672f89d into TencentBlueKing:ft_tenant Dec 27, 2024
3 checks passed
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