Skip to content
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

spring.data.redis.username is not being set #294

Open
sntp opened this issue Feb 11, 2025 · 0 comments
Open

spring.data.redis.username is not being set #294

sntp opened this issue Feb 11, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@sntp
Copy link

sntp commented Feb 11, 2025

Describe the bug

CfEnv correctly sets redis credentials such as host, port and password in auto configuration but it doesn't set username, in my case it was required for connection to a9s redis 7 instance.

Reproduction steps

...

Expected behavior

CfEnv populates all available spring data redis properties:

spring
  data:
    redis:
      host: 
      password: 
      port:
      username:

Additional context

As a work-around I configured them manually:

spring:
  data:
    redis:
      host: ${vcap.services.redis.credentials.host}
      password: ${vcap.services.redis.credentials.redis.password}
      port: ${vcap.services.redis.credentials.redis.port}
      username: ${vcap.services.redis.credentials.redis.username}
@sntp sntp added the bug Something isn't working label Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant