Project

General

Profile

Feature #26271

Use middlewared to get public key and scan remote ssh key

Added by Peter Southwell about 1 year ago. Updated about 1 year ago.

Status:
Resolved
Priority:
Nice to have
Assignee:
William Grzybowski
Category:
Middleware
Target version:
Estimated time:
Severity:
New
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
Yes
Needs Merging:
Yes
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:

Description

/keyscan

/public-key

http://FREENASURL/storage/replications/public-key/

http://FREENAS/storage/replications/public-key/

Should return something in Json containing data like:

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCu1zC4tdQe5khqylSj/wj7+KUSutecfUIIECQeydFrf9qxY6TazobJGzA/vy5qxLI/8vjrAew6JdRt85kaoIEseFxFcJ7VVkRmb6i9j/r65Lu+4p7AXPrqwQYxXO6WaFSIoQHYh00pA+WIvIa00GtsMJ7Aw4Hh4COS/YDxM7tW3koynRSPl4n8MFiHoM3m4SV2nM/HvRjcRBvHk0+SULDlaLiYkzEu1vxdxZ2GAVyQPUM9OwzK4eQgTAT9VLzGUrKAIdoCBa25aoeXl3dxEXybCnhgofBcNuu0AHi5t69UA5xBjXrXXS8pARf45KCM21AOsICna/mR1SUtTcjb5tgF Key for replication

Associated revisions

Revision 357819f7 (diff)
Added by William Grzybowski about 1 year ago

fix(middlewared/repl): make `ssh_keyscan` public

Ticket: #26271

Revision 0719d544 (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared/repl): add method to get public key

Ticket: #26271

Revision bc4f9913 (diff)
Added by William Grzybowski about 1 year ago

feat(gui): use middlewared to get public key and scan remote ssh key

Ticket: #26271

History

#1 Updated by Dru Lavigne about 1 year ago

  • Status changed from Untriaged to Unscreened

#2 Updated by William Grzybowski about 1 year ago

  • Status changed from Unscreened to Ready For Release
  • Priority changed from No priority to Nice to have
  • Target version changed from Master - FreeNAS Nightlies to 11.1-BETA1

#3 Updated by William Grzybowski about 1 year ago

Websocket calls:

root@freenas:~ # midclt call replication.ssh_keyscan localhost 22
localhost ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6WJFBllvSUuF4xC8JI2YaQ6jS2JJYdT6sOS4fESkPrifh/hq72IUNkymx6kXo6Qlj6/x0+Mx7Vb3radGq8HjG5r+USkO9J4fWAqaRH+svptE8OMRDDLIEAIr2xbI6H3Vjc+5sRd8tufddILkDQcz5c+p5VLla8j371XYXjskwp49/IKoYRSqPTDrUULc09JVQMLTLGZWUIQmMc2R38I70opM8vO1itugoKs2o+qMJh8nc1kBRx6aKso2N1L6El9YIYeFeGVkSV2hJScFxDtIo6WoNJbeVCsWTlVNSMSzcaOyLpNblaL8z43K2NfR0p/iI7ieO0Rm+lCPY2ci8d+NB
localhost ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBHJ1jne0dUxYP14ux/vJacE1LCDnv9xtF8l5ibMkXZieeKzVvKPBwiCw12A/B0cpSAvnM5X9Sg9I2TcJOEG6smA=
localhost ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDDdaMbory+wfLRgm8b11mKylvMqzZ2b6RTUB/o+y+DJ

root@freenas:~ # midclt call replication.public_key
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDK8eP2UUAktvb3nCVspTIJXJISMu5XpmWUfybbVdBvmhV2n6otAVGbB9lHTJP5iuXOhNyrfs0B4fXC5ftJoeKVt1Mn+xPg7Qg5rexUAwghxG3sWOchS2HqTs2DdmyDQziMcvQVqi0ZDfZV24pduVJ+jlmWmIxHZd4ILA9p6G3bh/s/Vu1yPVhONu64YfdR/Bq5OJpIRhpbIYVAYjKlXXnkXscZtyxaXnCd5mNI4MbzLsnwEeEXUTjAZIaShTJnW4Oc3tyDAnoWoeyM3kQJ2DSYoAEwwCUDqo1+MAEgBH5P2D6fm+XIvebdd3PcGDre7K2la4uTpN7RKTsQeMB4X7it Key for replication

#4 Updated by Dru Lavigne about 1 year ago

  • Subject changed from ssh token explorer APIs for public and remote systems for use in Replication Tasks to Use middlewared to get public key and scan remote ssh key

#5 Updated by Bonnie Follweiler about 1 year ago

  • Needs QA changed from Yes to No
  • QA Status Test Passes FreeNAS added
  • QA Status deleted (Not Tested)

Test Passed on FreeNAS-11-MASTER-201710200502

#6 Updated by Dru Lavigne about 1 year ago

  • Status changed from Ready For Release to Resolved

Also available in: Atom PDF