kubo/plugin/plugins
Hector Sanjuan 049256c22f
fix(telemetry): improve vm/container detection (#10944)
* telemetry: use systemd-detect-virt for container/vm detection

Current VM detection is not very accurate and systemd-detect-virt does exactly
what's needed under a miriad of virtualization platforms.

The downside is that we are running a system command which is uglier and might
perhaps flip anti-viruses or something.

* telemetry: improve vm/container detection with pure go

replace systemd-detect-virt with file-based detection to avoid:
- security risks from executing external binaries
- unnecessary repeated detection (now cached with sync.Once)
- missing detection on non-systemd systems

removes false positives:
- cpu hypervisor flag (indicates capability, not guest status)
- generic dmi strings that match physical hardware
- overlay filesystem check (used by immutable distros)

Co-authored-by: Andrew Gillis <11790789+gammazero@users.noreply.github.com>
Co-authored-by: Marcin Rataj <lidel@lidel.org>
2025-09-08 20:38:47 +02:00
..
badgerds feat(pebble): support pinning FormatMajorVersion (#10789) 2025-04-30 12:13:56 -07:00
dagjose style: gofumpt and godot [skip changelog] (#10081) 2023-08-17 14:02:08 +02:00
flatfs feat: pebbleds profile and plugin (#10530) 2024-10-03 13:58:14 -07:00
fxtest chore: use go-log/v2 (#10801) 2025-05-19 13:04:05 -07:00
git style: gofumpt and godot [skip changelog] (#10081) 2023-08-17 14:02:08 +02:00
levelds feat: pebbleds profile and plugin (#10530) 2024-10-03 13:58:14 -07:00
nopfs Fix issue in ResourceManager and nopfsPlugin about repo path (#10492) 2024-09-28 20:58:24 -07:00
pebbleds feat(pebble): support pinning FormatMajorVersion (#10789) 2025-04-30 12:13:56 -07:00
peerlog chore: use go-log/v2 (#10801) 2025-05-19 13:04:05 -07:00
telemetry fix(telemetry): improve vm/container detection (#10944) 2025-09-08 20:38:47 +02:00
.gitignore plugin: make the plugin preload work again 2017-07-13 21:16:04 +02:00
gen_main.sh Fix typos and cleanup 2020-04-20 22:00:01 +03:00
Rules.mk Update Go version to 1.17 (#8815) 2022-04-15 14:32:00 -04:00