pulumi / pulumi-kubernetes-operator

A Kubernetes Operator that automates the deployment of Pulumi Stacks
Apache License 2.0
226 stars 54 forks source link

Don't discard the workspace pod when authz is misconfigured #740

Open EronWright opened 2 weeks ago

EronWright commented 2 weeks ago

The workspace controller terminates the workspace pod if the Install RPC method fails, to avoid leaving the pod in an undefined state. Unfortunately, this masks authz errors, because Install is the first call that is made. Usability would improve if the controller didn't discard the pod in that situation, accomplished either by special-casing the error handling or by calling the WhoAmI RPC method firstly.

cleverguy25 commented 2 weeks ago

Added to epic https://github.com/pulumi/pulumi-kubernetes-operator/issues/586