mirror of
https://github.com/coder/coder.git
synced 2026-06-07 15:08:20 +00:00
41a966c284
Fixes an issue where we will not correctly return the latest key by sequence number if the fetch returns them in a order where the latest key is not last. The db query uses `ORDER BY sequence DESC` it is likely we have been operating incorrectly. Adds a second key to one of the test cases which fails without this fix. Also includes some debug logging statements I found helpful while chasing key rotation issues.