Project

General

Profile

Actions

Bug #23731

closed

Setting to disable host key verification

Added by Daniel Lobato Garcia over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Target version:
Fixed in Releases:
Found in Releases:

Description

When you run Ansible against a host that is not yet in the foreman-proxy '.ssh/known_hosts', Ansible prompts you to verify the key (actually, ssh does).

Since Foreman REX does not have an interactive mode where I could say yes or no, I think a sensible approach would be the following:

  • Read '~foreman-proxy/.known_hosts' before running Ansible.
  • Add a playbook in foreman_ansible seeds that basically runs 'ssh-keyscan' and adds the public SSH of a host to known_hosts.
  • If the host is not found in .known_hosts (first Ansible run through the proxy), we prefix that to the regular playbook.
  • If it's found, we just run the playbook as always and would detect MITM.
Actions #1

Updated by Daniel Lobato Garcia over 6 years ago

  • Status changed from New to Assigned
  • Pull request https://github.com/theforeman/smart_proxy_ansible/pull/8 added
Actions #2

Updated by The Foreman Bot over 6 years ago

  • Status changed from Assigned to Ready For Testing
  • Assignee set to Daniel Lobato Garcia
  • Pull request https://github.com/theforeman/foreman_ansible/pull/176 added
Actions #3

Updated by Daniel Lobato Garcia over 6 years ago

  • Bugzilla link set to 1581211
Actions #4

Updated by Marek Hulán over 6 years ago

  • Translation missing: en.field_release set to 361
Actions #5

Updated by Anonymous over 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF