PaloAltoNetworks / terraform-provider-prismacloudcompute

Terraform provider for Prisma Cloud Compute
https://registry.terraform.io/providers/PaloAltoNetworks/prismacloudcompute/latest
Mozilla Public License 2.0
24 stars 28 forks source link

Adds coderepo vulnerability policies #45

Closed pnancarrow closed 2 years ago

pnancarrow commented 2 years ago

Description

Motivation and Context

Addresses the vulnerability portion of https://github.com/PaloAltoNetworks/terraform-provider-prismacloudcompute/issues/44 (maybe I'll take a look at compliance if I have some free time)

How Has This Been Tested?

example:

resource "prismacloudcompute_ci_coderepo_vulnerability_policy" "ruleset" {
  rule {
    collections = [
      "All",
    ]
    disabled   = false
    effect     = "alert, block"
    name       = "coderepo-ci-policy"
    notes      = "policy for codrepo "
    only_fixed = true
    verbose    = false

    alert_threshold {
      disabled = false
      value    = 1
    }

    block_threshold {
      enabled = true
      value   = 1
    }

    grace_days_policy {
      low      = 90
      medium   = 45
      high     = 15
      critical = 0
    }
  }
}

resource "prismacloudcompute_coderepo_vulnerability_policy" "ruleset" {
  rule {
    collections = [
      "All",
    ]
    disabled   = false
    effect     = "alert"
    name       = "coderepo-policy"
    notes      = "Baseline policy for codrepos"
    only_fixed = true
    verbose    = false
    create_pr  = true

    alert_threshold {
      disabled = false
      value    = 1
    }
  }
}

Types of changes

Checklist

welcome-to-palo-alto-networks[bot] commented 2 years ago

:tada: Thanks for opening this pull request! We really appreciate contributors like you! :raised_hands:

welcome-to-palo-alto-networks[bot] commented 2 years ago

:tada: Congrats on getting your first pull request merged! We here at Palo Alto Networks are so grateful! :heart:

wfg commented 2 years ago

Good stuff! Thanks for the contribution @pnancarrow

pnancarrow commented 2 years ago

Good stuff! Thanks for the contribution @pnancarrow

sure thing! do you know when this will get released?