jfrog / terraform-provider-xray

Terraform provider to manage JFrog Xray
https://jfrog.com/xray/
Apache License 2.0
151 stars 12 forks source link

Support for XRAY webhooks #7

Closed chb0github closed 1 year ago

chb0github commented 3 years ago

Is your feature request related to a problem? Please describe. Not related to a problem. However, the ability to create webhooks in xray is important for other integrations

Describe the solution you'd like

resource "xray_webhook" "myotherservice" {
   url = "http://thing.com/hook"
   auth { // xor on these 3 methods
    bearer { // optional
       token = "marked as sensitive"
    }
    basic {
      username = "optional"
      password = "sensitive"
    }
    header {
     FooHeader = "sensitive"
     }
   }
   headers {
    MyHeader = "value"
   }
}

Additional context There is no current "legit" api for this, so the UI endpoint will need to be used. Please talk to @alexhung or Karol where to find an example integration

danielmkn commented 2 years ago

We've decided not to use private APIs in the TF providers. The internal ticket to add public API was submitted to the Xray team.