Integration tests with reduced privileges #2502
Labels
kind/todo
implementation task/epic for the skaffold team
meta/testing
Issues focused on testing Skaffold itself
priority/p3
agreed that this would be good to have, but no one is available at the moment.
Currently, integration tests always run with a user who has unconstrained privileges. This misses bugs that only manifest when a user has constrained privileges -- however enough privileges to reasonably expect a Skaffold run to succeed.
For example, #2495 describes a problem which only manifests when a user cannot list deployments at cluster scope.
It would be good to have some integration tests run with a reduced set of privileges, to catch these kind of issues early.
A reasonable restriction would be edit rights in a single namespace. This can be set up via [1]
and define a
RoleBinding
in namespacetbd
which references the default editClusterRole
:This new reduced-privileges-context can then be enabled with the new
--kube-context
flag.Depends on #2447
[1]: probably incomplete instructions
The text was updated successfully, but these errors were encountered: