Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PM-15547] Revoke managed user on 2FA removal if enforced by organization policy #5124

Conversation

r-tome
Copy link
Contributor

@r-tome r-tome commented Dec 6, 2024

🎟️ Tracking

https://bitwarden.atlassian.net/browse/PM-15547

📔 Objective

When the two factor organization policy is enabled, then user should be revoked when they remove their 2FA provider if the policy applies to them.

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) or informed the documentation team

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • ❓ (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • ❌ (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

@r-tome r-tome marked this pull request as ready for review December 6, 2024 16:28
@r-tome r-tome requested a review from a team as a code owner December 6, 2024 16:28
@r-tome r-tome requested a review from JimmyVo16 December 6, 2024 16:28
Copy link

codecov bot commented Dec 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 42.96%. Comparing base (6d9c8d0) to head (0dbcb16).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5124      +/-   ##
==========================================
+ Coverage   42.91%   42.96%   +0.04%     
==========================================
  Files        1444     1444              
  Lines       66086    66101      +15     
  Branches     6056     6057       +1     
==========================================
+ Hits        28358    28397      +39     
+ Misses      36446    36422      -24     
  Partials     1282     1282              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

github-actions bot commented Dec 6, 2024

Logo
Checkmarx One – Scan Summary & Details39f1c610-c311-4223-b58e-f14dfb8139a0

New Issues

Severity Issue Source File / Package Checkmarx Insight
MEDIUM CSRF /src/Billing/Controllers/PayPalController.cs: 66 Attack Vector
LOW Missing_CSP_Header /src/Core/MailTemplates/Handlebars/AdminConsole/DomainClaimedByOrganization.html.hbs: 5 Attack Vector

Fixed Issues

Severity Issue Source File / Package
MEDIUM CSRF /src/Api/AdminConsole/Controllers/PoliciesController.cs: 70
MEDIUM CSRF /src/Billing/Controllers/RecoveryController.cs: 38
MEDIUM CSRF /src/Api/Billing/Controllers/OrganizationsController.cs: 52
MEDIUM CSRF /src/Billing/Controllers/StripeController.cs: 164
MEDIUM CSRF /src/Api/AdminConsole/Controllers/PoliciesController.cs: 91

JimmyVo16
JimmyVo16 previously approved these changes Dec 10, 2024
@r-tome r-tome merged commit 6da7fdc into main Dec 13, 2024
52 checks passed
@r-tome r-tome deleted the ac/pm-15547/disabling-two-factor-should-revoke-managed-user-when-policy-enabled branch December 13, 2024 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants