Aleksandr created IGNITE-19109:
----------------------------------

             Summary: Ask user to setup the auth config after cluster init 
                 Key: IGNITE-19109
                 URL: https://issues.apache.org/jira/browse/IGNITE-19109
             Project: Ignite
          Issue Type: Task
          Components: cli
            Reporter: Aleksandr


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:

{code:bash}
[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]
{code}




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to