GithubHelp home page GithubHelp logo

Comments (3)

jxblum avatar jxblum commented on April 28, 2024

I think the first step for the Spring Boot / Pivotal GemFire support should be auto-configuration of the cache, and a ClientCache in particular.

I also think the default implementation of the AuthInitialize interface should live in Spring Data GemFire

Will provide more thoughts and feedback on this shortly.

from spring-boot-data-geode.

jxblum avatar jxblum commented on April 28, 2024

Just an update to my earlier comment above...

Since Spring Data Kay (i.e. Spring Data GemFire 2.0), I have added first-class support for both Pivotal GemFire client and server-side security, which is part of the new Annotation config model.

More general information about configuring Security in Pivotal GemFire using Spring Data GemFire, begins here.

But effectively, SDG now provides a default implementation of the o.a.g.security.AuthInitialize interface.

Using this new Security annotation support in SDG for Spring Boot, Pivotal GemFire ClientCache applications, is as simple as the following...

@SpringBootApplication
@ClientCacheApplication
@EnableSecurity
class MySpringBootPivotalGemFireCacheClientApplication {

    public static void main(String[] args) {
        SpringApplication.run(MySpringBootPivotalGemFireCacheClientApplication.class, args);
    }
}

Thus, annotate the Spring Boot main application class with SDG's @EnableSecurity annotation, and then set the username and password properties to authenticate the client in Spring Boot's application.properties...

#application.properties

spring.data.gemfire.security.username=MyUser
spring.data.gemfire.security.password=MyPassword

...

Inside of PCF, when pushing and deploying your Pivotal GemFire-based, Spring Boot application, you will not need to explicitly define username and password properties in application.properties.

Spring Boot Data GemFire will effectively be able to extract this information from the VCAP environment variables created by PCF when a Spring Boot application is deployed.

More to come...

from spring-boot-data-geode.

jxblum avatar jxblum commented on April 28, 2024

Spring Boot auto-configuration of either Apache Geode or Pivotal GemFire Security, securing a client connecting to a server in either a local, non-managed environment (i.e. standalone) as well as a cloud, managed environment (e.g. PCF) is complete!

from spring-boot-data-geode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.