mirror of
https://github.com/gravitational/teleport.git
synced 2026-11-04 01:06:47 +08:00
The prefix fetching logic has a bug: it treats everything starting with `/teleport` as the legacy prefix data, even if it's `/teleport-foo/bar`. This is an issue if user specifies `/teleport-foo` as their custom prefix. Each restart will copy the data from `/teleport-foo/...` to `/teleport-foo-foo/...`. Set the legacy prefix const to `/teleport/` instead. This avoids excessive copying during startup. Prefixes can still be confused later on, with `Watch` and `GetRange`, but this is harder to migrate with backwards-compatibility.