k3s-io / k3s-ansible

Apache License 2.0
2.01k stars 802 forks source link

Airgap install throws token must not be empty #361

Open GitHanter opened 3 weeks ago

GitHanter commented 3 weeks ago

Airgap install throws token must not be empty

Seems the latest security fix by "using K3S_TOKEN environment variable " commit caused this issue Security exposure related to the token (https://github.com/k3s-io/k3s-ansible/pull/356)

dereknola commented 2 weeks ago

You always have to provide a token in the inventory.yaml, PR #356 didn't change that requirement. What exactly is the error you are seeing.

GitHanter commented 1 week ago

You always have to provide a token in the inventory.yaml, PR #356 didn't change that requirement. What exactly is the error you are seeing.

I provided the token in the inventory.yaml, but it doesn't work. I have to append the --token parameter to the systemd service again ExecStart=/usr/local/bin/k3s server --cluster-init --data-dir {{ k3s_server_location }} --token {{ token }} {{ extra_server_args }}, which was deleted in the PR, then everything works.