Yan Xu created MESOS-6573:
-----------------------------
Summary: Pass all flags as env vars when calling mesos libexec
binaries
Key: MESOS-6573
URL: https://issues.apache.org/jira/browse/MESOS-6573
Project: Mesos
Issue Type: Task
Reporter: Yan Xu
This JIRA captures the discussions [here|https://reviews.apache.org/r/53500].
To facilitate this we can have a helper in FlagsBase to return the
corresponding environment variables for the flags:
{code:title=}
// Export flags as environment variables.
map<string, string> FlagsBase::environment(
const Option<string>& prefix);
{code}
Then we can merge the result with additional env vars before passing them along.
Pros:
1. env vars are more secure.
2. Unified config passing mechanism, cleaner code.
Cons:
1. For configs that are not sensitive, the operator/host user loses the ability
to simply {{grep aux | grep xyz}}
2. Sweeping change required.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)