Expose host keys for push mirrors
What does this MR do and why?
Contributes to #514005 (closed)
Problem
Host key fingerprints are not available via REST API.
Solution
Extend the remote mirror response to return host keys.
References
Add API endpoint to retrieve SSH public key for... (#514005 - closed)
Screenshots or screen recordings
How to set up and validate locally
-
Visit a project Settings -> Repository -> Mirroring repositories
-
Create a new push mirror
- For URL type
ssh://gitlab.com
- Click on "Detect host keys" button
- Click on "Mirror repository" button
- For URL type
-
Visit REST API endpoint for push mirrors (similar to http://gdk.test:3000/api/v4/projects/12/remote_mirrors)
-
Confirm that host keys fingerprints are present in the response
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #514005 (closed)
Edited by Vasilii Iakliushin