mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-19 19:34:56 +00:00
Add an explicit default for TTLs for rabbit creds
This commit is contained in:
@@ -14,10 +14,12 @@ func pathConfigLease(b *backend) *framework.Path {
|
|||||||
Fields: map[string]*framework.FieldSchema{
|
Fields: map[string]*framework.FieldSchema{
|
||||||
"ttl": &framework.FieldSchema{
|
"ttl": &framework.FieldSchema{
|
||||||
Type: framework.TypeDurationSecond,
|
Type: framework.TypeDurationSecond,
|
||||||
|
Default: 0,
|
||||||
Description: "Duration before which the issued credentials needs renewal",
|
Description: "Duration before which the issued credentials needs renewal",
|
||||||
},
|
},
|
||||||
"max_ttl": &framework.FieldSchema{
|
"max_ttl": &framework.FieldSchema{
|
||||||
Type: framework.TypeDurationSecond,
|
Type: framework.TypeDurationSecond,
|
||||||
|
Default: 0,
|
||||||
Description: `Duration after which the issued credentials should not be allowed to be renewed`,
|
Description: `Duration after which the issued credentials should not be allowed to be renewed`,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user