~sircmpwn/sr.ht-discuss

3 3

[builds.sr.ht] Ed25519 SSH Key Secret Issue

Details
Message ID
<635c9b3b-136c-9fb2-2b1d-20d649e71187@orbital.rocks>
DKIM signature
missing
Download raw message
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
Details
Message ID
<gsJ1SovOMhKj7n-NFDuLtJaROhFkZEsnHlk5Qe6zOMqvPPY3aCkIctmFSx5WlP4eRXn4DuNUBJHpkKPaq3WyJWFa9vEAtlBma5k-FBSS0QA=@emersion.fr>
In-Reply-To
<635c9b3b-136c-9fb2-2b1d-20d649e71187@orbital.rocks> (view parent)
DKIM signature
missing
Download raw message
FWIW putting an Ed25519 key in id_rsa works just fine on builds.sr.ht for me.
Details
Message ID
<5f72ee23-04e6-b2ed-8248-2a39cef732e7@fastmail.com>
In-Reply-To
<gsJ1SovOMhKj7n-NFDuLtJaROhFkZEsnHlk5Qe6zOMqvPPY3aCkIctmFSx5WlP4eRXn4DuNUBJHpkKPaq3WyJWFa9vEAtlBma5k-FBSS0QA=@emersion.fr> (view parent)
DKIM signature
missing
Download raw message
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.
Details
Message ID
<b92644f4-79a1-ef15-f6ec-09dec7cb3a1f@orbital.rocks>
In-Reply-To
<5f72ee23-04e6-b2ed-8248-2a39cef732e7@fastmail.com> (view parent)
DKIM signature
missing
Download raw message
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
Reply to thread Export thread (mbox)