Skip to content

Comments

[AIRFLOW-7044] Add ability to specify host_key in connections extras for SSH#7713

Closed
aaronfowles wants to merge 4 commits intoapache:masterfrom
aaronfowles:AIRFLOW-7044
Closed

[AIRFLOW-7044] Add ability to specify host_key in connections extras for SSH#7713
aaronfowles wants to merge 4 commits intoapache:masterfrom
aaronfowles:AIRFLOW-7044

Conversation

@aaronfowles
Copy link

@aaronfowles aaronfowles commented Mar 13, 2020

This PR adds a new option in the SSH connection extras where you can specify base64 ssh-rsa public key of a host. The SSHHook constructor will then add this key to ~/.ssh/known_hosts if not present.

NB - this is my first time submitting to this project.

Issue link: AIRFLOW-7044

Make sure to mark the boxes below before creating PR: [x]

  • Description above provides context of the change
  • Commit message/PR title starts with [AIRFLOW-NNNN]. AIRFLOW-NNNN = JIRA ID*
  • Unit tests coverage for changes (not needed for documentation changes)
  • Commits follow "How to write a good git commit message"
  • Relevant documentation is updated including usage instructions.
  • I will engage committers as explained in Contribution Workflow Example.

* For document-only changes commit message can start with [AIRFLOW-XXXX].


In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.
Read the Pull Request Guidelines for more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant