-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Closed
Labels
Description
In #10918, a new placeholder was added for prompting settings. We already allow placeholders to read values from the environment/system properties. During the review, @uboness noted that it would be good to standardize the naming and cleanup the code that prompts the place holders.
The new changes mentioned in the comments of the PR are:
- Consolidate code that handles replacing the placeholders to one place. Right now we have it in the
Settingsand theInternalSettingsPreparer. This logic is really internal and should not be exposed in the Settings. - The system placeholders should follow the same convention and be in the form:
${env::foobar} - We can also introduce a new setting:
config.ignore_placeholders:
This will ignore all placeholder settings:
config.ignore_placeholders: truewill only ignore env placeholders:
config.ignore_placeholders: envwill only ignore prompt placeholders:
config.ignore_placeholders: promptwill ignore both the env and prompt settings:
config.ignore_placeholders: env, prompt