fcli icon indicating copy to clipboard operation
fcli copied to clipboard

`fcli ssc appversion-artifact upload/import`: If applicable, check parser plugin installed & enabled before uploading

Open rsenden opened this issue 2 years ago • 1 comments

The fcli ssc appversion-artifact upload and import commands simply upload the given artifact with the given engine type to SSC, potentially resulting in processing failure if the appropriate parser plugin hasn't been installed/enabled. Before import/upload, fcli could potentially check whether the appropriate parser plugin has been installed and has been enabled. However:

  • Most SSC token types may not allow access to the endpoints necessary for determining whether a parser plugin has been installed/enabled
  • Most SSC user roles may not allow querying of installed parser plugins

This needs more research; potentially we need to submit an SSC enhancement request to allow access to an endpoint that allows for checking whether a particular engine type is available; on the SSC side, all users/token types that allow for uploading artifacts should automatically have the permission to call this endpoint.

rsenden avatar Jan 16 '23 15:01 rsenden

There is an /api/v1/engineTypes endpoint available to query available engine types; we'll just need to check whether most/all SSC roles and token types that allow for uploading artifacts also allow access to this endpoint.

rsenden avatar Jan 17 '23 12:01 rsenden