Skip to content

ShortString is actively unhelpful #14683

Open

Description

@daniellandau

What is the issue?

While debugging a connectivity issue that manifests with the error message in #11565 I wanted to know which peer exactly the 5 characters inside the square brackets specifies. I did find the translation, and could write a small python snippet to get at the same id

base64.b64encode(bytes.fromhex('<the node key from the tailscale admin panel without the initial nodekey:>'))[:5]

But I don't understand why the logs don't have something that would match directly with the admin panel. Say the first characters of the hex node key that is visible in the admin panel, or add the base64 to the admin panel.

Steps to reproduce

No response

Are there any recent changes that introduced the issue?

No response

OS

No response

OS version

No response

Tailscale version

No response

Other software

No response

Bug report

No response

Activity

  1. daniellandau commented on Jan 19, 2025

    @daniellandau
    Author

    To get a list of all ShortStrings in the tailnet:

    #!/usr/bin/env python3
    import subprocess
    import json, base64
    status = json.loads(subprocess.check_output(['tailscale', 'status', '--json']))
    def decode(o):
        print(f'{base64.b64encode(bytes.fromhex(o["PublicKey"][8:]))[:5].decode("ascii")}\t{o["HostName"]}')
    
    decode(status["Self"])
    for o in status["Peer"].values():
        decode(o)
  2. added
    fr
    and removed
    bug
    on Apr 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    fr

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions