我有一个连接到 UAA 的 Bosh 目录。我想要做的是限制应该只访问其版本的团队对 Director 的访问。因此,我想在 UAA 中使用 Teams。
现在,按照此文档https://bosh.io/docs/director-users-uaa-perms.html#team-admin,我对 UAA 和 BOSH 有以下问题:
我创建了一个
bosh.teams.jenkins.admin
组uaac group add bosh.teams.jenkins.admin
我创建了一个
jenkinsadmin
用户uaac user add jenkinsadmin --emails mail@test.com
我将用户添加到组中
uaac member add bosh.teams.jenkins.admin jenkinsadmin
另外我添加了
scope: openid,bosh.admin,bosh.read,bosh.*.admin,bosh.*.read,bosh.teams.*.admin
进入 BOSH 导演的清单。
当我现在尝试上传 bosh 版本时,bosh upload release
我收到以下错误消息:
Error 600000: Require one of the scopes: bosh.admin, bosh.0c5b93a8-46a5-4cb2-81be-b17f97afaf0f.admin
我检查了我的用户的设置uaac user get jenkinsadmin
并看到以下输出:
groups:
-
value: d6788c74-9d24-4df0-9215-1413ad8c7fed
display: cloud_controller_service_permissions.read
type: DIRECT
-
value: 0298444a-d9e3-456a-a27b-4fc66d5e41df
display: openid
type: DIRECT
-
value: 763ae5cc-7d9e-411f-9e08-54850ff9fe44
display: password.write
type: DIRECT
-
value: a349c0b8-f543-4409-8441-c8a6acdea488
display: notification_preferences.read
type: DIRECT
-
value: 7bde9588-8d6e-4c51-81f8-c5a4cf71fdd7
display: cloud_controller.read
type: DIRECT
-
value: ad49d3a5-232f-45fa-917d-f74326674857
display: uaa.user
type: DIRECT
-
value: 013ed852-59ad-4c88-9c3d-5e397f82f18b
display: scim.me
type: DIRECT
-
value: 83e5c21e-74c2-412e-a1e9-9a206841b0dc
display: bosh.teams.jenkins.admin
type: DIRECT
-
value: 09a37162-a999-416b-b1fd-923378aba7d8
display: notification_preferences.write
type: DIRECT
-
value: 2cd48b42-a0dc-4f60-9ac6-67cf40023726
display: approvals.me
type: DIRECT
-
value: ad596184-4de8-4b43-8779-1292af4ebe04
display: oauth.approvals
type: DIRECT
-
value: 3c0df91d-4f70-4320-aa34-01a9651272ee
display: cloud_controller.write
type: DIRECT
approvals:
active: true
verified: false
origin: uaa
schemas: urn:scim:schemas:core:1.0
username: jenkinsadmin
zoneid: uaa
所以我的问题是,我该怎么做才能让 UAA 用户jenkinsadmin
上传版本?