Skip to content

Commit 2725030

Browse files
docs: bootstrap token JWS is signed with the token secret, not the full token
1 parent 7c3f928 commit 2725030

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

content/en/docs/reference/access-authn-authz/bootstrap-tokens.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,10 @@ The signature is a JWS signature using the "detached" mode. To validate the
174174
signature, the user should encode the `kubeconfig` payload according to JWS
175175
rules (base64 encoded while discarding any trailing `=`). That encoded payload
176176
is then used to form a whole JWS by inserting it between the 2 dots. You can
177-
verify the JWS using the `HS256` scheme (HMAC-SHA256) with the full token (e.g.
178-
`07401b.f395accd246ae52d`) as the shared secret. Users _must_ verify that HS256
179-
is used.
177+
verify the JWS using the `HS256` scheme (HMAC-SHA256) with the token secret part
178+
(e.g. `f395accd246ae52d`) as the shared secret. Users _must_ verify that HS256
179+
is used. You might have to pad the secret with zeroes to the right for some
180+
validation tools to accept it given it is only 16 bytes.
180181

181182
{{< warning >}}
182183
Any party with a bootstrapping token can create a valid signature for that

0 commit comments

Comments
 (0)