Skip to content

Commit

Permalink
fix argument name for mask-ssn
Browse files Browse the repository at this point in the history
this was using "mask_phone" instead.

Tested the change in a local environment, it worked for me.
  • Loading branch information
danstadler-pdx authored May 15, 2024
1 parent f87f22d commit 0c732c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/kubernetes/annotations/logs/mask.alloy
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ declare "mask_ssn" {
// check logs.grafana.com/mask-ssn annotation, if true the data will be masked as **SSN*REDACTED**
stage.match {
pipeline_name = "pipeline for annotation || " + argument.annotation.value + "/mask-ssn: true"
selector = "{" + argument.__sd_annotation.value + "_mask_ssn=~\"" + argument.mask_phone_value.value + "\"}"
selector = "{" + argument.__sd_annotation.value + "_mask_ssn=~\"" + argument.mask_ssn_value.value + "\"}"

stage.replace {
// unescaped regex: ([0-9]{3}-[0-9]{2}-[0-9]{4})
Expand Down

0 comments on commit 0c732c0

Please sign in to comment.