Lava needs a way to inject secrets (e.g. a token) into the device environment
Description
Environment
Activity
Walt Miner June 2, 2023 at 2:45 PM
@Jan-Simon Moeller @Corentin Labbe This is an old issue, can it be closed?
Corentin Labbe June 7, 2021 at 11:21 AM
For a still unknow reason, lab-baylibre-agl-1 does not get the env. (But qemu and agl lab get it).
Since my code fallback to lab-baylibre IP, it still works but I dont see any reason for the env do not be set on this worker.
Ryan Day May 28, 2021 at 1:24 PM
No problem. The = is now a :
And I also fixed two typos I made in the name PYARTIPROXY.
This is what it looks like now:
root@lava:/etc/lava-server/dispatcher.d# grep "" */env-dut.yaml
agl-core-lab-1/env-dut.yaml:purge: yes
agl-core-lab-1/env-dut.yaml:
agl-core-lab-1/env-dut.yaml:overrides:
agl-core-lab-1/env-dut.yaml: PYARTIPROXY_IP: 192.168.111.1
lab-baylibre-agl-1/env-dut.yaml:purge: yes
lab-baylibre-agl-1/env-dut.yaml:
lab-baylibre-agl-1/env-dut.yaml:overrides:
lab-baylibre-agl-1/env-dut.yaml: PYARTIPROXY_IP: 10.1.1.47
lab-baylibre-agl-qemu/env-dut.yaml:purge: yes
lab-baylibre-agl-qemu/env-dut.yaml:
lab-baylibre-agl-qemu/env-dut.yaml:overrides:
lab-baylibre-agl-qemu/env-dut.yaml: PYARTIPROXY_IP: 10.1.1.47
Corentin Labbe May 28, 2021 at 9:56 AM(edited)
I made an error, PYARTITPROXY should not have an "=" but be:
PYARTIPROXY: IP
Could you fix it ?
sorry for this mistake
thanks
Ryan Day May 27, 2021 at 1:46 PM
These changes were made on the AGL LAVA master docker image:
root@lava:/etc/lava-server/dispatcher.d# ls -lR
.:
total 0
drwxr-xr-x. 2 lavaserver lavaserver 49 May 27 13:42 agl-core-lab-1
drwxr-xr-x. 2 lavaserver lavaserver 49 May 27 13:41 lab-baylibre-agl-1
drwxr-xr-x. 2 root root 26 May 27 13:40 lab-baylibre-agl-qemu./agl-core-lab-1:
total 8
-rw-r--r--. 1 lavaserver lavaserver 28 May 12 21:35 dispatcher.yaml
-rw-r--r--. 1 root root 55 May 27 13:42 env-dut.yaml./lab-baylibre-agl-1:
total 8
-rw-r--r--. 1 lavaserver lavaserver 27 May 22 06:19 dispatcher.yaml
-rw-r--r--. 1 root root 51 May 27 13:41 env-dut.yaml./lab-baylibre-agl-qemu:
total 4
-rw-r--r--. 1 root root 51 May 27 13:40 env-dut.yaml
root@lava:/etc/lava-server/dispatcher.d# grep "" */env-dut.yaml
agl-core-lab-1/env-dut.yaml:purge: yes
agl-core-lab-1/env-dut.yaml:
agl-core-lab-1/env-dut.yaml:overrides:
agl-core-lab-1/env-dut.yaml: PYARTIPROXY_IP=192.168.111.1
agl-core-lab-1/env-dut.yaml:
lab-baylibre-agl-1/env-dut.yaml:purge: yes
lab-baylibre-agl-1/env-dut.yaml:
lab-baylibre-agl-1/env-dut.yaml:overrides:
lab-baylibre-agl-1/env-dut.yaml: PYYARTIPROXY_IP=10.1.1.47
lab-baylibre-agl-qemu/env-dut.yaml:purge: yes
lab-baylibre-agl-qemu/env-dut.yaml:
lab-baylibre-agl-qemu/env-dut.yaml:overrides:
lab-baylibre-agl-qemu/env-dut.yaml: PYYARTIPROXY_IP=10.1.1.47
Currently lava has no means to inject a secret token into the DUT enviroment.
Use-case: e.g. Token for upload to ARTIFACTORIAL