edgelesssys / constellation

Constellation is the first Confidential Kubernetes. Constellation shields entire Kubernetes clusters from the (cloud) infrastructure using confidential computing.
GNU Affero General Public License v3.0
939 stars 48 forks source link

cli: return a more helpful error message on MAA patch failure #3153

Closed msanft closed 3 months ago

msanft commented 3 months ago

Context

The updating of the MAA policy is not done via Terraform, hence failures cannot be debugged through the Terraform logs. We only return the status code currently, which is not very helpful for users running into a failure here. The response body should inform the user about which permissions are missing, hence it should also be shown to the user.

Proposed change(s)

Checklist

netlify[bot] commented 3 months ago

Deploy Preview for constellation-docs canceled.

Name Link
Latest commit 65f34103a75892e35755f33e2863fbbd7653c8d0
Latest deploy log https://app.netlify.com/sites/constellation-docs/deploys/6662f58bb848d00008498426
github-actions[bot] commented 3 months ago

Coverage report

Package Old New Trend
internal/maa 26.90% 25.90% :arrow_lower_right: