Skip to content

Make environment variables to preserve configurable - #1148

Merged
jrray merged 1 commit into
mainfrom
preserve-env-var-config
Feb 5, 2025
Merged

Make environment variables to preserve configurable#1148
jrray merged 1 commit into
mainfrom
preserve-env-var-config

Conversation

@jrray

@jrray jrray commented Nov 23, 2024

Copy link
Copy Markdown
Collaborator

We were preserving $TMPDIR specfically in a hard-coded way and there was no way to opt out of it if desired. Now it has come to light that $LD_LIBRARY_PATH is also cleared when entering an spfs runtime. We would like to preserve that value too. Add a new configuration option so each site can decide to opt in to the preserving. Doing so may come with risks of privilege escalation.

@jrray jrray added the enhancement New feature or request label Nov 23, 2024
@jrray jrray self-assigned this Nov 23, 2024
@jrray
jrray force-pushed the preserve-env-var-config branch 6 times, most recently from 2fd6b58 to 17e340f Compare November 23, 2024 10:41
We were preserving $TMPDIR specfically in a hard-coded way and there was
no way to opt out of it if desired. Now it has come to light that
$LD_LIBRARY_PATH is also cleared when entering an spfs runtime. We would
like to preserve that value too. Add a new configuration option so each
site can decide to opt in to the preserving. Doing so may come with
risks of privilege escalation.

Signed-off-by: J Robert Ray <jrray@jrray.org>
@jrray
jrray force-pushed the preserve-env-var-config branch from 17e340f to b1854b7 Compare November 23, 2024 10:52
@jrray
jrray requested a review from rydrman November 23, 2024 11:04
@jrray jrray added the SPI AOI Area of interest for SPI label Jan 7, 2025
@jrray jrray closed this Jan 7, 2025
@jrray jrray reopened this Jan 7, 2025
@jrray

jrray commented Jan 7, 2025

Copy link
Copy Markdown
Collaborator Author

Didn't mean to close this. Too many tabs open...

@jrray
jrray merged commit 0043fc1 into main Feb 5, 2025
@jrray
jrray deleted the preserve-env-var-config branch February 5, 2025 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request SPI AOI Area of interest for SPI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants