Skip to content
Snippets Groups Projects

Duo Workflow: Update sequence diagram with auth

Merged Jessie Young requested to merge jy-remote-execution-duo-workflow-auth into main
All threads resolved!

Why is this change being made?

This update clarifies the authentication mechanisms in use for each request.

Related discussion: gitlab-org&16549 (comment 2321842620)

Author and Reviewer Checklist

Please verify the check list and ensure to tick them off before the MR is merged.

  • Provided a concise title for this Merge Request (MR)
  • Added a description to this MR explaining the reasons for the proposed change, per say why, not just what
    • Copy/paste the Slack conversation to document it for later, or upload screenshots. Verify that no confidential data is added, and the content is SAFE
  • Assign reviewers for this MR to the correct Directly Responsible Individual/s (DRI)
    • If the DRI for the page/s being updated isn’t immediately clear, then assign it to one of the people listed in the Maintained by section on the page being edited
    • If your manager does not have merge rights, please ask someone to merge it AFTER it has been approved by your manager in #mr-buddies
    • The when to get approval handbook section explains the workflow in more detail
  • For transparency, share this MR with the audience that will be impacted.
    • Team: For changes that affect your direct team, share in your group Slack channel
    • Department: If the update affects your department, share the MR in your department Slack channel
    • Division: If the update affects your division, share the MR in your division Slack channel
    • Company: If the update affects all (or the majority of) GitLab team members, post an update in #whats-happening-at-gitlab linking to this MR

Commits


Edited by Jessie Young

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • assigned to @jessieay

  • Jessie Young added 1 commit

    added 1 commit

    • 826c8361 - Duo Workflow: Update sequence diagram with auth

    Compare with previous version

  • Jessie Young requested review from @DylanGriffith

    requested review from @DylanGriffith

  • 1 Message
    :book: This merge request might require a review from a Coach Engineer.

    Architecture Evolution Review

    This merge request might require a review from a Coach Engineer.

    The following files, which might require the additional review, have been changed:

    • content/handbook/engineering/architecture/design-documents/duo_workflow/_index.md

    If needed, you can retry the :repeat: danger-review job that generated this comment.

    Generated by :no_entry_sign: Danger

    Edited by ****
  • Author Developer

    Hey @DylanGriffith -

    Here are the updates to the remote execution sequence diagram that we discussed.

    One thing that making this diagram made me realize is that the scope of work I described in the composite identity epic was really about what is needed to replace regular OAuth tokens with Composite OAuth tokens for the "Local (IDE) execution" flow.

    Questions for you:

    1. I went through your proposed remote execution iteration plan and it was not clear to me if those plans mean that this sequence diagram is now out of date? If it is, can you help me update the request flow and I can update the corresponding auth mechanism for each piece?
    2. You will notice that there is no mention of CI_JOB_TOKEN in here. My assumption is that somewhere in this flow an actual CI job will be spun up to execute the Workflow. Is that correct? If so, that CI Job would be owned by the service account. And, as a result, the CI_JOB_TOKEN for the job would be a composite (CI JWT) token. We don't really need this CI Job Token for anything, but I am not aware of a way for CI jobs to skip creating a CI_JOB_TOKEN. If there will be no job in play, then the whole topic of job tokens is irrelevant.
  • Jessie Young marked the checklist item Provided a concise title for this [Merge Request (MR)][mr] as completed

    marked the checklist item Provided a concise title for this [Merge Request (MR)][mr] as completed

  • Jessie Young marked the checklist item Added a description to this MR explaining the reasons for the proposed change, per [say why, not just what][say-why-not-just-what] as completed

    marked the checklist item Added a description to this MR explaining the reasons for the proposed change, per [say why, not just what][say-why-not-just-what] as completed

  • Jessie Young marked the checklist item Assign reviewers for this MR to the correct [Directly Responsible Individual/s (DRI)][dri] as completed

    marked the checklist item Assign reviewers for this MR to the correct [Directly Responsible Individual/s (DRI)][dri] as completed

  • Jessie Young marked the checklist item For transparency, share this MR with the audience that will be impacted. as completed

    marked the checklist item For transparency, share this MR with the audience that will be impacted. as completed

  • Jessie Young mentioned in merge request !9350 (merged)

    mentioned in merge request !9350 (merged)

    • Resolved by Dylan Griffith

      You will notice that there is no mention of CI_JOB_TOKEN in here. My assumption is that somewhere in this flow an actual CI job will be spun up to execute the Workflow. Is that correct? If so, that CI Job would be owned by the service account. And, as a result, the CI_JOB_TOKEN for the job would be a composite (CI JWT) token. We don't really need this CI Job Token for anything, but I am not aware of a way for CI jobs to skip creating a CI_JOB_TOKEN

      @jessieay yes that's correct. The CI_JOB_TOKEN will exist and is necessary, at least, for cloning the repository at the start of the CI Job.

  • Dylan Griffith
  • Dylan Griffith requested changes

    requested changes

  • Jessie Young added 1 commit

    added 1 commit

    • a7006135 - Update sequence diagrams to reflect reality

    Compare with previous version

  • Jessie Young requested review from @DylanGriffith

    requested review from @DylanGriffith

  • Dylan Griffith approved this merge request

    approved this merge request

  • Dylan Griffith enabled automatic add to merge train when checks pass

    enabled automatic add to merge train when checks pass

  • Dylan Griffith resolved all threads

    resolved all threads

  • Dylan Griffith mentioned in commit 5db6a274

    mentioned in commit 5db6a274

  • Please register or sign in to reply
    Loading