Running into an issue with using Ed25519 ssh keys as a secret in builds.
You can add the key with no issues, but then builds will put the key
into `id_rsa` which appears to confuse ssh, since the file indicates
that it is an rsa key rather than an ed25519 key, which is stored in
`id_ed25519` by default.
This mismatch appears to be causing errors when the key is loaded in
builds. Only happens on private repos as far as I can tell.
> Load key "/home/build/.ssh/id_rsa": invalid format
Obviously, this is easy to workaround in multiple different ways, but
figured I'd bring it up as a potential issue since it is non-obvious
what is happening.
-gildarts
On 2022-07-01 10:14 AM, Simon Ser wrote:
> FWIW putting an Ed25519 key in id_rsa works just fine on builds.sr.ht for me.
Now I'm wondering if there is something wrong with my private key. It
will allow me to login to services just fine from my computer, but if I
login to the builds session and add the private key to a file myself, it
still doesn't work.
Will recheck with a key generated with a different method.
Okay, never mind. Something is funky with how my keys are getting
copied. Looks like it is putting the wrong key format into the
clipboard. Looked right at first glance, but isn't long enough.
-gildarts