Overview
Python config-client is a library for integration and usage with Spring Cloud Config.
Usage
The needed configuration to use config-client can be set through:
- environment variables; or
- arguments.
Using environment variables
The following presents the default values:
1 2 3 4 5 |
|
By default, the value of the environment variable CONFIG_FAIL_FAST
is set to True
, so if any error occurs while contacting the server, a SystemExit(1)
exception will be raised; otherwise, a ConnectionError
exception is raised.
Security
The config-client can interact with the Spring Cloud Config encryption and decryption API.
Encryption
example-encryption.py | |
---|---|
1 2 3 4 5 |
|
Decryption
example-decryption.py | |
---|---|
1 2 3 4 5 6 7 |
|