Skip to content

Moved _finger_fail method to parent class. - #33106

Merged
basepi merged 1 commit into
saltstack:2015.8from
abednarik:abednarik_master_Finger_stacktrace
May 9, 2016
Merged

basepi merged 1 commit into
saltstack:2015.8from
abednarik:abednarik_master_Finger_stacktrace

Conversation

@abednarik

Copy link
Copy Markdown
Contributor

What does this PR do?

Method _finger_fail method from SAuth to AsyncAuth class to make method available
in both class and fix an issue where _finger_Fail is called inside AsyncAuth.

What issues does this PR fix or reference?

#32999

Previous Behavior

[ERROR   ] Exception in callback <functools.partial object at 0x7fbb68467158>
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/tornado/ioloop.py", line 600, in _run_callback
    ret = callback()
  File "/usr/local/lib/python2.7/dist-packages/tornado/stack_context.py", line 275, in null_wrapper
    return fn(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/tornado/ioloop.py", line 615, in <lambda>
    self.add_future(ret, lambda f: f.result())
  File "/usr/local/lib/python2.7/dist-packages/tornado/concurrent.py", line 232, in result
    raise_exc_info(self._exc_info)
  File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 1014, in run
    yielded = self.gen.throw(*exc_info)
  File "/usr/lib/python2.7/dist-packages/salt/crypt.py", line 433, in _authenticate
    creds = yield self.sign_in()
  File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 1008, in run
    value = future.result()
  File "/usr/local/lib/python2.7/dist-packages/tornado/concurrent.py", line 232, in result
    raise_exc_info(self._exc_info)
  File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 1017, in run
    yielded = self.gen.send(value)
  File "/usr/lib/python2.7/dist-packages/salt/crypt.py", line 563, in sign_in
    self._finger_fail(self.opts['master_finger'], m_pub_fn)
AttributeError: 'AsyncAuth' object has no attribute '_finger_fail'

New Behavior

[CRITICAL] The specified fingerprint in the master configuration file:
40:ea:b2:3e:7d:0c:70:ca:ee:3d:94:8c:da:6f:09:e6XXXXXX
Does not match the authenticating master's key:
40:ea:b2:3e:7d:0c:70:ca:ee:3d:94:8c:da:6f:09:e6
Verify that the configured fingerprint matches the fingerprint of the correct master and that this minion is not subject to a man-in-the-middle attack.
root@ubuntu:~# salt-minion -l error
[CRITICAL] The specified fingerprint in the master configuration file:
40:ea:b2:3e:7d:0c:70:ca:ee:3d:94:8c:da:6f:09:e6XXXXXX
Does not match the authenticating master's key:
40:ea:b2:3e:7d:0c:70:ca:ee:3d:94:8c:da:6f:09:e6
Verify that the configured fingerprint matches the fingerprint of the correct master and that this minion is not subject to a man-in-the-middle attack.

Tests written?

No

Method _finger_fail method from SAuth to AsyncAuth class to make method available
in both class and fix an issue where _finger_Fail is called inside AsyncAuth.
@basepi
basepi merged commit 8acc314 into saltstack:2015.8 May 9, 2016
@abednarik
abednarik deleted the abednarik_master_Finger_stacktrace branch May 9, 2016 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants