Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-19109

Ask user to setup the auth config after cluster init

    XMLWordPrintableJSON

Details

    • Task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • cli
    • Docs Required, Release Notes Required

    Description

      Currently, if a user has initialized the cluster but has not configured CLI auth, the CLI does not prompt the user to change their CLI settings. This can lead to confusion and errors when attempting to use CLI commands that require authentication.

      To improve the user experience and prevent these errors, it is suggested to add a prompt to the CLI when auth is not configured. The prompt should ask the user if they want to change their CLI settings to enable authentication.

      With this prompt in place, users who have not configured CLI auth will be prompted to do so before attempting to use any CLI commands that require authentication. This will help prevent errors and improve the overall user experience.

      Here is the example:

      [node1]> cluster init  --cluster-name mycluster --meta-storage-node node1 --cmg-node node1 --authentication-enabled --basic-auth-login admin --basic-auth-password password
      Cluster was initialized successfully
      [node1]> Set ignite.auth.basic.login to admin? [Y/n]
      [node1]> Set ignite.auth.basic.password to password? [Y/n]
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            aleksandr.pakhomov Aleksandr
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: