Skip to content
Snippets Groups Projects

Require group owner to have linked SAML before enabling Group Managed Accounts

1 unresolved thread

What

Prevent owner from enabling Group Managed Accounts if they haven't first linked SAML to their account.

Why

Fixes #39183 (closed) and #38021 (closed)

Allows us to proceed with rolling out Group Managed Accounts

SSO Enforcement would otherwise force them to go through the SAML linking process to access the group, which with Group Managed Accounts would result in a new user being created. Since this new user would be created as a guest the original owner would have no further control over the group and would be locked out.

Why not

In a way this is a temporary fix until we can convert users into group managed accounts.

Another workaround might be to detect if the user is signed in as an owner on the old account and set the new account up as an owner. This might be more smooth, but is more complicated and would need careful thought from a security perspective to avoid the wrong user taking over as owner.

Screenshots

screenshot_2019-12-12-13_37_38

Acceptance criteria

Conformity

Availability and Testing

Edited by Joe Randazzo

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
  • Oswaldo Ferreira
  • Thanks @jamedjo, couple minor suggestions and a question, thanks!

  • 🤖 GitLab Bot 🤖 changed milestone to %12.7

    changed milestone to %12.7

  • added 1 commit

    • f1de3ef0 - Enabling group-managed-accounts needs linked SAML

    Compare with previous version

  • added 1 commit

    • c418a2cf - Enabling group-managed-accounts needs linked SAML

    Compare with previous version

  • I've split the shared examples for CreateService/UpdateService up into two sections, allowing us to exclude the tests for enabling Group Managed Accounts form the CreateService. In the future we might move it back if this behaviour returns to allowing owners to enable without linking.

  • Heinrich Lee Yu resolved all threads

    resolved all threads

  • Thanks @jamedjo, this looks good to me. Just one optional suggestion.

    Could you also rebase since this is already behind by 900 commits? Thanks

  • James Edwards-Jones added 1069 commits

    added 1069 commits

    Compare with previous version

  • added 1 commit

    • 63453dde - Enabling group-managed-accounts needs linked SAML

    Compare with previous version

  • James Edwards-Jones resolved all threads

    resolved all threads

  • Heinrich Lee Yu assigned to @sliaquat and unassigned @engwan

    assigned to @sliaquat and unassigned @engwan

  • Heinrich Lee Yu approved this merge request

    approved this merge request

  • Also, do you think we should add a note to https://docs.gitlab.com/ee/user/group/saml_sso/#group-managed-accounts mentioning this requirement?

    I guess it's not really necessary as the user would realize this from the error message after trying to enable the feature.

  • James Edwards-Jones added 757 commits

    added 757 commits

    Compare with previous version

  • added 1 commit

    • 6b3f3bea - Enabling group-managed-accounts needs linked SAML

    Compare with previous version

  • James Edwards-Jones added 152 commits

    added 152 commits

    Compare with previous version

  • Désirée Chevalier approved this merge request

    approved this merge request

  • Heinrich Lee Yu resolved all threads

    resolved all threads

  • Thanks @dchevalier2!

    @jamedjo can you rebase one more time then I'll merge? :slight_smile:

  • James Edwards-Jones added 634 commits

    added 634 commits

    Compare with previous version

  • Heinrich Lee Yu enabled an automatic merge when the pipeline for 2b9997d5 succeeds

    enabled an automatic merge when the pipeline for 2b9997d5 succeeds

  • I set MWPS :thumbsup:

  • Heinrich Lee Yu mentioned in commit 6268ee84

    mentioned in commit 6268ee84

  • James Edwards-Jones mentioned in merge request !22759 (closed)

    mentioned in merge request !22759 (closed)

  • Jennifer Louie mentioned in commit e8d88f9b

    mentioned in commit e8d88f9b

  • mentioned in issue #212150 (closed)

  • Joe Randazzo changed the description

    changed the description

  • Please register or sign in to reply
    Loading