Skip to content

Effects: set user id, group id of in-container process #547

Open
@roberth

Description

Some software - notably nix - may behave differently when it's uid 0.

Changing the "virtual" uid seems possible with OCI Container process.user.uid = <json int> (but docs are sparse?)
Get the number from derivation magic attribute __hci_effect_uid or something. (Don't think it had to prefix anything yet)
Same for gid. Maybe other such options as well?
Add __hci_effect_minAgentVersion?

Also / when done

  • handle the version check on the backend scheduler to solve the forward/backward compat problem instantly
  • create friendly aliases for these parameters in hercules-ci-effects

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions