Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

query(terraform): wanting to exclude Keyvault References #7247

Open
stusklinar opened this issue Sep 2, 2024 · 0 comments
Open

query(terraform): wanting to exclude Keyvault References #7247

stusklinar opened this issue Sep 2, 2024 · 0 comments
Labels
azure PR related with Azure Cloud community Community contribution query New query feature terraform Terraform query

Comments

@stusklinar
Copy link

Platform

Terraform

Provider

Azure

Description

I'm trying to exclude KeyVault References from showing as high/secrets when included in Terraform.

I've written an allow rule - allow anything that starts with @Microsoft.KeyVault. which is the pattern

then included that in my run

`{
"allowRules": [
{
"description": "Allow Keyvault References",
"regex": "^@Microsoft.KeyVault.*"
}

]
}`

--secrets-regexes-path /path/Pipelines/templates/kics/queries.json

It works, by virtue of now allowing everything.

I tried changing my reference to @@ expecting that to fail - but it seems to blanket allow all now.

The format for AppSettings KeyVault references is as so:

@Microsoft.KeyVault(VaultName=fMyVault;SecretName=mySecret

Thanks

@stusklinar stusklinar added community Community contribution query New query feature labels Sep 2, 2024
@github-actions github-actions bot added terraform Terraform query azure PR related with Azure Cloud labels Sep 2, 2024
@stusklinar stusklinar changed the title query(Terraform/Azure): Wanting to exclude Keyvault References query(Terraform/Azure): wanting to exclude Keyvault References Sep 2, 2024
@stusklinar stusklinar changed the title query(Terraform/Azure): wanting to exclude Keyvault References query(terraform): wanting to exclude Keyvault References Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
azure PR related with Azure Cloud community Community contribution query New query feature terraform Terraform query
Projects
None yet
Development

No branches or pull requests

1 participant