FoD: Add functionality for 'refreshing' scan settings with new entitlement id #614
Labels
effort:?
enhancement
New feature or request
fcli-fod
Issue related to 'fcli fod' commands
prio:medium
Medium priority
Enhancement Request
If the entitlement associated with an existing scan setup is deactivated (usually because it was replaced with a new entitlement), the
fcli fod sast-scan start
(and possibly the same for other scan types) will fail with an exception like the following:Ideally, if possible, this should be fixed on the FoD side, with any existing scan setups automatically being reconfigured with the new entitlement id if an existing entitlement is replaced with a new entitlement.
Alternatively, we could implement the following functionality in fcli:
We could potentially implement this in 3 different places:
--refresh-entitlement
option on the existingsast-scan setup
command, but this may be confusing, in particular in combination with the--skip-if-exists
option.refresh-entitlement
,refresh-setup
orupdate-setup
command (the latter would allow for updating any scan settings while leaving all other scan settings the same)sast-scan start
command, controlled through a--[no-]refresh-entitlement
option, not sure whether this should be enabled by default; enabling by default would be most convenient to automatically avoid exceptions like the above, but not sure whether there's any risk of selecting the wrong entitlement idThe text was updated successfully, but these errors were encountered: