Skip to content

GitLab Next

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
GitLab
GitLab
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 35,877
    • Issues 35,877
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 1,263
    • Merge Requests 1,263
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Operations
    • Operations
    • Metrics
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.org
  • GitLabGitLab
  • Merge Requests
  • !22113

Merged
Opened Dec 19, 2019 by Diego Louzán@dlouzan🦆Contributor3 of 12 tasks completed3/12 tasks

Use POST for session disable endpoints (signout & admin mode disable)

  • Overview 9
  • Commits 3
  • Pipelines 7
  • Changes 9

What does this MR do?

This MR syncs the implementation for both admin mode disable and user signout REST endpoints from GET to POST:

  • In #34190 (closed) it was identified as a potential security issue of the admin mode feature that it is using GET for the session disable endpoint
  • This had originally been implemented as DELETE for the admin mode feature and modified on purpose to mimic the current behaviour of the devise controller for signout to use GET

In gitlab-foss#39708 (comment 196352617) it was agreed by all stakeholders that POST is a good option for signout.

Potential issues with the change

I don't foresee issues with the change in the admin mode endpoint, since it's feature flag-protected and unused outside of development. I wonder if any external integrations would have issues by switching the user logout from GET to POST.

QA flows should be ok since they rely on click events.

Related #34190 (closed), gitlab-foss#39708 (closed)

🛠 with ❤ at Siemens (/cc @bufferoverflow)

/cc @bufferoverflow @rpaik @jbroullon @reprazent @ifarkas

Screenshots

Does this MR meet the acceptance criteria?

Conformity

  • Changelog entry
  • Documentation (if required)
  • Code review guidelines
  • Merge request performance guidelines
  • Style guides
  • Database guides
  • Separation of EE specific content

Availability and Testing

  • Review and add/update tests for this feature/bug. Consider all test levels. See the Test Planning Process.
  • Tested in all supported browsers

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited Jan 14, 2020 by Bob Van Landuyt
Assignee
Assign to
Reviewer
Request review from
12.7
Milestone
12.7 (Past due)
Assign milestone
Time tracking
Reference: gitlab-org/gitlab!22113
Source branch: refactor/session-disable-with-post