Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(queue): Manual Judgment propagation (backport #4469) #4474

Merged

Conversation

jcavanagh
Copy link
Contributor

Manual Judgment was always propagated if the MJ stage was the first one in the pipeline, regardless of the value of propagateAuthenticationContext.

The code for backtracking through stages to find an AuthenticatedStage provider would improperly return any stage that did not have an ancestor, ignoring criteria for selecting a stage that should be propagating authentication.

Additionally, code in AuthenticationAware would mutate a SKIPPED MJ stage, copying the LastModifiedDetails value from the "real" MJ stage ancestor (or the root stage, as described above). This mutation is not necessary, and AuthenticationAware can just ignore it as it traverses ancestors of the current stage.

Manual Judgment was always propagated if the MJ stage was the first one in the pipeline, regardless of the value of `propagateAuthenticationContext`.

The code for backtracking through stages to find an `AuthenticatedStage` provider would improperly return any stage that did not have an ancestor, ignoring criteria for selecting a stage that should be propagating authentication.

Additionally, code in `AuthenticationAware` would mutate a `SKIPPED` MJ stage, copying the `LastModifiedDetails` value from the "real" MJ stage ancestor (or the root stage, as described above).  This mutation is not necessary, and `AuthenticationAware` can just ignore it as it traverses ancestors of the current stage.
@jasonmcintosh jasonmcintosh added the ready to merge Approved and ready for merge label Jun 20, 2023
@mergify mergify bot added the auto merged Merged automatically by a bot label Jun 20, 2023
@mergify mergify bot merged commit ba9ac0d into spinnaker:release-1.30.x Jun 20, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto merged Merged automatically by a bot ready to merge Approved and ready for merge target-release/1.30
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants