secrets/consul: Deprecate token_type and policy fields (#15550)

This commit is contained in:
Robert 2022-05-20 15:48:02 -05:00 committed by GitHub
parent 644345b1cc
commit 71a6505ddb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View file

@ -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
View file

@ -0,0 +1,3 @@
```release-note:deprecation
secrets/consul: Deprecate old parameters "token_type" and "policy"
```