]
Darran Lofthouse commented on WFCORE-869:
-----------------------------------------
This must not change existing behaviour - having an administrator execute a single command
or a file full of commands but not entering an interactive shell session is a valid use
case.
My recommendation is that there is an additional flag '--silent' to completely
disable prompting the user for security questions.
CLI in non-interactive mode should not ask for certificate
acceptance
---------------------------------------------------------------------
Key: WFCORE-869
URL:
https://issues.jboss.org/browse/WFCORE-869
Project: WildFly Core
Issue Type: Feature Request
Components: CLI
Affects Versions: 2.0.0.Alpha12
Reporter: Bartosz Spyrko-Ĺmietanko
Assignee: Alexey Loubyansky
When the management interface is secured using a SSL certificate and the certificate is
not trusted by the client, user is shown following dialog to accept the certificate:
{{Accept certificate? [N]o, [T]emporarily, [P]ermenantly : }}
The prompt is also shown in non-interactive mode (using --file or --command). If the CLI
call is a part of an automated process, this can lead to the process being blocked waiting
for user input that never happens.
If the jboss-cli is executed in non-interactive mode and the SSL certificate is not
trusted, process should immediately fail with appropriate message. Username/password
authentication prompt already works in this way.