verm__ changed the topic of #buildbot to: A Software Freedom Conservancy Project | Buildbot-3.5.0 | docs: http://docs.buildbot.net/current/ | tutorial: http://docs.buildbot.net/current/tutorial | irclogs: https://libera.irclog.whitequark.org/buildbot
antranigv has quit [Quit: ZNC 1.8.2 - https://znc.in]
antranigv has joined #buildbot
aakashjain has joined #buildbot
aakashjain has quit [Ping timeout: 252 seconds]
antranigv has quit [Quit: ZNC 1.8.2 - https://znc.in]
antranigv has joined #buildbot
antranigv has quit [Quit: ZNC 1.8.2 - https://znc.in]
antranigv has joined #buildbot
antranigv has quit [Ping timeout: 256 seconds]
antranigv has joined #buildbot
antranigv has quit [Quit: ZNC 1.8.2 - https://znc.in]
antranigv has joined #buildbot
wielaard has quit [Quit: Leaving]
mjw has joined #buildbot
antranigv has quit [Quit: ZNC 1.8.2 - https://znc.in]
antranigv has joined #buildbot
aakashjain has joined #buildbot
aakashjain has quit [Ping timeout: 272 seconds]
mjw has quit [Killed (NickServ (GHOST command used by markw!~wielaard@gnu.wildebeest.org))]
wielaard has joined #buildbot
<razrdog[m]> and the file /opt/buildbot/secrets/buildbot-ssh-key does exist with 0600 file permissions and contains a deploy key configured in gitlab
<glogan> Owned by the same uid as the buildbot master?
<razrdog[m]> no the worker is a container running in kubernetes, the master is running on a VM.
<razrdog[m]> would file permissions be copied as part of it getting the key from master?
<glogan> No, but the master would need to be able to read the file
<razrdog[m]> I think I missunderstood. yes the file is owned by the same uid as buildmaster
<razrdog[m]> everything is running as user buildbot and i've ensured /opt/buildbot/** are owned by buildbot:buildbot
<glogan> Is the dir name being passed t on the secret provider the correct directory *inside* the container?
<glogan> That bit me for a while
<glogan> Since my containers are based o the upstream container
<razrdog[m]> I think that makes sense. so if my secrets on buildmaster are /opt/buildbot/secrets/ then i need to ensure that build worker is running in /opt/buildbot/ as well?
<razrdog[m]> my container is also based on upstream, this is my first time using a containerized worker so i'm guessing i'll have a few things to figure out
<glogan> Which are also containers
<razrdog[m]> <glogan> "https://github.com/opencast/..."; <- I'm reading through this now, thank you for the resources.
<razrdog[m]> after what you said about matching directories I tested just echoing a secret with shellcommand and that is also an issue on the container, while secrets work fine on non containerized workers.
<razrdog[m]> I'll report back what i figure out
<glogan> Yeah that sounds like a path issue to me.
<glogan> The upstream container's default root is... /builder I think?
<glogan> As long as you're mounting /opt/whatever to the exact same place inside the container it should work, but the uids might not match. If you don't mount it to the same place then it's probably paths.
<razrdog[m]> you were dead on! I've moved my build master to /builbot to match the worker container and I can now pass secrets
<glogan> Yay!
<razrdog[m]> Now that the secrets can be read I am getting another issue about the ssh key formatting. It seems to be the same issue marked here https://github.com/buildbot/buildbot/issues/5264 has anyone in here used or come across this? my secrets config does not contain the strip=True mentioned in the issue.