2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-09-11 12:06:24 +00:00
Commit Graph

21 Commits

Author SHA1 Message Date
Vinícius Ferrão 0d6929c427 fix(plugins): mask passwords in plugin log messages
Six modules wrote passwords to their own log and diagnostic messages,
outside the daemon redaction pipeline. The z/VM plugin logged each
smcli command line through printSyslog, with the disk read, write and
multi passwords, the image password, the provision root password and
the page volume parm disk password, passed the real disk passwords to
checkSSH_Rc, which echoes the command to syslog and to the client on
failure, and logged raw directory entries whose USER and MDISK
statements carry the logon and disk passwords. The bmcconfig plugin
logged the BMC password in its attribute report, in syslog and in the
command response. The energy plugin logged the HCP password in a
verbose message, and the CIM utilities dumped the whole HTTP request,
with its basic authorization header, to the verbose callback. The PPC
configuration module logged the HMC, FSP and BPA passwords in its
verbose credential reports.

Mask the passwords in the logged text. The executed commands keep the
real values. The page volume log string is built by operand position,
so a decoy value in another operand cannot divert the mask. The
checkSSH_Rc calls receive the masked command string, as the routine
documentation asks. Add redact_directory_entry to the z/VM utilities.
The routine masks the USER, IDENTITY and IDENT logon password, the
MDISK passwords after the access mode in the range form and in the
DEVNO, V-DISK and T-DISK forms, the APPCPASS statement, and the
keyword password assignments in the short and the full spelling. The
match separators stay on one line, so a record without passwords never
masks the record below it, and one or more comment stars do not hide a
credential record from the rules. The COMMAND statement masks whole,
because it can start any CP command with an inline password. Every directory query sink logs
through it,
and the clone loops redact the query output at the source, because the
failure checker and the retained disk list reuse the text. The
directory helpers keep their raw return value for the callers and hand
a redacted copy to the failure checker. Every error branch that echoes
a fetched record after the output check does so through the redactor,
because a password can spell an error word and trip the check: the
directory fetch, the mini disk keyword fetch, and the four disk list
callers. The CIM dump masks
the authorization header. The bmcconfig report now names the password
state, set or missing, which the report needs for diagnosis.
2026-09-02 01:28:19 -03:00
GONG Jie bbc80d51dd Remove trailing spaces in file xCAT-server/lib/xcat/plugins/energy.pm 2017-12-31 23:59:59 +00:00
XuWei 61f1fd37f9 fix issue 2710, print usage when run renergy node without option 2017-04-13 01:36:43 -04:00
Mark Gurevich 0a3fbd8d51 perltidy all perl files 2016-07-20 11:40:27 -04:00
ertaozh 2be4d11d9b renergy support for IBM power s822LC, add power_reading and temp_reading options 2015-11-18 03:40:06 -05:00
WangXiaoPeng d6feb34e0c defect 4657: PCM has requirement that the user/password of fsp are different with the ones of ipmi for ppcle node. That means our renergy command should read 'passwd:fsp' first, if it does not exist, then use the default passwd 'admin/admin' instead of use the password from ipmi. 2015-04-28 08:31:18 -04:00
WangXiaoPeng e215c27a3c energy.pm, remove the stanby fsp/bmc check since CIM interface has problem to do it. So that means if some attributes cannot be supported on stanby fsp, there might be issues. Will fix it when really encounter it. 2015-04-22 23:47:39 -04:00
WangXiaoPeng 358e83a5bb defect 4615: For renergy command against P8 node, support the concurrent performing node communication for multiple nodes. 2015-03-27 07:23:24 -04:00
daniceexi 56d468f669 defect 4603: fix the code logic of how to get the fsp of cec 2015-03-13 04:53:32 -04:00
daniceexi d3b729dadc energy.pm - changed the xml output format of renergy command which using energy.pm (p8 support) 2015-01-29 04:00:13 -05:00
daniceexi 5131f51509 Remove the capping related information from man page and usage 2014-12-29 03:00:32 -05:00
daniceexi 175ac75c8e Add man page for P8 energy; some minor fixes in CIMUtils.pm and energy.pm 2014-12-26 05:58:04 -05:00
ertaozh b8ab60014a [Energy management support for P8 with CIM] enhance of support to query power,fanspeed,cpuspeed,temp attributes 2014-12-24 01:55:57 -05:00
daniceexi 7f23e82638 add the code to get ip of hcp from hostname 2014-12-24 02:54:47 -05:00
daniceexi 32bddb1087 add the support for syssbpower sysIPLtime 2014-12-23 11:02:40 -05:00
daniceexi e21cad3891 Merge branch 'master' of ssh://daniceexi@git.code.sf.net/p/xcat/xcat-core 2014-12-23 10:13:02 -05:00
daniceexi 378c162578 check stanby fsp ip 2014-12-23 10:12:54 -05:00
ertaozh 673372434d [Energy management support for P8 with CIM] support to query power,fanspeed,cpuspeed,temp attributes 2014-12-23 05:34:53 -05:00
daniceexi 62b04f0d6c [Energy management support for P8 with CIM] support to display cim xml payload if specifying -V 2014-12-23 03:02:43 -05:00
daniceexi 06115c9cb8 more code change for P8 energy support 2014-12-23 02:42:16 -05:00
daniceexi a9cc379b7f code checkin for P8 energy support with CIM 2014-12-22 08:25:43 -05:00