fortify / fcli

fcli is a command-line utility for interacting with various Fortify products
https://fortify.github.io/fcli/
Other
32 stars 22 forks source link

feat: `fcli sc-sast session login`: Allow for overriding SC SAST Controller URL (resolves #611) #645

Closed SangameshV closed 1 week ago

SangameshV commented 2 weeks ago

Added support in FCLI to accept an optional argument --ctrl-url which accepts the controller URL and in such cases the user input overrides the controller URL fetched from the SSC configurations.

Example Command:

sc-sast session login --ssc-url="http**" --ctrl-url "http****" -u** -p -c***

Scenarios Tested:

  1. SSC URL: http**** has enabled SC SAST and the Controller URL is http*****. FCLI detected the controller URL automatically without having the --ctrl-url argument. The SC SAST session login was successful.
  2. SSC URL: http** has disabled SC SAST and FCLI could not read the SSC Configuration for the Controller URL, throws an error. The SC SAST session login fails.
  3. SSC URL: http*** has disabled SC SAST. An Optional Argument for the Controller URL --ctrl-url was mentioned as http*. The SC SAST session login was successful as FCLI did not attempt to read the controller URL from the SSC Configurations.