#21566·tailscale

ipn/store/awsstore: a bare KMS key ID in the kmsKey option becomes "alias/<id>"

Author: RaphaelFakhriCreated Sep 29, 2026Updated Sep 29, 2026
Labelsbug

What is the issue?

The kmsKey option of an arn: state store is documented to accept an ARN, a key ID or an alias name. ParseARNAndOpts prefixes alias/ to any value that has no / and does not start with arn:. A bare key ID, such as a UUID (1234abcd-12ab-34cd-56ef-1234567890ab) or a multi-Region ID (mrk-1234abcd12ab34cd56ef1234567890ab), therefore turns into alias/1234abcd-..., which is not a key. There is no way to pass a bare key ID.

Steps to reproduce

  1. Start tailscaled with --state=arn:aws:ssm:us-east-1:123456789012:parameter/ts?kmsKey=1234abcd-12ab-34cd-56ef-1234567890ab.

Actual behavior

The SSM PutParameter call uses the key alias/1234abcd-12ab-34cd-56ef-1234567890ab, and AWS rejects it.

Expected behavior

The key ID is passed unchanged.