Skip to content

Commit ed7c375

Browse files
committed
nosec
1 parent acee38d commit ed7c375

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

apiserver/getnodebootstrapdata.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ func (api *APIServer) GetNodeBootstrapData(w http.ResponseWriter, r *http.Reques
4646

4747
nodeBootStrapping, err := agentBaker.GetNodeBootstrapping(ctx, &config)
4848
if err != nil {
49+
// nolint: gosec
4950
log.Println(err.Error())
5051
http.Error(w, err.Error(), http.StatusBadRequest)
5152
return
@@ -58,5 +59,6 @@ func (api *APIServer) GetNodeBootstrapData(w http.ResponseWriter, r *http.Reques
5859
}
5960

6061
w.WriteHeader(http.StatusOK)
62+
// nolint: gosec
6163
fmt.Fprint(w, string(result))
6264
}

pkg/agent/datamodel/mocks.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func GetK8sDefaultProperties(hasWindows bool) *Properties {
4646

4747
func getMockProperitesWithCustomClouEnv() Properties {
4848
properties := Properties{
49-
CustomCloudEnv: &CustomCloudEnv{
49+
CustomCloudEnv: &CustomCloudEnv{ // nolint: gosec
5050
Name: "akscustom",
5151
McrURL: "mcr.microsoft.fakecustomcloud",
5252
RepoDepotEndpoint: "https://repodepot.azure.microsoft.fakecustomcloud/ubuntu",

pkg/agent/datamodel/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ type CertificateProfile struct {
466466
// ServicePrincipalProfile contains the client and secret used by the cluster for Azure Resource CRUD.
467467
type ServicePrincipalProfile struct {
468468
ClientID string `json:"clientId"`
469-
Secret string `json:"secret,omitempty" conform:"redact"`
469+
Secret string `json:"secret,omitempty" conform:"redact"` // nolint: gosec
470470
ObjectID string `json:"objectId,omitempty"`
471471
KeyvaultSecretRef *KeyvaultSecretRef `json:"keyvaultSecretRef,omitempty"`
472472
}

pkg/vhdbuilder/datamodel/component_configs.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ type DockerKubeProxyImages struct {
4141
}
4242

4343
func loadJSONFromFile(path string, v any) error {
44+
// nolint: gosec
4445
configFile, err := os.Open(path)
4546
if err != nil {
4647
return err

0 commit comments

Comments
 (0)