Skip to content

Commit

Permalink
secrets/consul: Deprecate token_type and policy fields (hashicorp#15550)
Browse files Browse the repository at this point in the history
  • Loading branch information
robmonte authored and Gabrielopesantos committed Jun 6, 2022
1 parent 99a4384 commit 8f77c5a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions builtin/logical/consul/path_roles.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ func pathRoles(b *backend) *framework.Path {
Type: framework.TypeString,
Description: `Policy document, base64 encoded. Required
for 'client' tokens. Required for Consul pre-1.4.`,
Deprecated: true,
},

"token_type": {
Expand All @@ -43,6 +44,7 @@ for 'client' tokens. Required for Consul pre-1.4.`,
Description: `Which type of token to create: 'client' or 'management'. If
a 'management' token, the "policy", "policies", and "consul_roles" parameters are not
required. Defaults to 'client'.`,
Deprecated: true,
},

"policies": {
Expand Down
3 changes: 3 additions & 0 deletions changelog/15550.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:deprecation
secrets/consul: Deprecate old parameters "token_type" and "policy"
```

0 comments on commit 8f77c5a

Please sign in to comment.