Serving Encrypted Properties
有时您希望客户端在本地解密配置,而不是在服务器中进行解密。在这种情况下,如果您提供 `encrypt.*`配置来查找密钥,您仍然可以使用 `/encrypt`和 `/decrypt`端点,但您需要通过在 `bootstrap.[yml|properties]`中放置 `spring.cloud.config.server.encrypt.enabled=false`来显式关闭传出属性的解密。如果您不关心端点,那么如果您不配置密钥或启用标志,它应该有效。
Sometimes you want the clients to decrypt the configuration locally, instead of doing it in the server.
In that case, if you provide the encrypt.*
configuration to locate a key, you can still have /encrypt
and /decrypt
endpoints, but you need to explicitly switch off the decryption of outgoing properties by placing spring.cloud.config.server.encrypt.enabled=false
in bootstrap.[yml|properties]
.
If you do not care about the endpoints, it should work if you do not configure either the key or the enabled flag.