jfrog / jfrog-cli

JFrog CLI is a client that provides a simple interface that automates access to the JFrog products.
https://www.jfrog.com/confluence/display/CLI/JFrog+CLI
Apache License 2.0
536 stars 234 forks source link

Access to calling curl through JF CLI based on the JFrog Platform URL #2677

Open moegwsa opened 2 months ago

moegwsa commented 2 months ago

Is your feature request related to a problem? Please describe. Currently, the JFrog CLI allows us to perform a number of tasks to maintain the JFrog Platform and the associated applications having the credentials stored away safely.

However not all services which are provided through the REST API which are also fully accessible through the JFrog CLI. This may result in credential information being leaked through build pipeline logs if the REST API's are invoked and insufficient care is given ir order to avoid presenting the information.

Examples of this are that it is possible to create new release bundles, but getting a list of existing release bundles require The REST API's to be called directly.

Describe the solution you'd like to see I would like to be able to call the REST API from the JFrog CLI based on the JFrog Platform URL instead of being restricted to do so based on the "jf rt curl..." and the "jf xr curl..." which limit which endpoints are available.

An example of this could be: jf curl -XPOST "/lifecycle/api/v2/promotion...

Describe alternatives you've considered The alternatives would be to either be limited by which commands have been implemented in the JFrog CLI, or to using the JFrog REST API specifying credentials directly and hoping no credentials are leaked into the build logs.

DavidRadoorHummel commented 2 months ago

This would be a great addition!

krishnamanchikalapudi commented 2 months ago

jf curl would be an invaluable addition to the JFrog CLI