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

[AMBARI-24562] Protect the ClusterConfig resource so that only authorized users may have read-only access the data #2206

Merged
merged 1 commit into from Aug 30, 2018

Conversation

rlevas
Copy link
Contributor

@rlevas rlevas commented Aug 30, 2018

What changes were proposed in this pull request?

Protect the ClientConfig resource so that only authorized users may have read-only access the data.

Users with the following permission should have read-only access:

  • CLUSTER.VIEW_CONFIGS
  • SERVICE.VIEW_CONFIGS
  • HOST.VIEW_CONFIGS

These permissions should be allow for the following roles:

  • AMBARI.ADMINISTRATOR
  • CLUSTER.ADMINISTRATOR
  • CLUSTER.OPERATOR
  • SERVICE.ADMINISTRATOR
  • SERVICE.OPERATOR
  • CLUSTER.USER

Users with no role related to the cluster may not view the data.

The org.apache.ambari.server.security.TestAuthenticationFactory was updated to match the permission sets from the database. This exposed issues in the org.apache.ambari.server.controller.internal.AlertTargetResourceProviderTest class, which needed to be fixed.

This was cherry-picked from #2205

How was this patch tested?

Manually tested using users with various roles.

Updated unit tests, all passed.

Please review Ambari Contributing Guide before opening a pull request.

…ized users may have read-only access the data
@rlevas rlevas self-assigned this Aug 30, 2018
@rlevas rlevas merged commit 26dc1b3 into apache:branch-2.7 Aug 30, 2018
@rlevas rlevas deleted the AMBARI-24562_branch-2.7 branch August 30, 2018 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant