Yicheng Qin
|
92cd24d5bd
|
*: fix govet shadow check failure
|
2015-08-27 14:15:30 -07:00 |
Xiang Li
|
044b23c3ca
|
Merge pull request #3356 from xiang90/travis
*: test gofmt with -s and fix reported issues
|
2015-08-21 18:59:51 -07:00 |
Xiang Li
|
6b23a8131f
|
*: test gofmt with -s and fix reported issues
|
2015-08-21 18:52:16 -07:00 |
Xiang Li
|
11a689d063
|
etcdserver/auth: cache auth enable result
|
2015-08-20 23:05:00 -07:00 |
Barak Michener
|
dd1a8fe330
|
etcdhttp: Improve test coverage surrounding auth
|
2015-07-30 14:21:08 -04:00 |
Yicheng Qin
|
2e41b4f9e1
|
etcdserver/auth: fix return value when creating root user
Before:
```
$ curl http://127.0.0.1:4001/v2/auth/users/root -XPUT -d '{"user": "root",
"password": "root"}'
{"user":"root","roles":null}
```
After:
```
{"user":"root","roles":["root"]}
```
|
2015-06-27 23:16:54 -07:00 |
Barak Michener
|
39c10d1fe4
|
auth: improve test coverage
|
2015-06-25 14:25:08 -04:00 |
Xiang Li
|
030d1bbf2d
|
auth: do not allow update root role
|
2015-06-23 20:15:08 -07:00 |
Xiang Li
|
e291dfd748
|
etcdhttp: improve user endpoint validation
Giving both roles and grant/revoke is not allowed.
Creating an existing user is not allowed.
Updating a non-existing user is not allowed.
|
2015-06-23 14:38:44 -07:00 |
Xiang Li
|
c8628c8fe5
|
auth: separate the role create and update path
Giving both permission and grant/revoke is not allowed.
Creating an existing role is not allowed.
Updating a non-existing is not allowed.
|
2015-06-23 13:15:32 -07:00 |
Xiang Li
|
979f531261
|
auth: refactor updateRole
We will return error if revoke or grant fails to update the role.
No need to check if revoke or grant is nil or not.
|
2015-06-22 15:16:10 -07:00 |
Xiang Li
|
3f82e7b116
|
auth: do not allow to grant duplicate role or revoke ungranted role to a user
|
2015-06-22 15:11:09 -07:00 |
Xiang Li
|
c39aad0e92
|
etcdserver: use correct http status code for auth error
|
2015-06-22 09:28:47 -07:00 |
Barak Michener
|
64ec8af91b
|
*: Rename `security` to `auth`
|
2015-06-15 18:18:50 -04:00 |