Commit Graph

31 Commits

Author SHA1 Message Date
wanyaoqi
f9490b5c56 host session use internal endpoint 2020-04-01 19:59:58 +08:00
Zexi Li
c6be259900 auth: check isAuthed if nil 2020-03-13 19:03:53 +08:00
Qiu Jian
abfac074c3 fix: use globalEndpointType as default endpoint type 2020-02-25 20:27:59 +08:00
wanyaoqi
f0cb9c15d3 fix baremetal register get service url 2019-12-12 17:35:36 +08:00
Yousong Zhou
8ba5986d83 goimports: first run 2019-10-28 06:22:17 +00:00
Zexi Li
3781ccb427 auth: add session-endpoint-type to common options 2019-09-18 11:53:44 +08:00
Zexi Li
aae6f1e6b9 host: use public endpoint 2019-09-17 18:25:56 +08:00
Qiu Jian
77c4a53059 feature: 1. ak/sk auth support 2. a full feature s3gateway works with
Cyberduck

注意:以下两个文件的修改还未被官方合并,所以下次make
mod的时候会被覆盖,需要注意checkout恢复:

vendor/github.com/Azure/azure-sdk-for-go/storage/blockblob.go
vendor/github.com/tencentyun/cos-go-sdk-v5/object_part.go
2019-08-30 00:12:39 +08:00
Qiu Jian
8c799e3a5e fix: client auth needs project domain info 2019-05-31 14:10:56 +08:00
Qiu Jian
b7027934db feature: 3-level policies, system/domain/project 2019-05-31 13:56:02 +08:00
Qiu Jian
5a660987e6 feature: keystone support phase 1 2019-05-17 13:53:45 +08:00
Qiu Jian
004d9b6f95 update copyright headers of all source 2019-03-29 14:47:48 +08:00
Yousong Zhou
8fe4f2ec98 treewide: group imports with goimports
./goimports -w -local yunion.io/x/onecloud/ -corp yunion.io/x/ $GOPATH/src/yunion.io/x/onecloud/{cmd,pkg}
2019-03-13 10:46:12 +00:00
wanyaoqi
f2df8b4816 fix adminCredential is nil 2019-03-05 11:40:04 +08:00
李泽玺
2a3f9596ba Automatic merge from release/2.5.0 -> release/2.6.0
* commit '695ed4cbd3f3b1c4b5ccd603c23668ae2acd55ad':
  fix: temporay auth failure may invalidate valid admintoken
2019-02-21 12:10:30 +08:00
李泽玺
695ed4cbd3 Automatic merge from release/2.4.0 -> release/2.5.0
* commit '9e24e124f49123376490a091665e33c229a74db1':
  fix: temporay auth failure may invalidate valid admintoken
2019-02-21 12:10:29 +08:00
Qiu Jian
588976672f fix: temporay auth failure may invalidate valid admintoken 2019-02-21 12:08:19 +08:00
Qiu Jian
0e3f2e160c temp commit 2019-01-30 21:06: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
5a8bd48485 改进:rpc支持 2018-10-29 22:10:00 +08:00
wanyaoqi
6d21c7e0d2 baremetal ops
some bugfix
make dep
2018-10-23 21:01:00 +08:00
Qiu Jian
575ea95525 改进:允许climc指定tls证书,允许服务指定tls证书 2018-10-17 16:45:11 +08:00
Zexi Li
84ee48335b fix: region task notify not work 2018-10-11 19:04:11 +08:00
Qiu Jian
a301ee4243 修正:region刚启动未获得token时,验证API请求报500错误 2018-08-30 14:44:16 +08:00
Qiu Jian
122c1d63f2 bugfixs for aliyun server create/delete 2018-08-25 16:02:26 +08:00
Zexi Li
e6788bb75e add doc.go for each package 2018-08-11 14:41:38 +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