steve

Results 7 comments of steve

> How did you get the `TextEncryptor` from `SpringApplication`? Sorry, I should have mentioned that I am trying to register a different `TextEncryptor` by using a higher-priority implementation of `org.springframework.boot.Bootstrapper`...

> I understand that, I specifically wanted to know how you got that TextEncryptor in your subclass of `DecryptEnvironmentPostProcessor` Argh, I think I need a code sample for this -...

So I've managed to cobble together an app that uses custom decryption of environment variables - custom decryption support for Binder to come later. Current demo code is here: https://github.com/ninj/demo-custom-textencryptor...

> As far as I can tell, there's no way for an `EnvironmentPostProcessor` to get at anything from a bootstrapper or anything in the application context. So my guess is...

I've updated the sample to take advantage of the changes introduced in `spring-cloud-context` `3.0.2` via #927, and to demonstrate support for decrypting values using a `BindHandler`.

> Nice, so back to the issue. What do you think the outcome of this should be: updated docs or something to use the `TextEncryptor` from bootstrap? I think there's...

Had another thought this morning - is allowing potentially different TextEncryptors for binding and EnvironmentPostProcessing the right answer? Or should this be configurable so people can decide what is appropriate...