change cassandra db plugin timeout to 5s as in docs (#12443)

* fix cassandra db plugin timeout to 5s as in docs

Documentation says timeout is 5s, but code uses 0s, which is too short any any real world usage, causing issues.
https://www.vaultproject.io/api/secret/databases/cassandra#connect_timeout
issues: https://github.com/hashicorp/vault/issues/8527 https://github.com/hashicorp/vault/issues/9400

* Create 12443.txt

changelog entry
This commit is contained in:
Viljo Viitanen 2022-02-15 17:35:44 +02:00 committed by GitHub
parent dd0a2c15a3
commit 8b7b57f3ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

3
changelog/12443.txt Normal file
View File

@ -0,0 +1,3 @@
```release-note:bug
secrets/database/cassandra: change connect_timeout to 5s as documentation says
```

View File

@ -60,7 +60,7 @@ func (c *cassandraConnectionProducer) Initialize(ctx context.Context, req dbplug
} }
if c.ConnectTimeoutRaw == nil { if c.ConnectTimeoutRaw == nil {
c.ConnectTimeoutRaw = "0s" c.ConnectTimeoutRaw = "5s"
} }
c.connectTimeout, err = parseutil.ParseDurationSecond(c.ConnectTimeoutRaw) c.connectTimeout, err = parseutil.ParseDurationSecond(c.ConnectTimeoutRaw)
if err != nil { if err != nil {