[MXS-3896] When reading password from stdin via redirect, interactive use is no longer possible Created: 2021-11-30  Updated: 2022-01-04  Resolved: 2022-01-04

Status: Closed
Project: MariaDB MaxScale
Component/s: maxctrl
Affects Version/s: 2.4.18, 2.5.16, 6.1.4, 6.2.0
Fix Version/s: 6.2.1

Type: Bug Priority: Trivial
Reporter: Hartmut Holzgraefe Assignee: markus makela
Resolution: Incomplete Votes: 0
Labels: None

Issue Links:
Relates
relates to MXS-2368 maxctrl requires password on command ... Closed

 Description   

Since MXS-2368 was closed it is possible to read the password from stdin via input redirect. This only works out for script use where commands are either given on the command line, or are passed in via the same redirected input stream.

The feature is of no use for the interactive use case.



 Comments   
Comment by markus makela [ 2021-12-06 ]

The case where both the password and commands are read from the standard input doesn't work correctly. In version 6 the sending of commands via the standard input was improved so that it can be reliably used for command execution. Unfortunately the way the password is read from the standard input when the input is redirected seems to consume the whole input, interpreting any commands that follow it as a part of the password.

Comment by markus makela [ 2022-01-04 ]

hholzgra can you describe the actual problem a bit more? The way I understand the description is that the input redirection method only works when the stdin is redirected from somewhere else and the password is read from a non-interactive input. If the input is redirected for the password, how would you redirect it back to the interactive terminal?

Comment by markus makela [ 2022-01-04 ]

Needs more details, closing until we get those.

Generated at Thu Feb 08 04:24:44 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.