-
Notifications
You must be signed in to change notification settings - Fork 44
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
Allow use of JDBC session on separate DB #840
base: develop
Are you sure you want to change the base?
Allow use of JDBC session on separate DB #840
Conversation
INDIGO IAM v1.8.3 release
Release v1.8.3
IAM v1.8.4 release
INDIGO IAM v1.9.0 release
INDIGO IAM v1.10.0 release
IAM release v1.10.1
iam-login-service/src/main/java/it/infn/mw/iam/config/DataSourceConfig.java
Show resolved
Hide resolved
94a51a2
to
61cae4b
Compare
…ta in separate db
61cae4b
to
e7c4bac
Compare
I have added the missing new line at |
Quality Gate failedFailed conditions |
I think we don't need
|
@Bean | ||
@ConfigurationProperties("session.datasource") | ||
@Qualifier("sessionDataSourceProperties") | ||
@ConditionalOnProperty(name = "spring.session.store-type", havingValue = "jdbc") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also this annotation should be unnecessary here
Hi, I think it does need to |
Hi, Edit: I have made changes so that the Hikari object is a singleton and don't create too many connection below |
Quality Gate failedFailed conditions |
Description
This change allows the use of JDBC for saving HTTPSession data in a separate database. This is to support our use of Galera DB as our HA backend option. The change will allow use to reduce administrative burden and attack surface via not needing to run a cross data centre Redis. setup.
The code should only activate if
jdbc
spring session is used.Fixes #809