cyberark-conjur-cli icon indicating copy to clipboard operation
cyberark-conjur-cli copied to clipboard

UI Command and subcommands

Open InbalZilberman opened this issue 3 years ago • 4 comments

Feature Overview & Customer Need

As a Conjur user I would like to use the Conjur cli In order to open the Conjur UI central page

As a Conjur user I would like to use the Conjur cli In order to open the Conjur UI specific pages according to the context we are in.

As the UI is relevant only to Conjur Enterprise we need to make sure these commands option will be provided for in Conjur we are working with is Conjur Enterprise. A new command will be called ui conjur ui will open the dashboard of the Conjur UI (or login page if needed)

Also for the following commands a new subcommand will be provided called --ui: policy, host, user, variable This subcommand will open the relevant page of the UI for example conjur policy --ui will open the screen

image

The relevant commands that will get this --ui flag are:

  • policy
  • user
  • host
  • variable

Help for command

Use the UI command to Conjur Enterprise UI in the local default browser. For Conjur deployment without a UI is will provide a proper error Usage conjur [global options] ui Global options Option | Description -d, --debug | Enable debugging output Options -h, --help | Display the help screen Example conjur ui - The following command opens the Conjur Enterprise UI in the local default browser (edited)

Failure scenario

If we are working with OSS - "UI is an Conjur Enterprise feature only" If there is no browser in the machine - "No suitable browser found on the machine. if working on remote machine make sure x11Forwarding is enable"

Quality

Make sure we have test coverage of the ui command and subcommands. Create test plan and execute accordingly.

Process logic and Demo

Conjur user with a machine that the Python CLI already been installed and conjur init & login run against a Conjur/ Conjur Enterprise machine The user wants to open the dashboard he runs conjur ui and a browser is opened with the dashboard of Conjur UI.

The user has loaded policies, set variables and so on now he would like to view his variables in his Conjur. He runs: conjur variable --ui

Demo the flow above and the failure scenario

User messages

All user messages regarding resource actions should be reviewed

Especially error messages

if an argument is missing we need to return the help of the command

Documentation

Please provide enhance documentation in online help and readme

DOD

  • [ ] Implement the UI command and subcommands in Conjur Python CLI in all 3 platforms
  • [ ] Demo the flow described above
  • [ ] Automatic integration tests written according to a test plan and passed successfully
  • [ ] Fill in the user messages - link to a page with all user messages for CLI saved and reviewed.
  • [ ] Fill in the logs and place here a link to the logs files - link to a page with all logs for CLI saved and reviewed.
  • [ ] Logs were reviewed by TW and PO
  • [ ] Are there new Audits to this feature? If so please document them and provide here a link (N/A)

InbalZilberman avatar Apr 12 '21 12:04 InbalZilberman