mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
daemon/logger/awslogs: suppress false positive on hardcoded creds (gosec)
daemon/logger/awslogs/cloudwatchlogs.go:42:2: G101: Potential hardcoded credentials (gosec) credentialsEndpointKey = "awslogs-credentials-endpoint" ^ daemon/logger/awslogs/cloudwatchlogs.go:67:2: G101: Potential hardcoded credentials (gosec) credentialsEndpoint = "http://169.254.170.2" ^ Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
a5c7575550
commit
b88f4e2604
1 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,7 @@ const (
|
|||
tagKey = "tag"
|
||||
datetimeFormatKey = "awslogs-datetime-format"
|
||||
multilinePatternKey = "awslogs-multiline-pattern"
|
||||
credentialsEndpointKey = "awslogs-credentials-endpoint"
|
||||
credentialsEndpointKey = "awslogs-credentials-endpoint" //nolint:gosec // G101: Potential hardcoded credentials
|
||||
forceFlushIntervalKey = "awslogs-force-flush-interval-seconds"
|
||||
maxBufferedEventsKey = "awslogs-max-buffered-events"
|
||||
logFormatKey = "awslogs-format"
|
||||
|
@ -64,7 +64,7 @@ const (
|
|||
invalidSequenceTokenCode = "InvalidSequenceTokenException"
|
||||
resourceNotFoundCode = "ResourceNotFoundException"
|
||||
|
||||
credentialsEndpoint = "http://169.254.170.2"
|
||||
credentialsEndpoint = "http://169.254.170.2" //nolint:gosec // G101: Potential hardcoded credentials
|
||||
|
||||
userAgentHeader = "User-Agent"
|
||||
|
||||
|
|
Loading…
Reference in a new issue