secrets/consul: Deprecate token_type and policy fields (#15550)
This commit is contained in:
parent
644345b1cc
commit
71a6505ddb
|
@ -35,6 +35,7 @@ func pathRoles(b *backend) *framework.Path {
|
||||||
Type: framework.TypeString,
|
Type: framework.TypeString,
|
||||||
Description: `Policy document, base64 encoded. Required
|
Description: `Policy document, base64 encoded. Required
|
||||||
for 'client' tokens. Required for Consul pre-1.4.`,
|
for 'client' tokens. Required for Consul pre-1.4.`,
|
||||||
|
Deprecated: true,
|
||||||
},
|
},
|
||||||
|
|
||||||
"token_type": {
|
"token_type": {
|
||||||
|
@ -43,6 +44,7 @@ for 'client' tokens. Required for Consul pre-1.4.`,
|
||||||
Description: `Which type of token to create: 'client' or 'management'. If
|
Description: `Which type of token to create: 'client' or 'management'. If
|
||||||
a 'management' token, the "policy", "policies", and "consul_roles" parameters are not
|
a 'management' token, the "policy", "policies", and "consul_roles" parameters are not
|
||||||
required. Defaults to 'client'.`,
|
required. Defaults to 'client'.`,
|
||||||
|
Deprecated: true,
|
||||||
},
|
},
|
||||||
|
|
||||||
"policies": {
|
"policies": {
|
||||||
|
|
3
changelog/15550.txt
Normal file
3
changelog/15550.txt
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
```release-note:deprecation
|
||||||
|
secrets/consul: Deprecate old parameters "token_type" and "policy"
|
||||||
|
```
|
Loading…
Reference in a new issue