Răsfoiți Sursa

allowing readonly k8s access (#4636)

Stefan McShane 2 ani în urmă
părinte
comite
27359a7fdb
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      api/server/router/cluster.go

+ 1 - 1
api/server/router/cluster.go

@@ -979,7 +979,7 @@ func getClusterRoutes(
 		// GET /api/projects/{project_id}/clusters/{cluster_id}/kubeconfig -> cluster.NewGetTemporaryKubeconfigHandler
 		getTemporaryKubeconfigEndpoint := factory.NewAPIEndpoint(
 			&types.APIRequestMetadata{
-				Verb:   types.APIVerbUpdate, // we do not want users with no-write access to be able to use this
+				Verb:   types.APIVerbGet,
 				Method: types.HTTPVerbGet,
 				Path: &types.Path{
 					Parent:       basePath,