-
Notifications
You must be signed in to change notification settings - Fork 8.5k
refactor(write restricted dashboards): Assign clear error messages for access control errors #248062
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
base: main
Are you sure you want to change the base?
Conversation
...ck/platform/plugins/shared/security/server/saved_objects/saved_objects_security_extension.ts
Outdated
Show resolved
Hide resolved
...ck/platform/plugins/shared/security/server/saved_objects/saved_objects_security_extension.ts
Outdated
Show resolved
Hide resolved
|
@elasticmachine merge upstream |
|
Pinging @elastic/kibana-security (Team:Security) |
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]
|
jeramysoucy
left a comment
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.
LGTM, just one consideration for enforceAccessControl which can deny based on RBAC.
| new Error( | ||
| `Access denied: Unable to manage access control for ${typeList}. The "manage_access_control" privilege is required to change access control of objects owned by another user.` | ||
| ) |
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.
What if they are denied access because they now lack RBAC privs?
| new Error( | ||
| `Access denied: Unable to manage access control for ${typeList}. The "manage_access_control" privilege is required to change access control of objects owned by another user.` | ||
| ) |
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.
Same as above, what if they are denied access because they now lack RBAC privs?
|
@SiddharthMantri Could you update the PR description? |
Closes #237817
Summary
Summarize your PR. If it involves visual changes include a screenshot or gif.
Checklist
Check the PR satisfies following conditions.
Reviewers should verify this PR satisfies this list as well.
release_note:breakinglabel should be applied in these situations.release_note:*label is applied per the guidelinesbackport:*labels.Identify risks
Does this PR introduce any risks? For example, consider risks like hard to test bugs, performance regression, potential of data loss.
Describe the risk, its severity, and mitigation for each identified risk. Invite stakeholders and evaluate how to proceed before merging.