Skip to content

Commit

Permalink
Merge pull request #574 from cecobask/MGDAPI-4629
Browse files Browse the repository at this point in the history
MGDAPI-4629 remove gosec rule g101
  • Loading branch information
openshift-merge-robot committed Nov 29, 2022
2 parents 7de570c + 25131f0 commit 2549778
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -258,4 +258,4 @@ setup/sts:

.PHONY: gosec
gosec:
gosec -exclude=G101,G402,G404 -exclude-dir=hack/redis ./...
gosec -exclude=G402,G404 -exclude-dir=hack/redis ./...
2 changes: 1 addition & 1 deletion pkg/providers/aws/credentials_sts_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
const (
defaultSTSCredentialSecretName = "sts-credentials"
defaultRoleARNKeyName = "role_arn"
defaultTokenPath = "/var/run/secrets/openshift/serviceaccount/token"
defaultTokenPath = "/var/run/secrets/openshift/serviceaccount/token" // #nosec G101 -- false positive (ref: https://securego.io/docs/rules/g101.html)
)

var _ CredentialManager = (*STSCredentialManager)(nil)
Expand Down
2 changes: 1 addition & 1 deletion pkg/providers/aws/provider_blobstorage.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const (
defaultAwsBucketNameLength = 40
DetailsBlobStorageBucketName = "bucketName"
DetailsBlobStorageBucketRegion = "bucketRegion"
DetailsBlobStorageCredentialKeyID = "credentialKeyID"
DetailsBlobStorageCredentialKeyID = "credentialKeyID" // #nosec G101 -- false positive (ref: https://securego.io/docs/rules/g101.html)
DetailsBlobStorageCredentialSecretKey = "credentialSecretKey"
defaultForceBucketDeletion = false

Expand Down
2 changes: 1 addition & 1 deletion pkg/providers/aws/provider_postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const (
defaultAwsPostgresUser = "postgres"
defaultAwsPubliclyAccessible = false
defaultAwsSkipFinalSnapshot = false
defaultCredSecSuffix = "-aws-rds-credentials"
defaultCredSecSuffix = "-aws-rds-credentials" // #nosec G101 -- false positive (ref: https://securego.io/docs/rules/g101.html)
defaultPostgresPasswordKey = "password"
defaultPostgresUserKey = "user"
defaultStorageEncrypted = true
Expand Down
2 changes: 1 addition & 1 deletion pkg/providers/openshift/provider_postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ var (
defaultPostgresUserKey = "user"
defaultPostgresPasswordKey = "password"
defaultPostgresDatabaseKey = "database"
defaultCredentialsSec = "postgres-credentials"
defaultCredentialsSec = "postgres-credentials" // #nosec G101 -- false positive (ref: https://securego.io/docs/rules/g101.html)
)

// PostgresStrat to be used to unmarshal strat map
Expand Down
2 changes: 1 addition & 1 deletion pkg/resources/custom_metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const (
DefaultRedisSnapshotNotAvailable = "cro_redis_snapshot_not_found"
DefaultRedisSnapshotStatusMetricName = "cro_redis_snapshot_status_phase"
DefaultRedisStatusMetricName = "cro_redis_status_phase"
DefaultSTSCredentialsSecretMetricName = "cro_sts_credentials_secret"
DefaultSTSCredentialsSecretMetricName = "cro_sts_credentials_secret" // #nosec G101 -- false positive (ref: https://securego.io/docs/rules/g101.html)
DefaultVpcActionMetricName = "cro_vpc_action"
)

Expand Down

0 comments on commit 2549778

Please sign in to comment.