DMTF / Redfishtool

A Python34 program that implements a command line tool for accessing the Redfish API.
Other
224 stars 68 forks source link

Read password from file (or prompt for it) #95

Closed ipilcher closed 3 years ago

ipilcher commented 3 years ago

AFAICT, Redfishtool currently requires that the Redfish password be passed as a command-line argument. This is a well known anti-pattern, as it potentially allows anyone who can view the process list on the system to view the password.

At a minimum, Redfish tool should be able to read the password from a file, which is useful for scripting. It would be nice if it were able to prompt for the password, for more "one off" usage.

ipilcher commented 3 years ago

Oh $DIETY. I see now that I can read it from a config file. Sorry about the noise!