pivotal-cf / java-cfenv

Apache License 2.0
91 stars 56 forks source link

How to disable Redis TLS even if TLS Port properties available from Cloud Foundry? #142

Closed joaodias14 closed 2 years ago

joaodias14 commented 3 years ago

Currently we get from our Cloud Foundry platform the Redis TLS Port property, this means that RedisCfEnvProcessor.java will set "spring.redis.ssl" property to true. The issue is that we want to disable this because of its huge performance penalty but we can't remove TLS Port from Cloud Foundry environment variables. How can we achieve this?

scottfrederick commented 2 years ago

@joaodias14 Java CFEnv sets Boot properties in a property source. Any properties like spring.redis.ssl can be overridden in another property source that has higher precedence.

pivotal-david-osullivan commented 2 years ago

Hi @joaodias14, revisiting this issue, has @scottfrederick's suggestion to use a source with higher precedence helped with your case?

pivotal-david-osullivan commented 2 years ago

Closing this out for now, workaround shared