feat: Add host_keys parameter support to remote mirror API
Problem
Users cannot set SSH host keys via the remote mirror REST API. The host_keys parameter is accepted but silently ignored. Users must use the UI to manually set host keys.
Solution
Add host_keys as an optional parameter to the remote mirror create and update endpoints. This allows users to programmatically set SSH host key fingerprints when creating or updating remote mirrors.
Changes
- Add
host_keysas optional parameter to POST/projects/:id/remote_mirrors - Add
host_keysas optional parameter to PUT/projects/:id/remote_mirrors/:mirror_id - Update
RemoteMirrors::CreateServiceandRemoteMirrors::UpdateServiceto handlehost_keys - Update API documentation to reflect writable
host_keysparameter
Implementation Notes
-
host_keysshould accept an array of objects withfingerprint_sha256field - Validate fingerprint format before persisting
- Maintain backward compatibility with auto-detected keys
Related
- Addresses API limitation where
host_keyscannot be set programmatically