You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support client authn/authz to enable privileged execs #4220
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:
inputEngineConfigInput {
EnablePrivilegedExecs Boolean!
// more setting could be exposed in the future such as garbage collection config
}
typeEngineConfigPayload {
EnablePrivilegedExecs Boolean!
}
extendtypeMutation {
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.
Activity