Review request: two backend fixes (PR #8677, PR #8685)

Hi team,

I opened two backend fixes last week and would appreciate a review when someone has time.

Fixes #8507. On instances without a read replica and with the default pool size, around 10 or more concurrent secret updates use up the DB connection pool, hang for about 60 seconds and then fail with 500. Same kind of problem as #8401 (fixed in #8496), but on the update path: the data key lookup during the commit doesn’t use the transaction, so each update needs a second connection.

Fixes #8537. Updating AliCloud, LDAP, OCI, TLS certificate or SPIFFE auth through the API without the TTL fields can fail with “Access token TTL cannot be greater than max TTL”, for example with a 1h TTL and 30d max TTL. The stored TTLs come back from the database as strings, so they get compared as text (“3600” > “2592000”).

Both have e2e tests that fail on main and pass with the fix, and both merge cleanly with main.

Thanks!

Hey OmBhandwaldar!

Appreciate you reaching out! I will flag this to the team and get back to you. Thanks!

Jake

1 Like