From 29fba0c66313df6cec1ff5df3f4cf64f82284da5 Mon Sep 17 00:00:00 2001 From: Tom Wieczorek Date: Tue, 6 Feb 2024 12:12:13 +0100 Subject: [PATCH] Remove unused bootstrap-api-auth token usage It has been added as part of the initial Windows support, but it seems it has never been in use. Supposedly this is a remnant of an intermediary variant, and has been renamed to bootstrap-api-worker-calls. See: d2251a39d ("Implement different roles in the token/manager to distinguish api for controller nodes and api for worker nodes") See: 55b52270e ("Apply lost in rebase commit for join token generation") Signed-off-by: Tom Wieczorek --- pkg/token/manager.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pkg/token/manager.go b/pkg/token/manager.go index dcea57727bd5..13efb4a44ce7 100644 --- a/pkg/token/manager.go +++ b/pkg/token/manager.go @@ -79,12 +79,6 @@ func RandomBootstrapSecret(role string, valid time.Duration) (*corev1.Secret, st StringData: map[string]string{ "token-id": tokenID, "token-secret": tokenSecret, - - // This "usage-" is shared for all roles of the token which allows - // them to execute calls to the k0s API. This is done because we - // need to call the k0s API from windows workers during the join - // step. - "usage-bootstrap-api-auth": "true", }, }