Add note about log messages to hardening salt docs

This commit is contained in:
Daniel A. Wozniak 2020-04-13 07:01:07 +00:00 committed by Daniel Wozniak
parent d5801df94b
commit de8c777be6
2 changed files with 5 additions and 1 deletions

View file

@ -71,6 +71,10 @@ Salt hardening tips
particularly sensitive minions. There is also :ref:`salt-ssh` or the
:mod:`modules.sudo <salt.modules.sudo>` if you need to further restrict
a minion.
- Monitor specific security releated log messages. Salt ``salt-master`` logs
attempts to access methods which are not exposed to network clients. These log
messages are logged at the ``error`` log level and start with ``Requested
method not exposed``.
.. _salt-users: https://groups.google.com/forum/#!forum/salt-users
.. _salt-announce: https://groups.google.com/forum/#!forum/salt-announce

View file

@ -1217,7 +1217,7 @@ class TransportMethods(object):
try:
return getattr(self, name)
except AttributeError:
log.error("Expose method not found: %s", name)
log.error("Requested method not exposed: %s", name)
else:
log.error("Requested method not exposed: %s", name)