Skip to content

Draft: Step-up auth: Group protection (enforcement logic) [4/4]

What does this MR do and why?

Step-up auth: Protect group routes with step-up-enabled oauth provider

Step-up authentication is a security feature that requires additional verification for accessing sensitive data or performing critical actions.

In a previous MR, we introduced step-up authentication for the admin mode, see !171643 (merged).

In this MR, we extend the step-up authentication for group-specific routes. When a namespace (group) is protected with step-up authentication, then only group-specific routes for this group require step-up authentication.

This commit includes the following aspects:

  • Introduced a new concern EnforcesNamespaceStepUpAuthentication to encapsulate step-up authentication logic for namespaces.
  • Updated the Groups::ApplicationController to include new concern, ensuring all group-specific routes are protected.
  • Created a new controller Groups::StepUpAuthsController to handle step-up authentication flows for groups.
  • Modified existing controllers to integrate with the step-up authentication flow.
  • Added a new view for step-up authentication when users attempt to access group routes that require step-up auth.

Changelog: added

🛠️ with ❤️ at Siemens

References

Screenshots or screen recordings

Before After

How to set up and validate locally

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #474650

Edited by 🤖 GitLab Bot 🤖

Merge request reports

Loading