pulumi / pulumi-cloud-requests

Welcome to the public issue tracker for Pulumi Cloud (app.pulumi.com)! Feature requests and bug reports welcome!
10 stars 4 forks source link

Improve error message during stack selection when using a team token #289

Open aureq opened 1 year ago

aureq commented 1 year ago

When running a CI/CD pipeline, a team token is used to run the operations. The pipeline attempts to select the desired stack using pulumi stack select orgName/projectName/stackName. If the stack is NOT part of the team the token belongs to, then the error message Failed to select the stack 'orgName/projectName/stackName' is returned.

This error message is not descriptive enough to help a user or an operator to understand why the stack selection has failed.

It would be great if the error message was more descriptive, like Failed to select the stack 'orgName/projectName/stackName' because this stack is not included in Team teamName’s access set. (or a similar message).

That said, this descriptive error message should only be returned when both the token and the stack belong to the same Pulumi org, so personalized information are only displayed within the same org.

Affected areas

Contributing

Vote on this issue by adding a 👍 reaction.