This message was deleted.
# rke2
a
This message was deleted.
s
Got a partial answer by trying it out. I'm getting this error if using the bootstrap token as credentials:
panic: failed to normalize server token; must be in format K10<CA-HASH>::<USERNAME>:<PASSWORD> or <PASSWORD>
Still it's unclear to me if
server
is a reserved username or if it is arbitrary.
s
It's arbitrary, the token can be whatever you like
😕 1
c
The secure token format (occasionally referred to as a “full” token) contains the following parts:
<prefix><cluster CA hash>::<credentials>
• `prefix`: a fixed
K10
prefix that identifies the token format
• `cluster CA hash`: The hash of the cluster’s server CA certificate, used to authenticate the server to the joining node.
◦ For self-signed CA certificates, this is the SHA256 sum of the PEM-formatted certificate, as stored on disk.
◦ For custom CA certificates, this is the SHA256 sum of the DER encoding of the root certificate; commonly known as the certificate fingerprint.
• `credentials`: The username and password, or bearer token, used to authenticate the joining node to the cluster.
the username needs to be server for the server token, and node for the agent token. If you are using bootstrap tokens, there is no username portion, because it uses it as a bearer token instead of basic auth credential
👍 1
145 Views