Add SaaS guard on onboarding controllers
What does this MR do and why?
Add SaaS guard on onboarding controller
- route should not be available to non SaaS installations
How to set up and validate locally
Non SaaS
- Ensure GDK is not setup to simulate SaaS
- Disable
check_namespace_plan
inrails console
ApplicationSetting.first.update(check_namespace_plan: false)
- Restart GDK
- Attempt to navigate to any of the controller actions in this change and see it be denied.
SaaS (no behavior change)
- Ensure GDK is setup to simulate SaaS
- Enable
check_namespace_plan
inrails console
ApplicationSetting.first.update(check_namespace_plan: true)
- Restart GDK
- Attempt to navigate to any of the controller actions in this change and notice access to them is the same.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #411858 (closed)
Edited by Doug Stull