On Wed, May 14, 2025 at 8:26 PM Michael Peddie michael.peddie@gallagher.com wrote:
What does stored in the users profile mean? Sorry if that comes across as a stupid question, I can only think of the xmlrpc auth tokens and the regular auth tokens only visible in the admin page, which technically cannot have customised values without the use of a cli. If that isn't what you're referring to, then is there something I missed? I couldn't find anything else like that, not in the documentation or anything.
You can see the "remote artifact tokens" when you go to the me/ link in your instance. This is also available in admin interface (auth/user/<id>) at the bottom of the page. I don't think there is an API for that.
Regarding the modifications to use the worker environment variables, I added a few simple lines to download.py (https://gitlab.com/lava/lava/-/blob/master/lava_dispatcher/actions/deploy/do...), which are the following: tmp=[v for k, v in headers.items()] for val in tmp: self.logger.debug("SOMEVAL: %s" % str(os.path.expandvars(val)))
I just put them into the validation stage of the HttpDownload action, to test the output, and it appears to work just like it does in other tasks where it's performed (like in vcs.py in lava_dispatcher/utils/). For now I might just put them into the actual download stage so that they can be used as per my intention, and perhaps another time look into other solutions.
Good job. Send it for review.
Best Regards, Milosz