Files
k3s/pkg
Vladimir Kochnev 13af0b1d88 Save agent token to /var/lib/rancher/k3s/server/agent-token
Having separate tokens for server and agent nodes is a nice feature.

However, passing server's plain `K3S_AGENT_TOKEN` value
to `k3s agent --token` without CA hash is insecure when CA is
self-signed, and k3s warns about it in the logs:

```
Cluster CA certificate is not trusted by the host CA bundle, but the token does not include a CA hash.
Use the full token from the server's node-token file to enable Cluster CA validation.
```

Okay so I need CA hash but where should I get it?

This commit attempts to fix this issue by saving agent token value to
`agent-token` file with CA hash appended.

Signed-off-by: Vladimir Kochnev <hashtable@yandex.ru>
2022-08-01 14:11:50 -07:00
..
2022-05-11 14:39:07 -07:00
2019-06-30 09:30:25 -07:00
2021-12-21 14:23:38 -07:00
2022-04-13 14:48:42 -07:00
2022-04-13 14:48:42 -07:00
2022-05-11 14:39:07 -07:00
2020-07-09 11:20:06 -07:00