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

Validation of web_link values for compliance resources #162

Open
asaba-hashi opened this issue Mar 21, 2023 · 0 comments
Open

Validation of web_link values for compliance resources #162

asaba-hashi opened this issue Mar 21, 2023 · 0 comments

Comments

@asaba-hashi
Copy link
Contributor

The provider currently does not do any validation that the provided value of web_link is a valid UI, however, the API itself currently accepts just about anything and attempts to sanitize/normalize it to create a link. Usually, terraform providers follow API restrictions, which don't appear to be enforced for this field.

Terraform Version

n/a

Affected Resource(s)

Please list the resources as a list, for example:

  • jupiterone_framework
  • jupiterone_frameworkitem
  • jupiterone_libraryitem

Terraform Configuration Files

  + resource "jupiterone_libraryitem" "linktest" {
      + id       = (known after apply)
      + name     = "link test"
      + ref      = "lt-2"
      + web_link = "ftp%3a//example.com"
   }

This causes a UI error in the J1 UI when trying to click on the external link button.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant