From 21c9da1ed414031a63b4714f836bc51d9f2a65e0 Mon Sep 17 00:00:00 2001 From: xiaohuang Date: Fri, 13 May 2016 12:25:40 +0800 Subject: [PATCH] Documentation/v2: fix auth_api.md bug role guest read and write is "/*", not "*", same with other roles. --- Documentation/v2/auth_api.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Documentation/v2/auth_api.md b/Documentation/v2/auth_api.md index d437459b9..a1f8a8785 100644 --- a/Documentation/v2/auth_api.md +++ b/Documentation/v2/auth_api.md @@ -145,8 +145,8 @@ GET/HEAD /v2/auth/users "role": "root", "permissions": { "kv": { - "read": ["*"], - "write": ["*"] + "read": ["/*"], + "write": ["/*"] } } } @@ -159,8 +159,8 @@ GET/HEAD /v2/auth/users "role": "guest", "permissions": { "kv": { - "read": ["*"], - "write": ["*"] + "read": ["/*"], + "write": ["/*"] } } } @@ -198,8 +198,8 @@ GET/HEAD /v2/auth/users/alice "role": "etcd", "permissions" : { "kv" : { - "read": [ "*" ], - "write": [ "*" ] + "read": [ "/*" ], + "write": [ "/*" ] } } } @@ -311,8 +311,8 @@ GET/HEAD /v2/auth/roles "role": "etcd", "permissions": { "kv": { - "read": ["*"], - "write": ["*"] + "read": ["/*"], + "write": ["/*"] } } }, @@ -320,8 +320,8 @@ GET/HEAD /v2/auth/roles "role": "quay", "permissions": { "kv": { - "read": ["*"], - "write": ["*"] + "read": ["/*"], + "write": ["/*"] } } } @@ -393,7 +393,7 @@ PUT /v2/auth/roles/guest "revoke" : { "kv" : { "write": [ - "*" + "/*" ] } }