Skip to content

privilege elevation #1115

@rsteube

Description

@rsteube

Request

Some completions need elevated privileges (sudo, run0).
There's a whole load of issues with this:

  • security (!)
  • files/folders created with different owner as side-effect
  • authentication
  • remote invocation

Proposed solution

Maybe add something like Action.Elevate(user) to add an indicator to Context (ENV for compability?).
Then have a detached mechanism for privelege elevation (be it sudo, run0, or whatever).
Might work for commands will break any core os related functions.

Anything else?

related carapace-sh/carapace-bin#2708

Metadata

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