foundriesio / fiotest

Tooling for doing device testing in a Foundries Factory
BSD 3-Clause "New" or "Revised" License
2 stars 2 forks source link

Super user privileges for a test - best practice? #14

Open ajlennon opened 5 days ago

ajlennon commented 5 days ago

Hi,

I am using fiotest to do some initial manufacturing testing/setup that for example includes programming the NVM on some controller ICs. So I need to provide super-user privilege to the command that does that.

I don't see any kind of "user: root" option in the test-spec.yml for individual tests

What would you recommend as the best way to achieve the above?

Thanks!

Alex

doanac commented 4 days ago

In a dev environment you'll probably have password-less sudo so that you could have your command prefixed with sudo.

ajlennon commented 4 days ago

Yes but this isn't a dev environment. This is supply chain security. The boards are out in China. I need things testing and programming and I need a zero trust framework for this x

doanac commented 4 days ago

run-on-host uses ssh. I'm not sure there's a very secure way you could do that. Maybe you could mount enough of /dev into the container so that you could program it from there?