When running a CD pipeline using Selective Stage option AND the user only selects some stages, then the permissions required for the non-selected-stages should NOT be evaluated.
Currently Harness evaluates the users permissions for ALL stages (& their environments) even if the stage is de-selected.
For example consider:
  • a pipeline with two stages (Alpha and Bravo) with hard-coded environments (eg Alpha -> Pre-Prod and Bravo -> Prod).
  • a user who doesn't have permissions on Pre-Prod runs the pipeline selecting ONLY stage Bravo.
Harness evaluates the permissions for BOTH Alpha and Bravo stages (even though Alpha is not selected) and refuses to run the pipeline because the user doesn't have permissions on Alpha.
Workaround: Either i. Grant the user access to ALL environments, ii. Create two separate pipelines one for Alpha and one for Bravo.
It would be better if Harness only evaluated the permissions for the Stages that were actually selected.