2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-09-09 05:00:44 +00:00
Commit Graph

24 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
Victor Hu 8829e3dca7 Sync up the logging output 2017-09-07 15:50:11 -04:00
Victor Hu f5b295d802 Update the message that returns back to the BMC in discovery to
something that is more helpful to debug the problem
2017-09-07 15:14:47 -04:00
Victor Hu 8818223af0 Improve the debug message when bmc value cannot be obtained
in the openbmc or ipmi table in xCAT
2017-06-27 16:14:00 -04:00
ertaozh 69f38cbb87 Update bmcsetup related code for OpenBMC 2017-05-09 04:03:41 -04:00
ertaozh fe8e4b800c enhance bmcsetup logic for openbmc 2017-05-05 04:33:09 -04:00
Mark Gurevich 0a3fbd8d51 perltidy all perl files 2016-07-20 11:40:27 -04:00
XuWei f2b9f6e94a to fix Issue 302, modified my_ip_facing and related functions 2015-11-12 00:33:03 -05:00
jbjohnso 248569fa64 Fix issues with bmcsetup
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16075 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-26 14:10:47 +00:00
jbjohnso f4373ce762 Have remoteimmsetup cope with the concept of distinct web/cli password versus ipmi password
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14544 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-04 15:58:41 +00:00
jbjohnso 5c5ebf2c42 Have bmcconfig.pm implement remoteimmsetup command
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14488 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-29 22:01:42 +00:00
jbjohnso 3df2492e9d Have getbmcconfig use the refactored password retrieval function, get ready for remoteimmsetup
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14481 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-29 20:30:22 +00:00
zhaoertao 40e144b4cc for item: clean up Utils.pm, the code in xCAT-server/lib/xcat/plugin/
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13467 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-09 04:07:40 +00:00
jbjohnso 03e418ee62 Fix bmcconfig issue with ipv6 networks in table
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12931 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-24 20:35:10 +00:00
jjhua 3a0121b97d For the places that open site table to read attributes, change to call xCAT::Utils->get_site_attribute instead
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12903 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-23 07:12:28 +00:00
jjhua e596348dc7 For the places that open site table to read attributes, change to call xCAT::Utils->get_site_attribute instead
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12854 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-22 02:54:17 +00:00
jbjohnso 83e79a0991 Add setting vlan tag to bmcsetup
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12431 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-01 20:38:39 +00:00
jbjohnso c8105a2349 Ensure even pickier password complexity rules are satsified by our random passwords
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11393 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-01-18 19:43:02 +00:00
jbjohnso 868d3229a3 Have getbmcconfig work with multi-chassis bmc config
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9509 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-05-06 20:11:07 +00:00
jbjohnso df0a17d223 -Have 'getAllNodeAttribs' honor nodecol
-Have MacMap use getAllNodeAttribs to allow for noderange described switches/inheritence
-Fix getbmcconfig to use a suffix that will pass complexity rules
-Fix getbmcconfig to pass through bmcport even if genpasswords is in use


git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7437 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-09-13 18:54:26 +00:00
jbjohnso 6a869e219b -Log when BMC address requested that cannot be resolved to an IP
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2932 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-03-18 17:26:37 +00:00
jbjohnso c2a12fa657 -Have getbmcconfig relay bmcport if set
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2825 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-03-02 19:26:21 +00:00
jbjohnso 45e3290cae -Server side implementation of BMC config host based authentication
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2088 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2008-09-06 22:41:48 +00:00
jbjohnso e68fe9d2db -Move xCAT-server and client to not have 2.0 in name for trunk
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1561 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2008-06-03 14:56:33 +00:00