badarsebard / terraform-provider-xsoar

Apache License 2.0
9 stars 3 forks source link

Possible to pass user/password on integration creation? #10

Open Xboarder56 opened 1 year ago

Xboarder56 commented 1 year ago

Hi,

I’m attempting to setup a splunk integration via the integration instance but the config values when inspecting it via developer mode in the browser show the username under the authentication = {} dictionary.

However, when adding this in the config dictionary in the terraform provider it errors out requiring a string.

Do you happen to have an example of passing in a user/password Auth via creation integration instance?

Xboarder56 commented 1 year ago

I tried something similar to the following, however the provider rejects it as it expects authentication to be a string not a dictionary object.

config = {
  authentication = {
      identifier = “test”
      credential = “test”
    }
}
Xboarder56 commented 1 year ago

Also having issues with the virus total integration utilizing lists in the config = {} and it expecting a string when the integration itself uses lists and the payload in chrome debug shows lists as well.

Maybe relaxing the validation checks in the config integration resource could be a solution?