Repository navigation
Add module run_as_user, cloud_access, and AgentInfo.system_users - #952
Open
Eliot Horowitz (erh) wants to merge 4 commits into
Open
Eliot Horowitz (erh) wants to merge 4 commits into
Eliot Horowitz (erh) wants to merge 4 commits into
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PadCBExAtZwq3PQVPcsEgo
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PadCBExAtZwq3PQVPcsEgo
Eliot Horowitz (erh)
requested review from
Ale Paredes (ale7714) and
Matt Vella (mcvella)
November 23, 2026 20:01
A ModuleCloudAccess message (mode plus api_key_id) instead of a boolean leaves room for choosing a specific API key later. Modes for now: machine (default, the machine's own key) and none. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PadCBExAtZwq3PQVPcsEgo
Moves AgentInfo.system_users to field 11, since main now uses 8-10. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PadCBExAtZwq3PQVPcsEgo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Proto support for two new per-module settings and for machines reporting their system users:
ModuleConfig.run_as_user(10): the system user the module process runs as. Empty means the same user as viam-server.ModuleConfig.cloud_access(11): aModuleCloudAccessmessage withmodeandapi_key_id. It selects which cloud API key viam-server puts in the module's environment (VIAM_API_KEY/VIAM_API_KEY_ID).ModuleCloudAccessMode:UNSPECIFIED(same asMACHINE),MACHINE(the machine's own key, today's behaviour) andNONE.api_key_idis reserved for choosing a specific key later and must be empty for now. It's a message rather than a boolean so that option can be added without another schema change.AgentInfo.system_users(11): the system users a machine reports that modules can run as, so app can offer them in a dropdown.All additive; no existing fields change.
Related PRs
viamrobotics/rdk#6833 and viamrobotics/app#14497 use these fields and depend on a release containing this change.
Notes for review
buf.buildwas unreachable from the environment this was written in, soapp/v1/robot.pb.goandgen/js/app/v1/robot_pb.{js,d.ts}were generated by running protoc with the same plugin versions.robot.proto, that setup reproduces main's committedrobot.pb.go,robot_pb.jsandrobot_pb.d.tsbyte for byte.buf lintandbuf breakingagainst main pass locally.Please re-run
make dist/bufto confirm there's no diff.