You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here, the secretName param gets flagged, although it only represents the name of the secret, so it's not actually sensitive.
I was wondering if we could leverage a suppression group to selectively allow such cases?
Right now, the only solution we found is to disable the rule entirely, which is not ideal.
Another question is, I couldn't find documentation telling what sort of "input object" gets passed to the suppression group, which could help figure out how I could construct the spec.if object.
Is this documented somewhere, or is there a way to see the context passed to the suppression group through a PowerShell parameter to get a better sense of how we might do this?
The text was updated successfully, but these errors were encountered:
secretName
from being detected as a secret value.Discussed in #2526
Originally posted by mderriey November 9, 2023
Hi there 👋
Our CI picked up PSRule.Rules.Azure v1.31.0 and we get errors related to the new
Azure.Deployment.SecureParameter
rule.Some of those errors are false-positive that we'd like to exclude, but we couldn't find out how to selectively do this.
For example, we have a Bicep template to store a secret in Key Vault:
Here, the
secretName
param gets flagged, although it only represents the name of the secret, so it's not actually sensitive.I was wondering if we could leverage a suppression group to selectively allow such cases?
Right now, the only solution we found is to disable the rule entirely, which is not ideal.
Another question is, I couldn't find documentation telling what sort of "input object" gets passed to the suppression group, which could help figure out how I could construct the
spec.if
object.Is this documented somewhere, or is there a way to see the context passed to the suppression group through a PowerShell parameter to get a better sense of how we might do this?
The text was updated successfully, but these errors were encountered: