Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

Forwarding selected host environment variables #1840

Closed
boryspoplawski opened this issue Sep 24, 2020 · 2 comments
Closed

Forwarding selected host environment variables #1840

boryspoplawski opened this issue Sep 24, 2020 · 2 comments
Labels
feature request needs discussion Needs to be discussed on the maintainers call

Comments

@boryspoplawski
Copy link
Contributor

boryspoplawski commented Sep 24, 2020

Description of the feature

It would be nice to be able to forward some environment variables from the untrusted host e.g. by specifying their names in the manifest.
Example use case: providing the application with a ip+port/domain to connect to (which by definition can be manipulated by the untrusted host anyway).

Please note that this is a different feature than loader.insecure__use_host_env, which is intended only for testing purposes and this one is also suitable for production usages, as it allows fine-grained control of what's passed to the app.

@boryspoplawski boryspoplawski added good first issue feature request needs discussion Needs to be discussed on the maintainers call labels Sep 24, 2020
@jtakeshi-nd
Copy link

This feature would be useful for my current work, to be able to disable threads when running a binary in SGX without having to recompile dependencies using OpenMP. It's possible to disable threading programmatically in my program source, but it would be nice to specify at runtime.

@mkow
Copy link
Member

mkow commented Oct 18, 2021

This was implemented in gramineproject/gramine#56.

@mkow mkow closed this as completed Oct 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature request needs discussion Needs to be discussed on the maintainers call
Projects
None yet
Development

No branches or pull requests

3 participants