Skip to content

Add shield management for ElasticCloud #152

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

Closed
wants to merge 1 commit into from
Closed

Add shield management for ElasticCloud #152

wants to merge 1 commit into from

Conversation

trossignol
Copy link

@trossignol trossignol commented Jun 28, 2016

Thank you for proposing a pull request. This template will guide you through the essential steps necessary for a pull request.
Make sure that:

  • You have read the Spring Data contribution guidelines.
  • There is a ticket in the bug tracker for the project in our JIRA.
  • You use the code formatters provided here and have them applied to your changes. Don’t submit any formatting related changes.
  • You submit test cases (unit or integration tests) that back your changes.
  • You added yourself as author in the headers of the classes you touched. Amend the date range in the Apache license header if needed. For new types, add the license header (copy from another file and set the current year only).
  • You provide your full name and an email address registered with your GitHub account. If you’re a first-time submitter, make sure you have completed the Contributor’s License Agreement form.

pom.xml Outdated
@@ -4,7 +4,7 @@

<groupId>org.springframework.data</groupId>
<artifactId>spring-data-elasticsearch</artifactId>
<version>2.1.0.BUILD-SNAPSHOT</version>
<version>2.1.0.BUILD-TRO-SNAPSHOT</version>

Choose a reason for hiding this comment

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

What is TRO-?
I guess it is your own custom version.

Copy link
Author

Choose a reason for hiding this comment

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

Yes, it was a mistake.

@@ -86,15 +88,20 @@ public void afterPropertiesSet() throws Exception {
}

protected void buildClient() throws Exception {
client = TransportClient.builder().settings(settings()).build();
client = TransportClient.builder().addPlugin(ShieldPlugin.class).settings(settings()).build();

Choose a reason for hiding this comment

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

IMO this should be optional.
E.g. if there is a bean of type List<Class<elasticsearch.Plugin>> in the app context than for each item in the list call .addPlugin(item)

@garpinc
Copy link

garpinc commented Jan 10, 2017

See #159 I think this should supersede this and hence this one should be closed.

@pivotal-issuemaster
Copy link

@trossignol Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@trossignol trossignol closed this Jun 4, 2019
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