[OPENIDM-8521] Create an EnvironmentVariablePropertyAccessor Created: 08/Jun/17  Updated: 22/Jun/17  Resolved: 14/Jun/17

Status: Closed
Project: OpenIDM
Component/s: Module - Configuration
Affects Version/s: OpenIDM 5.5.0
Fix Version/s: OpenIDM 5.5.0

Type: Story Priority: Major
Reporter: Jason Lemay Assignee: Jason Lemay
Resolution: Fixed Votes: 0
Labels: devops, lewis
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relates to OPENIDM-8524 Doc Environment Property Pre-Processor Closed
Target Version/s:
Verified Version/s:
Story Points: 0.5
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)
Automated tests added in "configuration" suite.

Generated at Mon Sep 28 00:05:38 UTC 2020 using Jira 7.13.12#713012-sha1:6e07c38070d5191bbf7353952ed38f111754533a.