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.
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 messageFailed 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.