Skip to content

KERNEL_ prefixed environment variable to enterprise gateway #1315

Answered by kevin-bates
Chiragasourabh asked this question in Q&A
Discussion options

You must be logged in to vote

hi @Chiragasourabh. We intentionally do not transfer all environment variables from the EG process to each kernel process for security reasons. To transfer selected environment variables from EG to the the kernel process, you must configure the inherited_envs parameter. The kernel's start endpoint then transfers those selected envs from the EG process to the kwargs set here.

Since this is a list-valued parameter, its probably best using the env approach by configuring the EG_INHERITED_ENVS variable to something like:

EG_INHERITED_ENVS=KERNEL_CUSTOM_LABEL,MY_OTHER_ENV_1,MY_OTHER_ENV_2`

The handler will then transfer these envs (and their values) to the kwargs['env'] dictionary.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@kevin-bates
Comment options

Answer selected by Chiragasourabh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants