gravitational / teleport

The easiest, and most secure way to access and protect all of your infrastructure.
https://goteleport.com
GNU Affero General Public License v3.0
17.69k stars 1.77k forks source link

Add support for Kali Linux to node-join script #49435

Open webvictim opened 4 days ago

webvictim commented 4 days ago

What would you like Teleport to do?

The node-join script served for adding servers from the Teleport web UI should support Kali Linux - specifically the kali-rolling distribution (which is Debian-based)

Currently, the script's check for adding the repo to APT is gated behind a check so it only works on debian or ubuntu: https://github.com/gravitational/teleport/blob/1a6f8d4c8a11056e9d9bae75c39be8d86ee6f28d/lib/web/scripts/node-join/install.sh#L927-L944

/etc/os-release from kali-rolling:

┌──(root㉿eb62386f920d)-[/]
└─# cat /etc/os-release
PRETTY_NAME="Kali GNU/Linux Rolling"
NAME="Kali GNU/Linux"
VERSION_ID="2024.4"
VERSION="2024.4"
VERSION_CODENAME=kali-rolling
ID=kali
ID_LIKE=debian
HOME_URL="https://www.kali.org/"
SUPPORT_URL="https://forums.kali.org/"
BUG_REPORT_URL="https://bugs.kali.org/"
ANSI_COLOR="1;31"

It seems like if we were to check ID_LIKE field instead of ID, this might solve the problem for this and other distros. Alternatively, we just add kali to the list of ID checks. We would also have to add channels to the apt.releases.teleport.dev repos to support Kali's version numbers.

What problem does this solve?

Makes Teleport installation easier on Kali Linux.

If a workaround exists, please include it.

Manually install repos.