Skip to content

Commit 8152441

Browse files
committed
Satisfy gofmt
1 parent 646a730 commit 8152441

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

internal/component/loki/secretfilter/secretfilter.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ func init() {
3838

3939
// Arguments holds values which are used to configure the secretfilter component.
4040
type Arguments struct {
41-
ForwardTo []loki.LogsReceiver `alloy:"forward_to,attr"`
42-
OriginLabel string `alloy:"origin_label,attr,optional"` // The label name to use for tracking metrics by origin (if empty, no origin metrics are collected)
43-
RedactWith string `alloy:"redact_with,attr,optional"` // Template for redaction placeholder; $SECRET_NAME and $SECRET_HASH are replaced. When set, percentage-based redaction is not used.
44-
RedactPercent uint `alloy:"redact_percent,attr,optional"` // When redact_with is not set: percent of the secret to redact (1-100; gitleaks-style: show leading (100-N)% + "...", 100 = "REDACTED"). 0 or unset defaults to 80.
41+
ForwardTo []loki.LogsReceiver `alloy:"forward_to,attr"`
42+
OriginLabel string `alloy:"origin_label,attr,optional"` // The label name to use for tracking metrics by origin (if empty, no origin metrics are collected)
43+
RedactWith string `alloy:"redact_with,attr,optional"` // Template for redaction placeholder; $SECRET_NAME and $SECRET_HASH are replaced. When set, percentage-based redaction is not used.
44+
RedactPercent uint `alloy:"redact_percent,attr,optional"` // When redact_with is not set: percent of the secret to redact (1-100; gitleaks-style: show leading (100-N)% + "...", 100 = "REDACTED"). 0 or unset defaults to 80.
4545
GitleaksConfig string `alloy:"gitleaks_config,attr,optional"` // Path to a gitleaks TOML config file; if empty, the default gitleaks config is used
4646
}
4747

0 commit comments

Comments
 (0)