#311  File Job secret
Closed
bufferUnderrun opened 3 years ago

Hi,

Job secret are mostly not so long string used for password and others (passphrase...).

Inside my job, i've to connect to ssh server using a private key. Some private key contains \r\n like the putty format under windows.

So this command does not work due to \r\n

echo "@secret:id_rsa_ppk@" >> id_rsa.ppk

Do you have a simple and secure way to retrieve my private ssh key ?

Thanks

Robin Shen commented 3 years ago

How about calling PowerShell and write the file using here string?

bufferUnderrun commented 3 years ago

Not working cause job secret contains \r\n which is handle like command. Found another way so i close

Robin Shen changed state to 'Closed' 3 years ago
Previous Value Current Value
Open
Closed
issue 1 of 1
Type
Question
Priority
Normal
Assignee
Issue Votes (0)
Watchers (2)
Reference
onedev/server#311
Please wait...
Page is in error, reload to recover