Comments (3)
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.
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.
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)
- Create a spring-cloud-bindings BindingsPropertiesProcessor for Apache Geode HOT 2
- State project goals in documentation
- Include chapter on Testing in the SBDG reference documentation
- Compatability matrix is not up to date. HOT 1
- Remove link to SDG Version Compatibility Matrix in SBDG Wiki
- Missing geode-pulse Dependency in Documentation
- Compatibility question HOT 3
- Using a sealed class as a data object fails HOT 1
- Inheriting from entity types causes failure when using entity-defined Regions HOT 1
- Exception thrown when parsing spring.session.timeout property with java.time.Duration styling HOT 1
- Improve documentation around overriding dependency versions
- Clarify the use of SDG's @EnableExpiration annotation in docs
- Integrate Apache Geode and Jetty 11 HOT 1
- Improve Logging configuration in the Starter
- @LocatorApplication does not work with @EnableSecurity HOT 5
- PARTITION_PERSISTENT_OVERFLOW index slow HOT 6
- SBDG Fails in Docker HOT 10
- Gemfire Fails in AWS ECS HOT 8
- Add new BeanPostProcessor to register RegionConfigurers for explicitly declared Region beans
- Improve logging output for @EnableClusterAware functionality re:connection type HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-boot-data-geode.