diff --git a/builtin/credential/cert/path_login.go b/builtin/credential/cert/path_login.go index 14dbf8212..2b673271e 100644 --- a/builtin/credential/cert/path_login.go +++ b/builtin/credential/cert/path_login.go @@ -61,7 +61,7 @@ func (b *backend) pathLogin( Policies: matched.Entry.Policies, DisplayName: matched.Entry.DisplayName, Metadata: map[string]string{ - "cert_name": matched.Entry.Name, + "cert_name": matched.Entry.Name, "common_name": connState.PeerCertificates[0].Subject.CommonName, }, LeaseOptions: logical.LeaseOptions{ @@ -187,5 +187,5 @@ func (b *backend) pathLoginRenew( return nil, nil } - return framework.LeaseExtend(cert.Lease, 0)(req, d) + return framework.LeaseExtend(cert.Lease, 0, false)(req, d) } diff --git a/builtin/credential/ldap/path_login.go b/builtin/credential/ldap/path_login.go index 5b77f5772..ad566b771 100644 --- a/builtin/credential/ldap/path_login.go +++ b/builtin/credential/ldap/path_login.go @@ -77,7 +77,7 @@ func (b *backend) pathLoginRenew( return logical.ErrorResponse("policies have changed, revoking login"), nil } - return framework.LeaseExtend(1*time.Hour, 0)(req, d) + return framework.LeaseExtend(1*time.Hour, 0, false)(req, d) } const pathLoginSyn = ` diff --git a/builtin/credential/userpass/path_login.go b/builtin/credential/userpass/path_login.go index 54b0df1c3..7e427d825 100644 --- a/builtin/credential/userpass/path_login.go +++ b/builtin/credential/userpass/path_login.go @@ -68,7 +68,7 @@ func (b *backend) pathLoginRenew( return nil, nil } - return framework.LeaseExtend(1*time.Hour, 0)(req, d) + return framework.LeaseExtend(1*time.Hour, 0, false)(req, d) } const pathLoginSyn = ` diff --git a/builtin/logical/aws/secret_access_keys.go b/builtin/logical/aws/secret_access_keys.go index 9ddb4d9a3..5d03b312d 100644 --- a/builtin/logical/aws/secret_access_keys.go +++ b/builtin/logical/aws/secret_access_keys.go @@ -115,7 +115,7 @@ func (b *backend) secretAccessKeysRenew( lease = &configLease{Lease: 1 * time.Hour} } - f := framework.LeaseExtend(lease.Lease, lease.LeaseMax) + f := framework.LeaseExtend(lease.Lease, lease.LeaseMax, false) return f(req, d) } diff --git a/builtin/logical/consul/secret_token.go b/builtin/logical/consul/secret_token.go index 06679b131..e6e83de6b 100644 --- a/builtin/logical/consul/secret_token.go +++ b/builtin/logical/consul/secret_token.go @@ -26,7 +26,7 @@ func secretToken() *framework.Secret { DefaultDuration: DefaultLeaseDuration, DefaultGracePeriod: DefaultGracePeriod, - Renew: framework.LeaseExtend(1*time.Hour, 0), + Renew: framework.LeaseExtend(0, 0, true), Revoke: secretTokenRevoke, } } diff --git a/builtin/logical/mysql/secret_creds.go b/builtin/logical/mysql/secret_creds.go index 5bed15976..c60beb0ad 100644 --- a/builtin/logical/mysql/secret_creds.go +++ b/builtin/logical/mysql/secret_creds.go @@ -44,7 +44,7 @@ func (b *backend) secretCredsRenew( lease = &configLease{Lease: 1 * time.Hour} } - f := framework.LeaseExtend(lease.Lease, lease.LeaseMax) + f := framework.LeaseExtend(lease.Lease, lease.LeaseMax, false) return f(req, d) } diff --git a/builtin/logical/postgresql/secret_creds.go b/builtin/logical/postgresql/secret_creds.go index 00714eb6f..204daa073 100644 --- a/builtin/logical/postgresql/secret_creds.go +++ b/builtin/logical/postgresql/secret_creds.go @@ -58,7 +58,7 @@ func (b *backend) secretCredsRenew( lease = &configLease{Lease: 1 * time.Hour} } - f := framework.LeaseExtend(lease.Lease, lease.LeaseMax) + f := framework.LeaseExtend(lease.Lease, lease.LeaseMax, false) resp, err := f(req, d) if err != nil { return nil, err