Skip to content

KeyStoreConfiguration loaded too late in bootstrap #762

@JWThewes

Description

@JWThewes

After updating to the latest 1.3.2 release we found out our ConfigServer isn't decrypting {cipher} values anymore.
After digging deep into the ConfigServer I noticed that the KeyStoreConfiguration is loaded after the EncryptorConfiguration.
This results in an SingleTextEncryptorLocator (with a NoOpTextEncryptor) being used instead of the desired KeyStoreTextEncryptorLocator.

I've been able to workaround it moving the encrypt.key-store.location property from the application.ym to the bootstrap.yml.
There are two possible solutions for this:

  1. Update the documentation to reflect that the encryp.key-store properties need to be placed inside the bootstrap.yml
  2. Make sure the KeyStoreTextEncryptorLocator is configured before configuring the EnvironmentEncryptor

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions