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

权限升级为rbac模型 #9697

Merged
merged 1,123 commits into from
Jan 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1123 commits
Select commit Hold shift + click to select a range
3a1e705
feat:代码库优化一期功能点-触发器 #9347
vhwweng Oct 23, 2023
1890df5
feat:代码库优化一期功能点-触发器 #9347
vhwweng Oct 23, 2023
221c835
feat:代码库优化一期功能点-触发器 #9347
vhwweng Oct 24, 2023
0865ab1
Merge branch 'hw_codelib' into hw_codelib_trigger
vhwweng Oct 24, 2023
766729d
feat:代码库优化一期功能点 #9347
vhwweng Oct 24, 2023
8763c75
feat:申请权限时搜索项目问题优化 #9556
vhwweng Oct 25, 2023
4726615
Merge remote-tracking branch 'github/master' into rbac
mingshewhe Oct 25, 2023
d6b69e1
feat:代码库优化一期功能点 #9347
vhwweng Oct 26, 2023
ab7ee55
Merge remote-tracking branch 'origin/master' into rbac
Oct 26, 2023
1d93dda
feat: 代码库优化一期功能点 #9347
vhwweng Oct 26, 2023
f8c1bbd
feat:代码库优化一期功能点 #9347
vhwweng Oct 26, 2023
b2c120c
Merge remote-tracking branch 'origin/master' into rbac
mingshewhe Oct 27, 2023
3fec051
feat:代码库优化一期功能点 #9347
vhwweng Oct 27, 2023
c48b0cf
Merge remote-tracking branch 'origin/master' into rbac
Oct 30, 2023
e36edfc
feat:代码库优化一期功能点 #9347
vhwweng Oct 30, 2023
f9b0a3a
feat:代码库优化一期功能点 #9347
vhwweng Oct 30, 2023
0692ad7
feat:代码库优化一期功能点 #9347
vhwweng Oct 30, 2023
a98ecc6
feat:代码库优化一期功能点 #9347
vhwweng Oct 30, 2023
528bdd6
feat:代码库优化一期功能点 #9347
vhwweng Oct 30, 2023
0c6edfe
feat:代码库优化一期功能点 #9347
vhwweng Oct 30, 2023
2b093fc
Merge remote-tracking branch 'origin/master' into rbac
Oct 31, 2023
ddeae61
feat: 构建制品页面查询仓库下的一级目录接口按需进行加载, 只有点击复制至按钮后才进行加载 issue #9629
lockiechen Oct 31, 2023
f17200d
feat: 代码库优化一期功能点 #9347
vhwweng Nov 2, 2023
2e13d7f
feat: 代码库优化一期功能点 #9347
vhwweng Nov 2, 2023
30dfc05
feat: 代码库优化一期功能点 #9347
vhwweng Nov 2, 2023
a5320df
feat: 代码库优化一期功能点 #9347
vhwweng Nov 3, 2023
000b289
feat: 代码库优化一期功能点 #9347
vhwweng Nov 3, 2023
f525639
Merge remote-tracking branch 'origin/master' into rbac
Nov 3, 2023
44177c7
Merge remote-tracking branch 'origin/master' into rbac
mingshewhe Nov 3, 2023
2e5c1d4
feat: 流水线模板实例增加一个复制实例的功能 #9579
vhwweng Nov 4, 2023
1be8333
feat: 流水线模板实例增加一个复制实例的功能 #9579
vhwweng Nov 4, 2023
911353b
feat:流水线支持归档目录 #9320
vhwweng Nov 4, 2023
db5eab9
feat:流水线支持归档目录 #9320
vhwweng Nov 4, 2023
acb6bbf
feat:流水线支持归档目录 #9320
vhwweng Nov 4, 2023
10b47b7
feat: 流水线运行完毕通知方式增加语音 #9647
vhwweng Nov 4, 2023
1d81c1e
Merge remote-tracking branch 'origin/master' into rbac
Nov 6, 2023
00e6f3c
Merge remote-tracking branch 'origin/master' into rbac
Nov 6, 2023
80dc9b5
Merge remote-tracking branch 'origin/master' into rbac
Nov 6, 2023
a331a09
feat:代码库优化一期功能点 #9347
vhwweng Nov 6, 2023
dceb08d
bug: 删除T_AUTH_IAM_CALLBACK表中experience资源 #9656
mingshewhe Nov 7, 2023
8e6d095
Merge pull request #9659 from mingshewhe/bug_9656
mingshewhe Nov 7, 2023
54e0a9b
feat:代码库优化一期功能点 #9347
vhwweng Nov 7, 2023
627d019
Merge remote-tracking branch 'origin/master' into rbac
Nov 7, 2023
2a7e127
Merge remote-tracking branch 'origin/master' into rbac
Nov 7, 2023
759d3c7
feat:代码库优化一期功能点 #9347
vhwweng Nov 7, 2023
ba7094b
Merge pull request #9646 from vhwweng/issue_9320_fix
bkci-bot Nov 7, 2023
ea82991
Merge pull request #9598 from vhwweng/issue_9556
bkci-bot Nov 7, 2023
4f386cc
Merge pull request #9542 from vhwweng/issue_9540
bkci-bot Nov 7, 2023
84be7a5
Merge pull request #9630 from lockiechen/issue_9629
bkci-bot Nov 7, 2023
3814673
feat:代码库优化一期功能点 #9347
vhwweng Nov 7, 2023
3523594
feat:代码库优化一期功能点 #9347
vhwweng Nov 7, 2023
1d58fb5
feat:代码库优化一期功能点 #9347
vhwweng Nov 7, 2023
794942f
feat:代码库优化一期功能点 #9347
vhwweng Nov 7, 2023
a24a7ad
Merge remote-tracking branch 'origin/master' into rbac
Nov 9, 2023
cdf7b09
Merge remote-tracking branch 'origin/master' into rbac
Nov 9, 2023
bd75c6b
Merge remote-tracking branch 'origin/master' into rbac
Nov 10, 2023
6cbad28
Merge remote-tracking branch 'origin/master' into rbac
Nov 13, 2023
6689d5e
Merge remote-tracking branch 'origin/master' into rbac
Nov 13, 2023
1f44f47
feat: 代码库优化一期功能点 #9347
vhwweng Nov 13, 2023
d2c5ead
Merge remote-tracking branch 'origin/master' into rbac
Nov 13, 2023
8a4d0fa
Merge remote-tracking branch 'origin/master' into rbac
Nov 13, 2023
0035877
feature: 流水线模板权限 issue #9574
zhanxu33 Nov 13, 2023
922796f
feat: 代码库优化一期功能点 #9347
vhwweng Nov 14, 2023
ea6a8a9
feat: 流水线模板实例增加一个复制实例的功能 #9579
vhwweng Nov 14, 2023
f36fbbf
feat: 流水线模板实例增加一个复制实例的功能 #9579
vhwweng Nov 14, 2023
26aefae
Merge branch 'rbac' of https://github.com/Tencent/bk-ci into issure_#…
vhwweng Nov 14, 2023
27569f1
feat: 流水线模板实例增加一个复制实例的功能 #9579
vhwweng Nov 14, 2023
89c17fb
Merge remote-tracking branch 'origin/master' into rbac
Nov 14, 2023
7726808
Merge remote-tracking branch 'github/master' into rbac
mingshewhe Nov 14, 2023
fe4777f
feat: 流水线模板实例增加一个复制实例的功能 #9579
vhwweng Nov 16, 2023
b4b6b26
Merge remote-tracking branch 'origin/master' into rbac
Nov 16, 2023
29b4146
feat: 流水线模板实例增加一个复制实例的功能 #9579
vhwweng Nov 16, 2023
142ad61
feat: 代码库优化一期功能点 #9347
vhwweng Nov 16, 2023
01e2163
Merge remote-tracking branch 'origin/master' into rbac
mingshewhe Nov 16, 2023
8be3a9d
Merge remote-tracking branch 'origin/master' into rbac
mingshewhe Nov 20, 2023
050c4bc
Merge pull request #9648 from vhwweng/issue_9647
bkci-bot Nov 20, 2023
6f0339e
fix: 权限升级为rbac issue #9697
lockiechen Nov 21, 2023
061cdbb
Merge remote-tracking branch 'github/master' into rbac
mingshewhe Nov 21, 2023
5017ac9
Merge remote-tracking branch 'origin/master' into rbac
irwinsun Nov 21, 2023
db66f2f
Merge branch 'template_permission' into issure_#9579
vhwweng Nov 22, 2023
d72cb5d
feat: 支持为单个流水线模板设置权限 #9574
vhwweng Nov 22, 2023
238f65f
feat: 支持为单个流水线模板设置权限 #9574
vhwweng Nov 23, 2023
8a9bd67
feat: 支持为单个流水线模板设置权限 #9574
vhwweng Nov 23, 2023
82d730a
Merge remote-tracking branch 'origin/master' into rbac
Nov 23, 2023
fa686a4
Merge remote-tracking branch 'origin/master' into rbac
Nov 24, 2023
bc465f4
feat: 支持为单个流水线模板设置权限 #9574
vhwweng Nov 24, 2023
d8b6d19
feat:构建总耗时展示优化 issue #9128
lockiechen Nov 24, 2023
b53af37
feat:约束模式的模版实例,构建详情页面增加源模版版本信息 issue #9700
lockiechen Nov 24, 2023
ac6edf0
feat:约束模式的模版实例,构建详情页面增加源模版版本信息 issue #9700
lockiechen Nov 24, 2023
ea4a466
feat:约束模式的模版实例,构建详情页面增加源模版版本信息 issue #9700
lockiechen Nov 24, 2023
0963479
feat: 支持为单个流水线模板设置权限 #9574
vhwweng Nov 24, 2023
ecd83ab
feat: 支持为单个流水线模板设置权限 #9574
vhwweng Nov 24, 2023
7c82fb4
feat: 代码库优化一期功能点 #9347
vhwweng Nov 24, 2023
39941b3
feat: 支持为单个流水线模板设置权限 #9574
vhwweng Nov 24, 2023
e3a9559
feat: 代码库优化一期功能点 #9347
vhwweng Nov 25, 2023
8d66c94
bug:项目列表上的操作入口未加权限控制 #9720
vhwweng Nov 25, 2023
3ff13ea
Merge remote-tracking branch 'origin/master' into rbac
Nov 27, 2023
4404ab1
Merge remote-tracking branch 'origin/master' into rbac
Nov 27, 2023
94a4aab
feat:约束模式的模版实例,构建详情页面增加源模版版本信息 issue #9700
lockiechen Nov 27, 2023
75132fc
Merge branch 'rbac' of https://github.com/Tencent/bk-ci into hw_codel…
vhwweng Nov 27, 2023
4b7b417
feat: 代码库优化一期功能点 #9347
vhwweng Nov 27, 2023
2b97a09
feat: 支持为单个流水线模板设置权限 #9574
vhwweng Nov 27, 2023
2d97ff9
feature: 流水线模板权限 issue #9574
zhanxu33 Nov 27, 2023
f07339f
feat:子流水线调用触发的运行,触发材料显示父流水线 issue #8682
lockiechen Nov 27, 2023
7a21b27
Merge remote-tracking branch 'xu/feature_9574_tempaltePermission' int…
vhwweng Nov 27, 2023
facd07d
Merge remote-tracking branch 'origin/master' into rbac
Nov 27, 2023
200e844
feat: 支持为单个流水线模板设置权限 #9574
vhwweng Nov 27, 2023
1a7b9e6
feat: 支持为单个流水线模板设置权限 #9574
vhwweng Nov 27, 2023
f7a60f5
feat: 代码库优化一期功能点 #9347
vhwweng Nov 28, 2023
5d806dd
feat: 代码库优化一期功能点 #9347
vhwweng Nov 28, 2023
03ffc5e
feat: 代码库优化一期功能点 #9347
vhwweng Nov 28, 2023
75b25f7
Merge remote-tracking branch 'origin/master' into rbac
irwinsun Nov 28, 2023
ef4a5c9
feat: 代码库优化一期功能点 #9347
vhwweng Nov 28, 2023
00cbd15
feat:子流水线调用触发的运行,触发材料显示父流水线 issue #8682
lockiechen Nov 29, 2023
29b3f9a
feat:子流水线调用触发的运行,触发材料显示父流水线 issue #8682
lockiechen Nov 29, 2023
ec9d0de
bug:项目列表上的操作入口未加权限控制 #9720
vhwweng Nov 29, 2023
5a92529
Merge branch 'rbac' of https://github.com/Tencent/bk-ci into issure_#…
vhwweng Nov 29, 2023
912be6d
Merge remote-tracking branch 'origin/master' into rbac
Nov 29, 2023
daf16e1
Merge pull request #9724 from vhwweng/issue_9720
bkci-bot Nov 29, 2023
02da6e0
Merge pull request #9727 from lockiechen/issue_9128
bkci-bot Nov 29, 2023
5411b9a
Merge pull request #9723 from vhwweng/hw_codelib_trigger
bkci-bot Nov 29, 2023
4e4e10c
Merge remote-tracking branch 'origin/master' into rbac
Nov 29, 2023
20aab0c
Merge remote-tracking branch 'origin/master' into rbac
Nov 29, 2023
1784fd2
Merge remote-tracking branch 'origin/master' into rbac
Nov 29, 2023
de2e35a
feat: 代码库优化一期功能点 #9347
vhwweng Nov 30, 2023
ea7b8ca
feat: 代码库优化一期功能点 #9347
vhwweng Nov 30, 2023
7a2abee
Merge remote-tracking branch 'origin/master' into rbac
mingshewhe Nov 30, 2023
e1376d6
feat: 代码库优化一期功能点 #9347
vhwweng Nov 30, 2023
73b5432
feat: 代码库优化一期功能点 #9347
vhwweng Nov 30, 2023
8a46976
feat: 代码库优化一期功能点 #9347
vhwweng Nov 30, 2023
baf7294
feat: 代码库优化一期功能点 #9347
vhwweng Nov 30, 2023
6876413
feat: 支持为单个流水线模板设置权限 #9574
vhwweng Nov 30, 2023
0b65fcf
feature: 流水线模板权限 issue #9574
zhanxu33 Nov 30, 2023
4cb93f6
Merge branch 'feature_9574_tempaltePermission' of https://github.com/…
vhwweng Nov 30, 2023
8f4dcdf
Merge branch 'rbac' of https://github.com/Tencent/bk-ci into issure_#…
vhwweng Nov 30, 2023
417c6a2
feature: 流水线模板权限 issue #9574
vhwweng Dec 1, 2023
f7550bf
Merge pull request #9746 from vhwweng/hw_codelib_trigger
bkci-bot Dec 1, 2023
9068f65
Merge remote-tracking branch 'origin/master' into rbac
Dec 1, 2023
44319b1
feature: 流水线模板权限 issue #9574
vhwweng Dec 1, 2023
be06aa6
feature: 流水线模板权限 issue #9574
zhanxu33 Nov 30, 2023
ca3f3fd
feature: 流水线模板权限 issue #9574
vhwweng Dec 1, 2023
3fcd046
feature: 流水线模板权限 issue #9574
vhwweng Dec 1, 2023
88b0334
feat: 代码库优化一期功能点 #9347
vhwweng Dec 4, 2023
a09a0ea
feature: 流水线模板权限 issue #9574
vhwweng Dec 4, 2023
bc4e61e
doc: 文档链接优化 issue #9766
lockiechen Dec 5, 2023
bc99355
doc: 文档链接优化 issue #9766
lockiechen Dec 5, 2023
a7e8202
Merge pull request #9767 from lockiechen/issue_9766
stubenhuang Dec 5, 2023
396bd29
feat: 代码库优化一期功能点 #9347
vhwweng Dec 6, 2023
d4c6df0
Merge remote-tracking branch 'origin/master' into rbac
Dec 6, 2023
89d5144
feature: 流水线模板权限 issue #9574
vhwweng Dec 6, 2023
46cca8e
feature: 流水线模板权限 issue #9574
vhwweng Dec 6, 2023
a35bc1a
feature: 流水线模板权限 issue #9574
vhwweng Dec 6, 2023
69298ea
feature: 流水线模板权限 issue #9574
vhwweng Dec 6, 2023
9224266
pref: 优化rbac权限二进制部署脚本 #9769
mingshewhe Dec 7, 2023
f6f6dd6
pref: 优化rbac权限二进制部署脚本 #9769
mingshewhe Dec 7, 2023
416d60c
feat: 规避用户重装蓝盾因为项目数据不一致导致初始化镜像失败 #9585
stubenhuang Nov 28, 2023
99e401b
doc: 文档链接优化 issue #9766
lockiechen Dec 5, 2023
4cf4950
doc: 文档链接优化 issue #9766
lockiechen Dec 5, 2023
7d1d4ae
feat:子流水线调用触发的运行,触发材料显示父流水线 issue #8682
lockiechen Nov 29, 2023
d075e02
Merge remote-tracking branch 'origin/master' into rbac
Dec 7, 2023
dd8aa81
Merge pull request #9777 from mingshewhe/pref_9769
mingshewhe Dec 7, 2023
95113c7
stream 限制调用历史列表接口频率 #9782
zhanxu33 Dec 7, 2023
9f013ec
pref: 优化rbac权限二进制部署脚本 #9769
mingshewhe Dec 7, 2023
937986f
doc: 文档链接优化 issue #9766
lockiechen Dec 8, 2023
7f4ed73
doc: 文档链接优化 issue #9766
lockiechen Dec 8, 2023
7ac7c12
doc: 文档链接优化 issue #9766
lockiechen Dec 8, 2023
e38d9f6
doc: 文档链接优化 issue #9766
lockiechen Dec 8, 2023
7c9eaf0
Merge pull request #9792 from lockiechen/issue_9766
stubenhuang Dec 8, 2023
b18940a
feature: 流水线模板权限 issue #9574
vhwweng Dec 11, 2023
18222c2
feature: 流水线模板权限 issue #9574
vhwweng Dec 11, 2023
8407b7e
pref: 优化rbac权限二进制部署脚本 #9769
mingshewhe Dec 11, 2023
410cda0
doc: 文档链接优化 issue #9766
lockiechen Dec 8, 2023
3997700
doc: 文档链接优化 issue #9766
lockiechen Dec 8, 2023
9fa0254
doc: 文档链接优化 issue #9766
lockiechen Dec 8, 2023
96db5e0
doc: 文档链接优化 issue #9766
lockiechen Dec 8, 2023
dde92cd
pref: 优化rbac权限二进制部署脚本 #9769
mingshewhe Dec 11, 2023
550938e
pref: 优化rbac权限二进制部署脚本 #9769
mingshewhe Dec 11, 2023
9ab5976
Merge pull request #9798 from mingshewhe/pref_9769
mingshewhe Dec 11, 2023
9cfa426
pref: 优化rbac权限二进制部署脚本 #9769
mingshewhe Dec 11, 2023
4e9d37c
Merge pull request #9799 from mingshewhe/pref_9769
stubenhuang Dec 11, 2023
39658b4
pref: 优化rbac权限二进制部署脚本 #9769
mingshewhe Dec 11, 2023
6ac83f5
stream 限制调用历史列表接口频率 #9782
zhanxu33 Dec 12, 2023
6ba6649
doc: 文档链接优化 issue #9766
lockiechen Dec 12, 2023
56725b4
pref: 优化rbac权限二进制部署脚本 #9769
stubenhuang Dec 12, 2023
5018f02
Merge pull request #9802 from lockiechen/issue_9766
stubenhuang Dec 12, 2023
4af273c
doc: 文档链接优化 issue #9766
stubenhuang Dec 12, 2023
8343a50
Merge pull request #9804 from stubenhuang/pref_9769
stubenhuang Dec 12, 2023
ad3c807
Merge pull request #9783 from zhanxu33/feature_9782_apiLimit
bkci-bot Dec 13, 2023
74a21f1
Merge remote-tracking branch 'github/blueking-7.1' into pref_9769
mingshewhe Dec 14, 2023
784d873
pref: 优化rbac权限二进制部署脚本 #9769
mingshewhe Dec 14, 2023
bbb25b6
feat:优化浏览器 title 展示 #9000
vhwweng Dec 14, 2023
869788b
Merge pull request #9816 from mingshewhe/pref_9769
mingshewhe Dec 14, 2023
484aee7
feat:优化浏览器 title 展示 #9000
vhwweng Dec 14, 2023
f66bd51
feat:优化浏览器 title 展示 #9000
vhwweng Dec 14, 2023
46fc480
Merge branch 'blueking-7.1' into pref_9769
stubenhuang Dec 14, 2023
bfc01e5
pref: 优化rbac权限二进制部署脚本 #9769
stubenhuang Dec 14, 2023
6fd5d5c
Merge pull request #9822 from stubenhuang/pref_9769
stubenhuang Dec 14, 2023
ce8d2f1
doc: 文档链接优化 issue #9766
lockiechen Dec 15, 2023
06e829d
doc: 文档链接优化 issue #9766
lockiechen Dec 15, 2023
339a771
Merge pull request #9825 from lockiechen/issue_9766
stubenhuang Dec 15, 2023
b0a60e1
Merge pull request #9825 from lockiechen/issue_9766
stubenhuang Dec 15, 2023
6c1fb9f
feat:面向用户的内置通知模版中,变量引用方式应该修改为${{}} #9754
stubenhuang Dec 15, 2023
36ad353
Merge pull request #9826 from stubenhuang/pref_9769
stubenhuang Dec 15, 2023
0475db6
feature: 流水线模板权限 issue #9574
vhwweng Dec 16, 2023
1555ba9
feature: 流水线模板权限 issue #9574
zhanxu33 Dec 16, 2023
51ac42f
Merge branch 'feature_9574_tempaltePermission' of https://github.com/…
vhwweng Dec 16, 2023
68d11b3
feat:优化浏览器 title 展示 #9000
vhwweng Dec 16, 2023
64ffec4
feature: 流水线模板权限 issue #9574
vhwweng Dec 16, 2023
e421c2f
feature: 流水线模板权限 issue #9574
vhwweng Dec 18, 2023
f209cb7
feature: 流水线模板权限 issue #9574
vhwweng Dec 18, 2023
a309acc
bug:切换项目访问代码库服务提示代码库不存在问题fix #9789
vhwweng Dec 16, 2023
b9c2634
bug:切换项目访问代码库服务提示代码库不存在问题fix #9789
vhwweng Dec 16, 2023
13b2db9
bug:切换项目访问代码库服务提示代码库不存在问题fix #9789
vhwweng Dec 18, 2023
3cdb456
bug:切换项目访问代码库服务提示代码库不存在问题fix #9789
vhwweng Dec 18, 2023
365ead6
feat:优化浏览器 title 展示 #9000
vhwweng Dec 18, 2023
fa9bc7c
Merge pull request #9817 from vhwweng/issue_9000
bkci-bot Dec 18, 2023
ae34e3f
Merge branch 'rbac' of https://github.com/Tencent/bk-ci into issure_#…
vhwweng Dec 19, 2023
6dc7c96
feat:优化浏览器 title 展示 #9000
vhwweng Dec 19, 2023
03431b4
feat:优化浏览器 title 展示 #9000
vhwweng Dec 19, 2023
685c7be
feat:优化浏览器 title 展示 #9000
vhwweng Dec 19, 2023
bf30709
feat:优化浏览器 title 展示 #9000
vhwweng Dec 19, 2023
ea821da
Merge pull request #9645 from vhwweng/issure_#9579
bkci-bot Dec 19, 2023
087eeb4
feat:优化浏览器 title 展示 #9000
vhwweng Dec 19, 2023
84a09d9
Merge pull request #9845 from vhwweng/issue_9000
bkci-bot Dec 20, 2023
67c3863
fix: websocket链接断开后,没有自动重连问题 issue #9852
lockiechen Dec 21, 2023
250b0f4
bugfix:选择插件页面,当发布者名称比较长时展示问题优化 issue #9852
lockiechen Dec 21, 2023
a77ae63
bug: 选择插件页面,不适用于当前Job的插件,hover应该有提示 issue #9853
lockiechen Dec 21, 2023
0f1b2ff
bug: 选择插件页面,不适用于当前Job的插件,hover应该有提示 issue #9853
lockiechen Dec 21, 2023
d091a5b
fix: websocket链接断开后,没有自动重连问题 issue #9852
lockiechen Dec 22, 2023
641c935
fix: websocket链接断开后,没有自动重连问题 issue #9852
lockiechen Dec 22, 2023
dbf05de
fix: websocket链接断开后,没有自动重连问题 issue #9852
lockiechen Dec 22, 2023
01154a8
fix: websocket链接断开后,没有自动重连问题 issue #9852
lockiechen Dec 25, 2023
6373488
bugfix:选择插件页面,当发布者名称比较长时展示问题优化 issue #9852
lockiechen Dec 25, 2023
05e4da3
bugfix:选择插件页面,当发布者名称比较长时展示问题优化 issue #9852
lockiechen Dec 25, 2023
f976c74
bugfix:选择插件页面,当发布者名称比较长时展示问题优化 issue #9852
lockiechen Dec 25, 2023
59e68a7
Merge remote-tracking branch 'github/blueking-7.1' into rbac
mingshewhe Dec 25, 2023
cb661f9
Merge remote-tracking branch 'github/master' into rbac
mingshewhe Dec 25, 2023
619202d
Merge pull request #9761 from vhwweng/hw_codelib_trigger
bkci-bot Dec 26, 2023
5bf4065
Merge pull request #9854 from lockiechen/issue_9852
bkci-bot Dec 26, 2023
dadb30c
Merge branch 'rbac' of https://github.com/TencentBlueKing/bk-ci into …
mingshewhe Dec 26, 2023
9eef2ed
Merge remote-tracking branch 'github/master' into rbac
mingshewhe Dec 26, 2023
a47490b
Merge remote-tracking branch 'origin/master' into rbac
mingshewhe Dec 27, 2023
bda7d0a
Merge remote-tracking branch 'origin/master' into rbac
mingshewhe Dec 27, 2023
4b84cd4
Merge remote-tracking branch 'origin/master' into rbac
mingshewhe Dec 29, 2023
2501458
pref: 优化rbac权限二进制部署脚本 #9769
mingshewhe Jan 2, 2024
134434f
Merge pull request #9886 from TencentBlueKing/release-2.0
mingshewhe Jan 2, 2024
1f15ede
hotfix: rbac权限更新 #9697
lockiechen Jan 3, 2024
39bb77e
hotfix: rbac权限更新 #9697
lockiechen Jan 3, 2024
c401494
hotfix: rbac权限更新 #9697
lockiechen Jan 3, 2024
2d0ce50
Merge pull request #9890 from lockiechen/fix_9697
mingshewhe Jan 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions CHANGELOG/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
- [CHANGELOG-1.12.md](./CHANGELOG-1.12.md)
- [CHANGELOG-1.13.md](./CHANGELOG-1.13.md)
- [CHANGELOG-1.14.md](./CHANGELOG-1.14.md)
- [CHANGELOG-2.0.md](./CHANGELOG-2.0.md)
1 change: 1 addition & 0 deletions helm-charts/core/ci/base/default_env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ bkCiNotifyEmailSendChannel: blueking
bkCiInitLocale: zh-CN
bkCiRedisSsl: false
bkCiEsHttps: false
bkCiFrontendIndex: "rewrite .* /$subsystem/index.html break"
bkCiDefaultLocale: zh_CN
bkCiSupportLanguages: zh_CN,en_US
bkEsbEnabled: false
Expand Down
2 changes: 1 addition & 1 deletion helm-charts/core/ci/base/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ mysql:
collation-server=utf8_general_ci
max_connections=2000
default-time-zone='+08:00'
sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
[client]
port=3306
socket=/opt/bitnami/mysql/tmp/mysql.sock
Expand Down
13 changes: 13 additions & 0 deletions helm-charts/core/ci/templates/init/init.bkrepo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,19 @@ spec:
curl -s -X PUT $REPO_INIT_GENERIC_METADATA_PATH/bk-store/static/file/$k -u {{ .Values.config.bkRepoUsername }}:{{ .Values.config.bkRepoPassword }} -H \"X-BKREPO-UID: {{ .Values.config.bkRepoUsername }}\" -H \"X-BKREPO-OVERWRITE: true\" --upload-file ${k}
echo -e ""
done

# 打开制品库入口
services="project"
for service in $services
do
until curl --connect-timeout 3 -m 1 -s "http://{{ include "bkci.names.fullname" . }}-$service.{{ .Release.Namespace }}.svc.cluster.local" > nohup
do
echo "waiting for {{ include "bkci.names.fullname" . }}-$service";
sleep 2;
done
echo "{{ include "bkci.names.fullname" . }}-$service is available";
done
curl -X PUT --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'X-DEVOPS-UID: admin' -d '{"showProjectList": true,"showNav": true,"status": "ok","deleted": false,"iframeUrl": "http://{{ .Values.config.bkRepoHost }}/ui/"}' "http://{{ include "bkci.names.fullname" . }}-project.{{ .Release.Namespace }}/api/op/services/update/Repo"
restartPolicy: Never
{{- end -}}
{{- end -}}
56 changes: 19 additions & 37 deletions helm-charts/core/ci/templates/init/init.iam-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,57 +17,39 @@ spec:
labels: {{- include "bkci.labels.standard" . | nindent 8 }}
app.kubernetes.io/component: init-iam
spec:
{{- if .Values.mysql.enabled }}
initContainers:
- name: wait-for-mysql
image: {{ include "common.images.image" ( dict "imageRoot" .Values.backendImage "global" .Values.global) }}
imagePullPolicy: {{ .Values.backendImage.pullPolicy }}
command:
- "/bin/sh"
- "-c"
- |
until getent hosts {{ include "bkci.mysql.fullname" . }}
do
echo waiting for {{ include "bkci.mysql.fullname" . }};
sleep 2;
done
echo "MySQL is available";
{{- end }}
containers:
- name: init-iam
image: {{ include "bkci-backend.image" . }}
imagePullPolicy: {{ .Values.backendImage.pullPolicy }}
workingDir: /data/workspace/support-files/bkiam-rbac
{{ $mysqlData := split ":" (include "bkci.mysqlAddr" .) }}
workingDir: /data/workspace/support-files/
command:
- "/bin/bash"
- "-c"
- |
# 修改auth链接
sed -i 's/ci-auth.service.consul:21936/{{- .Values.config.bkCiHost -}}\/auth/g' *.json
sed -i 's/ci-auth.service.consul:21936/{{- .Values.config.bkCiHost -}}\/auth/g' bkiam-rbac/*.json
# 导入模型
for i in $(find . -name '*.json'|sort)
do
python3 do_migrate.py -t {{ .Values.config.bkCiIamApigwUrl }} -a "{{ .Values.config.bkCiAppCode }}" -s "{{ .Values.config.bkCiAppToken }}" -f $i --apigateway
done
# 导入数据库
cat << EOF > iam.sql
INSERT IGNORE INTO T_AUTH_IAM_CALLBACK (ID,GATEWAY,PATH, RESOURCE,SYSTEM) VALUES (1,"http://{{ include "bkci.names.fullname" . }}-gateway.{{ .Release.Namespace }}", "/ms/process/api/open/pipeline/callback/", "pipeline", "ci");
INSERT IGNORE INTO T_AUTH_IAM_CALLBACK (ID,GATEWAY,PATH, RESOURCE,SYSTEM) VALUES (2,"http://{{ include "bkci.names.fullname" . }}-gateway.{{ .Release.Namespace }}", "/ms/repository/api/open/repository/callback/", "repertory", "ci");
INSERT IGNORE INTO T_AUTH_IAM_CALLBACK (ID,GATEWAY,PATH, RESOURCE,SYSTEM) VALUES (3,"http://{{ include "bkci.names.fullname" . }}-gateway.{{ .Release.Namespace }}", "/ms/ticket/api/open/ticket/callback/credential/", "credential", "ci");
INSERT IGNORE INTO T_AUTH_IAM_CALLBACK (ID,GATEWAY,PATH, RESOURCE,SYSTEM) VALUES (4,"http://{{ include "bkci.names.fullname" . }}-gateway.{{ .Release.Namespace }}", "/ms/ticket/api/open/ticket/callback/cert/", "cert", "ci");
INSERT IGNORE INTO T_AUTH_IAM_CALLBACK (ID,GATEWAY,PATH, RESOURCE,SYSTEM) VALUES (5,"http://{{ include "bkci.names.fullname" . }}-gateway.{{ .Release.Namespace }}", "/ms/environment/api/open/environment/callback/env/", "environment", "ci");
INSERT IGNORE INTO T_AUTH_IAM_CALLBACK (ID,GATEWAY,PATH, RESOURCE,SYSTEM) VALUES (6,"http://{{ include "bkci.names.fullname" . }}-gateway.{{ .Release.Namespace }}", "/ms/environment/api/open/environment/callback/node/", "env_node", "ci");
INSERT IGNORE INTO T_AUTH_IAM_CALLBACK (ID,GATEWAY,PATH, RESOURCE,SYSTEM) VALUES (7,"http://{{ include "bkci.names.fullname" . }}-gateway.{{ .Release.Namespace }}", "/ms/quality/api/open/quality/callback/rule", "rule", "ci");
INSERT IGNORE INTO T_AUTH_IAM_CALLBACK (ID,GATEWAY,PATH, RESOURCE,SYSTEM) VALUES (8,"http://{{ include "bkci.names.fullname" . }}-gateway.{{ .Release.Namespace }}", "/ms/quality/api/open/quality/callback/group", "quality_group", "ci");
INSERT IGNORE INTO T_AUTH_IAM_CALLBACK (ID,GATEWAY,PATH, RESOURCE,SYSTEM) VALUES (11,"http://{{ include "bkci.names.fullname" . }}-gateway.{{ .Release.Namespace }}", "/ms/project/api/open/project/callback/", "project", "ci");
INSERT IGNORE INTO T_AUTH_IAM_CALLBACK (ID,GATEWAY,PATH, RESOURCE,SYSTEM) VALUES (12,"http://{{ include "bkci.names.fullname" . }}-gateway.{{ .Release.Namespace }}", "/ms/process/api/open/pipeline/callback/pipelineGroupInfo", "pipeline_group", "ci");
INSERT IGNORE INTO T_AUTH_IAM_CALLBACK (ID,GATEWAY,PATH, RESOURCE,SYSTEM) VALUES (13,"http://{{ include "bkci.names.fullname" . }}-gateway.{{ .Release.Namespace }}", "/ms/process/api/open/pipeline/callback/pipelineTemplateInfo", "pipeline_template", "ci");
{{- if ne .Values.config.bkCodeccPrivateUrl "" }}
INSERT IGNORE INTO T_AUTH_IAM_CALLBACK (ID,GATEWAY,PATH, RESOURCE,SYSTEM) VALUES (13,"{{ .Values.config.bkCodeccPrivateUrl }}", "/ms/openapi/api/open/v2/callback/instances/list", "codecc_task", "codecc");
{{- end }}
EOF
mysql -u{{- include "bkci.mysqlUsername" . }} -p{{- include "bkci.mysqlPassword" . }} -h{{ $mysqlData._0 }} -P{{ $mysqlData._1 }} devops_ci_auth < iam.sql;

services="auth"
for service in $services
do
until curl --connect-timeout 3 -m 1 -s "http://{{ include "bkci.names.fullname" . }}-$service.{{ .Release.Namespace }}.svc.cluster.local" > nohup
do
echo "waiting for {{ include "bkci.names.fullname" . }}-$service";
sleep 2;
done
echo "{{ include "bkci.names.fullname" . }}-$service is available";
done

# 注册auth回调
echo "{{ include "bkci.names.fullname" . }}-auth is available";
sed -i 's/bk-ci.service.consul/{{ include "bkci.names.fullname" . }}-gateway.{{ .Release.Namespace }}/g' ms-init/auth/iam-callback-resource-registere.conf
iam_json_file="ms-init/auth/iam-callback-resource-registere.conf"
curl -X POST -H "Content-Type:application/json" -d "@$iam_json_file" "http://{{ include "bkci.names.fullname" . }}-auth.{{ .Release.Namespace }}.svc.cluster.local/api/op/auth/iam/callback/"
restartPolicy: OnFailure
{{- end -}}
{{- end -}}
50 changes: 19 additions & 31 deletions helm-charts/core/ci/templates/init/init.iam.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,52 +17,40 @@ spec:
labels: {{- include "bkci.labels.standard" . | nindent 8 }}
app.kubernetes.io/component: init-iam
spec:
{{- if .Values.mysql.enabled }}
initContainers:
- name: wait-for-mysql
image: {{ include "common.images.image" ( dict "imageRoot" .Values.backendImage "global" .Values.global) }}
imagePullPolicy: {{ .Values.backendImage.pullPolicy }}
command:
- "/bin/sh"
- "-c"
- |
until getent hosts {{ include "bkci.mysql.fullname" . }}
do
echo waiting for {{ include "bkci.mysql.fullname" . }};
sleep 2;
done
echo "MySQL is available";
{{- end }}
containers:
- name: init-iam
image: {{ include "bkci-backend.image" . }}
imagePullPolicy: {{ .Values.backendImage.pullPolicy }}
workingDir: /data/workspace/support-files/bkiam
workingDir: /data/workspace/support-files/
{{ $mysqlData := split ":" (include "bkci.mysqlAddr" .) }}
command:
- "/bin/bash"
- "-c"
- |
# 修改auth链接
sed -i 's/ci-auth.service.consul:21936/{{- .Values.config.bkCiHost -}}\/auth/g' *.json
sed -i 's/ci-auth.service.consul:21936/{{- .Values.config.bkCiHost -}}\/auth/g' bkiam/*.json
# 导入模型
for i in $(find . -name '*.json'|sort)
do
python3 bkiam_do_migrate.py -t {{ .Values.config.bkIamPrivateUrl }} -a "{{ .Values.config.bkCiAppCode }}" -s "{{ .Values.config.bkCiAppToken }}" -f $i
done
# 导入数据库
cat << EOF > iam.sql
INSERT IGNORE INTO T_AUTH_IAM_CALLBACK (ID,GATEWAY,PATH, RESOURCE,SYSTEM) VALUES (1,"http://{{ include "bkci.names.fullname" . }}-gateway.{{ .Release.Namespace }}", "/ms/process/api/open/pipeline/callback/", "pipeline", "ci");
INSERT IGNORE INTO T_AUTH_IAM_CALLBACK (ID,GATEWAY,PATH, RESOURCE,SYSTEM) VALUES (2,"http://{{ include "bkci.names.fullname" . }}-gateway.{{ .Release.Namespace }}", "/ms/repository/api/open/repository/callback/", "repertory", "ci");
INSERT IGNORE INTO T_AUTH_IAM_CALLBACK (ID,GATEWAY,PATH, RESOURCE,SYSTEM) VALUES (3,"http://{{ include "bkci.names.fullname" . }}-gateway.{{ .Release.Namespace }}", "/ms/ticket/api/open/ticket/callback/credential/", "credential", "ci");
INSERT IGNORE INTO T_AUTH_IAM_CALLBACK (ID,GATEWAY,PATH, RESOURCE,SYSTEM) VALUES (4,"http://{{ include "bkci.names.fullname" . }}-gateway.{{ .Release.Namespace }}", "/ms/ticket/api/open/ticket/callback/cert/", "cert", "ci");
INSERT IGNORE INTO T_AUTH_IAM_CALLBACK (ID,GATEWAY,PATH, RESOURCE,SYSTEM) VALUES (5,"http://{{ include "bkci.names.fullname" . }}-gateway.{{ .Release.Namespace }}", "/ms/environment/api/open/environment/callback/env/", "environment", "ci");
INSERT IGNORE INTO T_AUTH_IAM_CALLBACK (ID,GATEWAY,PATH, RESOURCE,SYSTEM) VALUES (6,"http://{{ include "bkci.names.fullname" . }}-gateway.{{ .Release.Namespace }}", "/ms/environment/api/open/environment/callback/node/", "env_node", "ci");
INSERT IGNORE INTO T_AUTH_IAM_CALLBACK (ID,GATEWAY,PATH, RESOURCE,SYSTEM) VALUES (7,"http://{{ include "bkci.names.fullname" . }}-gateway.{{ .Release.Namespace }}", "/ms/quality/api/open/quality/callback/rule", "rule", "ci");
INSERT IGNORE INTO T_AUTH_IAM_CALLBACK (ID,GATEWAY,PATH, RESOURCE,SYSTEM) VALUES (8,"http://{{ include "bkci.names.fullname" . }}-gateway.{{ .Release.Namespace }}", "/ms/quality/api/open/quality/callback/group", "quality_group", "ci");
INSERT IGNORE INTO T_AUTH_IAM_CALLBACK (ID,GATEWAY,PATH, RESOURCE,SYSTEM) VALUES (11,"http://{{ include "bkci.names.fullname" . }}-gateway.{{ .Release.Namespace }}", "/ms/project/api/open/project/callback/", "project", "ci");
EOF
mysql -u{{- include "bkci.mysqlUsername" . }} -p{{- include "bkci.mysqlPassword" . }} -h{{ $mysqlData._0 }} -P{{ $mysqlData._1 }} devops_ci_auth < iam.sql;

services="auth"
for service in $services
do
until curl --connect-timeout 3 -m 1 -s "http://{{ include "bkci.names.fullname" . }}-$service.{{ .Release.Namespace }}.svc.cluster.local" > nohup
do
echo "waiting for {{ include "bkci.names.fullname" . }}-$service";
sleep 2;
done
echo "{{ include "bkci.names.fullname" . }}-$service is available";
done

# 注册auth回调
echo "{{ include "bkci.names.fullname" . }}-auth is available";
sed -i 's/bk-ci.service.consul/{{ include "bkci.names.fullname" . }}-gateway.{{ .Release.Namespace }}/g' ms-init/auth/iam-callback-resource-registere.conf
iam_json_file="ms-init/auth/iam-callback-resource-registere.conf"
curl -X POST -H "Content-Type:application/json" -d "@$iam_json_file" "http://{{ include "bkci.names.fullname" . }}-auth.{{ .Release.Namespace }}.svc.cluster.local/api/op/auth/iam/callback/"
restartPolicy: OnFailure
{{- end -}}
{{- end -}}
3 changes: 2 additions & 1 deletion scripts/bk-ci-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ setup_ci__ms_service_env (){
env_line_append "$service_env" "CLASSPATH" ".:lib/*"
env_line_append "$service_env" "SPRING_CONFIG_LOCATION" "file:./application.yml"
env_line_append "$service_env" "SPRING_CLOUD_CONFIG_ENABLED" false
env_line_append "$service_env" "JAVA_TOOL_OPTIONS" "-Djava.security.egd=file:/dev/urandom -Dcertificate.file= -Dservice.log.dir=./logs/ -Dfile.encoding=UTF-8 -Dsun.jnu.encoding=utf8 -XX:NewRatio=1 -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC"
env_line_append "$service_env" "JAVA_TOOL_OPTIONS" "-Dspring.main.allow-circular-references=true -Djava.security.egd=file:/dev/urandom -Dcertificate.file= -Dservice.log.dir=./logs/ -Dfile.encoding=UTF-8 -Dsun.jnu.encoding=utf8 -XX:NewRatio=1 -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC"
}

# 微服务启动env.
Expand Down Expand Up @@ -307,6 +307,7 @@ setup_ci_gateway (){
# prod目录指向agent-package.
# 预期200: curl -I bk-ci.service.consul/static/files/jar/worker-agent.jar
update_link_to_target "$gateway_data_dir/files/prod" "$BK_CI_HOME/agent-package"
cp -f "$gateway_data_dir/files/prod/script/docker_init.sh" "$gateway_data_dir/files/prod/"
# 在全部 ci-gateway 节点上注册主入口域名: bk-ci.service.consul, 用于在集群内提供web服务.
if [ -x $CTRL_DIR/bin/reg_consul_svc ]; then
check_empty_var LAN_IP || return 15
Expand Down
2 changes: 1 addition & 1 deletion scripts/bk-ci-slim.sh
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ MEM_OPTS="-Xms256m -Xmx512m"
CLASSPATH=".:lib/*"
SPRING_CONFIG_LOCATION="file:./application.yml"
SPRING_CLOUD_CONFIG_ENABLED=false
JAVA_TOOL_OPTIONS="-Djava.security.egd=file:/dev/urandom -Dcertificate.file= -Dservice.log.dir=./logs/ -Dfile.encoding=UTF-8 -Dsun.jnu.encoding=utf8 -XX:NewRatio=1 -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC"
JAVA_TOOL_OPTIONS="-Dspring.main.allow-circular-references=true -Djava.security.egd=file:/dev/urandom -Dcertificate.file= -Dservice.log.dir=./logs/ -Dfile.encoding=UTF-8 -Dsun.jnu.encoding=utf8 -XX:NewRatio=1 -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC"
EOF

echo "copy classes:"
Expand Down
5 changes: 4 additions & 1 deletion scripts/bkce-create-users.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ echo "注册 蓝鲸 ESB"

echo "导入 IAMv3 权限模板."
./bin/bkiam_migrate.sh -t "$BK_IAM_PRIVATE_URL" -a "$BK_CI_APP_CODE" -s "$BK_CI_APP_TOKEN" "$BK_CI_SRC_DIR"/support-files/bkiam/*.json
echo "导入 IAM RBAC 权限模板."
./bin/bkiam_migrate.sh -t "$BK_IAM_PRIVATE_URL" -a "$BK_CI_APP_CODE" -s "$BK_CI_APP_TOKEN" "$BK_CI_SRC_DIR"/support-files/bkiam-rbac/*.json


echo "配置数据库访问权限."
# 中控机配置mysql login-path
Expand All @@ -51,7 +54,7 @@ for sub_dir in "$BK_CI_SRC_DIR"/support-files/sql/*
do
if [[ -d $sub_dir ]]; then
echo "import sub_dir $sub_dir/*.sql"
./bin/sql_migrate.sh -n mysql-ci "$sub_dir/*.sql"
./bin/sql_migrate.sh -n mysql-ci $sub_dir/*.sql
fi
done

Expand Down
11 changes: 9 additions & 2 deletions scripts/bkce-set-env03.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,17 @@ set_env03 BK_CI_MYSQL_ADDR=${BK_MYSQL_IP}:3306 BK_CI_MYSQL_USER=bk_ci BK_CI_MYSQ
set_env03 BK_CI_REDIS_HOST=$BK_REDIS_IP BK_CI_REDIS_PASSWORD=$BK_PAAS_REDIS_PASSWORD

# 调整BK_CI_AUTH_PROVIDER及URL等
set_env03_en BK_CI_AUTH_PROVIDER=bk_login_v3 \
set_env03_en BK_CI_AUTH_PROVIDER=rbac \
BK_CI_FQDN=$(echo ${BK_PAAS_PUBLIC_ADDR}|sed "s#paas#devops#g;s#:80##g") \
BK_CI_PUBLIC_URL=http://\$BK_CI_FQDN \
BK_CI_REPOSITORY_GITLAB_URL=http://\$BK_CI_FQDN
BK_CI_REPOSITORY_GITLAB_URL=http://\$BK_CI_FQDN \
BK_CI_IAM_SYSTEM_ID=bk_ci_rbac \
BK_CI_IAM_MIGRATE_TOKEN=9sBQj!M0 \
BK_CI_IAM_APIGW_URL=http://$BK_APIGW_APIGATEWAY_CONSUL_SERVICE:6006/api/bk-iam/prod \
BK_CI_ITSM_APIGW_URL=$BK_PAAS_PRIVATE_URL \
BK_CI_IAM_URL_PREFIX=$BK_PAAS_PUBLIC_URL/o/bk_iam \
BK_CI_ITSM_URL_PREFIX=$BK_PAAS_PUBLIC_URL/o/bk_itsm/#/ \
BK_CI_IAM_WEB_URL=$BK_PAAS_PUBLIC_URL/o/bk_iam/ \

if grep -w repo $CTRL_DIR/install.config|grep -v ^\# ; then
set_env03_en BK_REPO_GATEWAY_IP=$BK_REPO_GATEWAY_IP \
Expand Down
6 changes: 5 additions & 1 deletion scripts/bkenv.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ BK_CODECC_DATA_DIR=
BK_CODECC_HOME=
# BK_CODECC_PRIVATE_URL无默认值. 无需修改. 声明依赖, 蓝鲸环境下会自动填充. 其他环境无需填写.
BK_CODECC_PRIVATE_URL=
# BK_CODECC_PRIVATE_PROJECT_ID 项目ID
BK_CODECC_PRIVATE_PROJECT_ID=
# BK_CI_CODECC_OPENAPI_TOKEN无默认值. 获取CODECC任务回调接口TOKEN
BK_CI_CODECC_OPENAPI_TOKEN=
# BK_DOMAIN无默认值. 按需修改. 声明依赖, 蓝鲸环境下会自动填充. 其他环境需修改, 建议使用用户持有的公网域名(但解析为内网IP).
Expand Down Expand Up @@ -142,7 +144,9 @@ BK_ESB_ENABLED=false
# BK_ESB_HOST
BK_ESB_HOST=
# BK_CI_PUBLIC_PATH
BK_CI_PUBLIC_PATH=
BK_CI_PUBLIC_PATH=""
# BK_CI_FRONTEND_INDEX
BK_CI_FRONTEND_INDEX="rewrite .* /\$subsystem/index.html break"

##########
# 2-公共依赖
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ class AuthCronManager @Autowired constructor(
)
}
page++
} while (resourceGroupConfigResult.size == PageUtil.DEFAULT_PAGE)
} while (resourceGroupConfigResult.size == PageUtil.DEFAULT_PAGE_SIZE)
logger.info("init auth resource group config I18n end")
} finally {
redisLock.unlock()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ data class ProjectCreateInfo(
val logoAddress: String? = null,
@ApiModelProperty("项目性质")
val authSecrecy: Int? = ProjectAuthSecrecyStatus.PUBLIC.value,
@ApiModelProperty("是否可用")
val enabled: Boolean = true,
@ApiModelProperty("运营产品ID")
val productId: Int? = null,
@ApiModelProperty("运营产品名称")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ class ProjectDao {
userDeptDetail.deptName,
userDeptDetail.centerName,
channelCode!!.name,
true,
projectCreateInfo.enabled,
properties?.let {
JsonUtil.toJson(it, false)
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ class SampleImageInitService @Autowired constructor(
projectInfo = ProjectCreateInfo(
projectName = imageInitRequest?.projectCode ?: "Demo",
englishName = projectCode,
description = imageInitRequest?.projectDesc ?: "demo project"
description = imageInitRequest?.projectDesc ?: "demo project",
enabled = false
),
needAuth = false,
needValidate = true,
Expand Down
4 changes: 4 additions & 0 deletions src/frontend/bk-permission/.bk.development.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# .bk.development.env 生产模式生效

# 开发 port
BK_APP_PORT = 5002
Loading
Loading