There are numerous way why supporting a CLI based representation which in the end will make it up into /etc/curlrc
As mentioned in the subtasks users have found that there are missing features which tend to break operation in certain environments.
- Use source interace for all calls curl is involved to force traffic on a given interface
- disable SSH host key checking when e.g. uploading files via commit-archive
- Use source interface in DNS lookups (imagine split-horizon DNS deployments)
All should be manifested in a new CLI node under system
system { options { # I do not want to lock in on curl for this node http-client { source-interface eth0 source-address 1.1.1.1 } ssh-client { source-address 1.1.1.1 private-key { name foo { key sdfklasjdhfjks= type rsa } } } } }
I do not know if it's possible to preload SSH keys or not in curl - need to check. Another idea would be a no-host-key-validation option to disable it.