-
Notifications
You must be signed in to change notification settings - Fork 181
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
[Fix] Wrong permissions on edit CDB #2665
Conversation
…star or manager).
…ux and used to set dynamic actions.
public/controllers/management/components/management/ruleset/ruleset-table.js
Outdated
Show resolved
Hide resolved
…o all components with clusterStatus prop.
…s.ts logic for posible combinations with & in resources.
public/controllers/management/components/management/ruleset/actions-buttons.js
Outdated
Show resolved
Hide resolved
public/controllers/management/components/management/ruleset/ruleset-table.js
Outdated
Show resolved
Hide resolved
public/controllers/management/components/management/ruleset/utils/columns.js
Outdated
Show resolved
Hide resolved
…it-cdb' into fix/2657-wrong-permissions-on-edit-cdb
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.
Hi @gabiwassan Testing this branch I found this bug when you set these policies to the roleYou're able to see all files but trying to access one of them throw this error With these policies
|
}, | ||
{ | ||
action: `${((this.props || {}).clusterStatus || {}).contextConfigServer}:read`, | ||
resource: `file:path:/etc/${this.props.msg}`, |
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.
Should it be the section
variable instead this.props.msg
? I checked the code and didn't found where it is coming from.
}, | ||
{ | ||
action: `${((this.props || {}).clusterStatus || {}).contextConfigServer}:read_file`, | ||
resource: `file:path:/etc/${this.props.msg}`, |
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.
Should it be the section
variable instead this.props.msg
? I checked the code and didn't found where it is coming from.
…ue. This resolve error when we create new list and dont have permissions to view all lists.
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.
great job @gabiwassan!! 👏 👏
The following issue was created #2692 for error 500 |
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
Hi team,
This PR resolves:
Note: Policy
cluster:status
is necessary to get configuration contextmanager
orcluster
Issue #2657