Skip to content

GEODE-3974: Improve permissions for geode-connectors functions#1265

Merged
sboorlagadda merged 1 commit into
apache:developfrom
sboorlagadda:jdbc_fn_permissions
Jan 11, 2018
Merged

GEODE-3974: Improve permissions for geode-connectors functions#1265
sboorlagadda merged 1 commit into
apache:developfrom
sboorlagadda:jdbc_fn_permissions

Conversation

@sboorlagadda

@sboorlagadda sboorlagadda commented Jan 10, 2018

Copy link
Copy Markdown
Member

Thank you for submitting a contribution to Apache Geode.

In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:

For all changes:

  • Is there a JIRA ticket associated with this PR? Is it referenced in the commit message?

  • Has your PR been rebased against the latest commit within the target branch (typically develop)?

  • Is your initial contribution a single, squashed commit?

  • Does gradlew build run cleanly?

  • Have you written or updated unit tests to verify your changes?

  • If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?

Note:

Please ensure that once the PR is submitted, you check travis-ci for build issues and
submit an update to your PR as soon as possible. If you need help, please send an
email to dev@geode.apache.org.

}

@Override
public Collection<ResourcePermission> getRequiredPermissions(String regionName) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe for functions that "alters" something, it should be cluster:write?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alter connections/mappings does change cluster-config which is very similar to create & destroy operations.
Also, most other alter operations do use X:MANAGE:X permission.

}

@Override
public Collection<ResourcePermission> getRequiredPermissions(String regionName) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need to add this here for an abstract function

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the new default that is set for any JDBC connector function as most of JDBC functions have to deal with cluster-config.
Otherwise the default would be DATA:WRITE inherited from Function interface.

@sboorlagadda sboorlagadda merged commit 49d28f9 into apache:develop Jan 11, 2018
@sboorlagadda sboorlagadda deleted the jdbc_fn_permissions branch January 11, 2018 21:27
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.

4 participants