[OPENIDM-8521] Create an EnvironmentVariablePropertyAccessor Created: 08/Jun/17 Updated: 22/Jun/17 Resolved: 14/Jun/17
|Component/s:||Module - Configuration|
|Affects Version/s:||OpenIDM 5.5.0|
|Fix Version/s:||OpenIDM 5.5.0|
|Reporter:||Jason Lemay||Assignee:||Jason Lemay|
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
|Sprint:||OpenIDM Sprint 78|
OpenIDM needs the ability to access config properties that are stored as environment variables. This will allow us to get token replaced config from the environment variables.
The EnvironmentVariablePropertyAccessor should be very similar to the SystemPropertyAccessor, but just using System.getenv(key) instead of System.getProperty(key).
The precedence of this accessor should be above the system property accessor in IdentityServer.java
|Comment by Jason Lemay [ 14/Jun/17 ]|
OpenIDM now has an environment variable property accessor. To declare environment properties you must format the proerty correctly by replacing the . with _ and uppercase the property. For example, the property
should be declared as
as an environment property. The environment property accessor has precedence over the system properties property accessor.
|Comment by Laurent Bristiel [X] (Inactive) [ 22/Jun/17 ]|
checked OK in OpenIDM version "5.5.0-SNAPSHOT" (revision: 55b32b1)