Skip to content

Validation of web_link values for compliance resources #162

@asaba-hashi

Description

@asaba-hashi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions