Bot instances page can show zero bots under "insights" while a bot exists in the instance list
uimachine-id
Expected behavior:
The bot instance list and version compatibility charts should agree with one another.
Current behavior:
Bots can occasionally be seen on the instances list with all zero values under "Version Compatibility":
<img width="1150" height="638" alt="Image" src="https://github.com/user-attachments/assets/2f015b9b-69a8-4773-9cb4-783cb0438338" />
This is caused by a slight difference in cache semantics:
- The report generator explicitly filters out expired bot instances: https://github.com/gravitational/teleport/blob/ef2f4b1186e77c842656d95aa332490e3878f9b8/lib/auth/machineid/machineidv1/auto_update_version_reporter.go#L255-L258
- The list view does not, and happily shows bots with a `metadata.expires` YAML in the past
Bug details:
- Teleport version: v18.9.0-rc2
- Recreation steps: wait for a bot instance to be past its `metadata.expires` and view the bot instances page
- Debug logs
0 条评论