-
Notifications
You must be signed in to change notification settings - Fork 0
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-10996] Remove restrict-provider-access feature flag #37
base: main
Are you sure you want to change the base?
[PM-10996] Remove restrict-provider-access feature flag #37
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3 file(s) reviewed, 3 comment(s)
Edit PR Review Bot Settings | Greptile
return true; | ||
} | ||
|
||
// Provider users can only access organization ciphers if RestrictProviderAccess is disabled | ||
if (await _currentContext.ProviderUserForOrgAsync(organizationId)) | ||
{ | ||
return !_featureService.IsEnabled(FeatureFlagKeys.RestrictProviderAccess); | ||
} | ||
|
||
return false; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logic: Verify that removing this check doesn't inadvertently allow provider users to access organization ciphers when they shouldn't
return true; | ||
} | ||
|
||
// Provider users can only access all ciphers if RestrictProviderAccess is disabled | ||
if (await _currentContext.ProviderUserForOrgAsync(organizationId)) | ||
{ | ||
return !_featureService.IsEnabled(FeatureFlagKeys.RestrictProviderAccess); | ||
} | ||
|
||
return false; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logic: Confirm that removing this condition doesn't unintentionally grant access to unassigned ciphers for provider users
🎟️ Tracking
PM-10996 Remove restrict-provider-access feature flag
PM-12055
📔 Objective
Remove the restrict-provider-access feature flag and any references.
Important
This should only be merged after the corresponding Clients PR has been fully released to all clients.
⏰ Reminders before review
🦮 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 changesGreptile Summary
This pull request removes the 'restrict-provider-access' feature flag, simplifying authorization logic for provider users in the CiphersController and updating related tests.
src/Core/Constants.cs
src/Api/Vault/Controllers/CiphersController.cs
to remove feature flag checkstest/Api.Test/Vault/Controllers/CiphersControllerTests.cs
to ensure providers cannot edit ciphers as admins