Skip to content

Support client authn/authz to enable privileged execs #4220

Closed

Description

@sipsma

In order to support privileged execs, it'd be preferable to gives operators a way of configuring access in a way that doesn't involve them forking the engine or starting it with custom args. Instead, there could be a way of configuring access to privileged execs at runtime and at a fine-grained, per-client basis.

This could take many forms. One first step could be to add support for something like an "Admin API" that exposes a simple on/off switch. This could just be a graphql api like:

input EngineConfigInput {
  EnablePrivilegedExecs Boolean!
  // more setting could be exposed in the future such as garbage collection config
}
type EngineConfigPayload {
  EnablePrivilegedExecs Boolean!
}
extend type Mutation {
  updateEngineConfig(in: EngineConfigInput): EngineConfigPayload!
}

This would start out with the dumbest possible "authorization hook", which is just either allow-all or deny-all. However, even this first step would require that we selectively expose this admin API to authorized users, so it would still require some form of authentication.

Then, in follow ups we could layer on smarter settings than just on/off like enabling access only to certain users connecting to the engine.

In terms of implementing authentication, the first thing that comes to mind is to use TLS certs to verify client identity (similar to what k8s does, I think?).

  • That may also be desirable in a few other areas like enabling encryption of secrets sent on the wire to remote runners.

The "design" above is intentionally extremely vague and high-level because the first question that needs to be answered is whether this is the right approach at all. If there's agreement on this general direction then the design can be fleshed out more.


Related:

Activity

  1. added
    area/engine
    on Dec 19, 2022
  2. locked and limited conversation to collaborators on Mar 24, 2026
  3. converted this issue into a discussion #12447 on Mar 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/enginekind/proposal

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions