Re: [yocto] Give access token to yocto build. (pass environment variable to bitbake)

2023-04-14 Thread Mikko Rapeli
Hi, On Fri, Apr 14, 2023 at 09:37:05AM +0200, Leon Woestenberg wrote: > On Fri, Apr 14, 2023 at 9:24 AM Mikko Rapeli > wrote: > > > > > The environment variables and thus secrets are easily leaking into build > > logs so I would not use them. > > > > Instead, I would use .netrc for git and

Re: [yocto] Give access token to yocto build. (pass environment variable to bitbake)

2023-04-14 Thread Leon Woestenberg
On Fri, Apr 14, 2023 at 9:24 AM Mikko Rapeli wrote: > > The environment variables and thus secrets are easily leaking into build > logs so I would not use them. > > Instead, I would use .netrc for git and anything using curl (http > fetcher). subversion caches passwords into ~/.subversion

Re: [yocto] Give access token to yocto build. (pass environment variable to bitbake)

2023-04-14 Thread Mikko Rapeli
Hi, On Thu, Apr 13, 2023 at 07:54:13PM +, Philippe Lafontaine via lists.yoctoproject.org wrote: > Greeting, > > I have a recipe that fetch a pre-built binary from a build machine using an > access token. Every developer will have different access token, for obvious > reason. Therefore,

Re: [yocto] Give access token to yocto build. (pass environment variable to bitbake)

2023-04-13 Thread Alexander Kanavin
Such access tokens are best placed into files which can be accessed only by processes that need them, same as private ssh keys. What executable is using it, specifically and with which protocol? Alex On Thu, 13 Apr 2023 at 21:54, Philippe Lafontaine via lists.yoctoproject.org wrote: > >

Re: [yocto] Give access token to yocto build. (pass environment variable to bitbake)

2023-04-13 Thread Leon Woestenberg
Hello Philippe, On Thu, Apr 13, 2023 at 9:54 PM Philippe Lafontaine via lists.yoctoproject.org wrote: > I have a recipe that fetch a pre-built binary from a build machine using an > access token. Every developer will have different access token, for obvious > reason. Therefore, the token

[yocto] Give access token to yocto build. (pass environment variable to bitbake)

2023-04-13 Thread Philippe Lafontaine via lists.yoctoproject.org
Greeting, I have a recipe that fetch a pre-built binary from a build machine using an access token. Every developer will have different access token, for obvious reason. Therefore, the token cannot be hard coded in the recipe. Our current build setup uses a docker container (crops/poky). Our