Commit Graph

42 Commits

Author SHA1 Message Date
Qiu Jian
d1346771aa feature: domain resource quota 2020-04-03 02:03:55 +08:00
Qiu Jian
91711a1321 feature: fix customized API documents for authenticate and quota 2020-02-06 01:45:15 +08:00
Qiu Jian
307689b3e7 fix: domain quota-list include domain's own quota 2020-01-04 17:07:19 +08:00
Qiu Jian
8fcd3ef46d fix: refresh quota usage may timeout 2019-12-26 22:16:23 +08:00
Qiu Jian
dc34a66d00 feature: allow delete none-default quota
fix: cannot set a quota to zero
2019-12-14 23:34:17 +08:00
Qiu Jian
9d6d28b36a clean usages when resource deleted 2019-12-12 11:31:47 +08:00
Qiu Jian
39de0f0ee7 quota recode update 2 2019-12-12 11:31:46 +08:00
Qiu Jian
3dba5360d7 quota recode 2019-12-12 11:31:41 +08:00
Qiu Jian
264be68045 fix: quota-list fail if deleted projects found 2019-08-26 18:12:53 +08:00
Qiu Jian
5483f19898 fix: 1. project quota-list not include domain quota 2. do not check
conformance between project and domain quota
2019-07-31 17:34:01 +08:00
Qiu Jian
927f176d3e fix: clear pending-delete when sched_fail 2019-07-23 23:41:47 +08:00
Qiu Jian
971a592b09 fix: possible reduce timeout for quota list 2019-07-09 23:36:06 +08:00
Jian Qiu
b08dd390e5 fix: quota encode json allowing zero value (#1570) 2019-07-05 23:03:28 +08:00
Qiu Jian
b02214bb25 1. allow replace set quota when action=replace
2. show when the project external resource was fetched
2019-07-04 23:32:10 +08:00
Qiu Jian
49675fe965 feature: allow cascade quota set 2019-07-02 09:27:55 +08:00
Qiu Jian
f184e2d8f9 fix: 1. quota add API 2. tenant cache refresh 3. domain quota not initialize 2019-07-02 03:08:52 +08:00
Qiu Jian
1dbb998844 fix: 1. sync delete projects and related quota&usage data
2. sync delete user/group/domain for ldap driver
3. ModelManager add OrderByExtraFields
2019-06-22 17:05:27 +08:00
Jian Qiu
92b90cdbe0 fix: protect projects with resources in any services (#1337) 2019-06-21 09:09:27 +08:00
Qiu Jian
013a439e6d fix: 1. user-project-list 404 2. check quotas of all projects when set
domain quota 3. host.cpu shows negative number
2019-06-20 00:03:17 +08:00
Jian Qiu
1d7fd20df4 misc bugfix (#1296) 2019-06-19 02:45:52 +08:00
Jian Qiu
b0605113da fix: misc bugfxi for quotas (#1290) 2019-06-18 22:51:38 +08:00
Qiu Jian
2dd12cc14f fix: misc 2019-06-18 10:32:43 +08:00
Qiu Jian
fb40b42b61 fix: quota-list includes image quotas 2019-06-17 18:42:09 +08:00
Qiu Jian
59cd60db6c feature: recode quota, cache quota usage, allow list all project/domain
quotas
2019-06-17 18:40:13 +08:00
Jian Qiu
40c4bd2a0b fix: 1. 403 on zone/capabilities, parameters (#1097)
* fix: 1. 403 on zone/capabilities, parameters

* fix keystone authenticate error

* fix: endpoint add type console
2019-06-09 00:52:58 +08:00
Qiu Jian
a6207a8ac7 hotfix: support scope list filter, resolve filter conflict 2019-06-04 23:27:55 +08:00
Jian Qiu
72c13b8e39 3level priviliges bufixes 20190603 (#1036) 2019-06-03 12:30:58 +08:00
Qiu Jian
b7027934db feature: 3-level policies, system/domain/project 2019-05-31 13:56:02 +08:00
Qiu Jian
004d9b6f95 update copyright headers of all source 2019-03-29 14:47:48 +08:00
Qiu Jian
2e587bd6ab glance重构 update 1
Conflicts:
	Gopkg.lock
	pkg/appsrv/appsrv.go
	pkg/cloudcommon/options.go
	pkg/compute/models/hosts.go
	pkg/compute/models/quotas.go
	pkg/compute/service/service.go
	pkg/mcclient/mcclient.go
2018-12-26 22:52:13 +08:00
wanyaoqi
742a67b0f8 client session add context 2018-12-25 13:33:33 +08:00
Qiu Jian
bc02b3b433 1.
取消userCred.IsSystemAdmin(),在使用policy的应用中,通过userCred.IsAdminAllow判断是否是管理员且具备相应的权限。获取token时,需要传入policy.FilterPolicyCredential,将普通userCred转换成支持rbac的userCred
2. 在应用启动时候,必须设置 SetServiceType,否则退出
2018-11-30 23:00:11 +08:00
Qiu Jian
2734d2f5db 增加user/guest两个权利等级 2018-11-16 01:32:01 +08:00
Qiu Jian
388b793490 修正:增加owner级别权限,放置普通用户可以访问系统资源 2018-11-08 01:36:19 +08:00
Qiu Jian
33f546aafd 重构代码,将policy从db中分离出来,代码更干净一些 2018-10-30 00:12:19 +08:00
Qiu Jian
740d6800ef make fmt 2018-10-29 14:54:01 +08:00
Qiu Jian
55645b9b1d fix quota check rbac check logic 2018-10-27 17:37:23 +08:00
Qiu Jian
d069a2a469 增加 usages get 和 quotas get/update 的RBAC检查 2018-10-27 17:29:07 +08:00
Qiu Jian
0c06216364 JointModel support 2018-10-27 16:40:41 +08:00
Zexi Li
22411ffb53 path move: github.com/yunionio -> yunion.io/x 2018-08-11 14:28:18 +08:00
Zexi Li
b5275a0c29 - mv mcclient to pkg/mcclient
- vendor update
2018-08-01 14:13:23 +08:00
Zexi Li
976cc8e640 cloudcommon pkg added. 2018-07-27 19:03:32 +08:00