You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to propose an enhancement to floki to more easily allow existing environment variables to be passed through from the invoking environment to the floki docker container.
I have increasingly been coming across situations which require authentication, where credentials are typically provided via env vars. I therefore want to make it easy to pass these env vars through from a developer's environment into a floki container.
However, this is a bit clunky, particularly if you want to pass multiple variables. It is also potentially non-trivial to update this list with automated tools if you want to add/remove entries.
I therefore propose adding a new key env, which simply takes a list of environment variable names to pass through. This would be expanded internally to a series of -e <env_var_name> parameters for the docker run invocation. Example:
env:
- MY_REPO_PASSWORD
- MY_PAT_TOKEN
...etc
Thoughts?
I'm happy to make the code changes if we can agree that this is a desirable feature.
The text was updated successfully, but these errors were encountered:
Richard just suggested that if we do decide to add this, then floki should check that the specified variables exist, and fail with a helpful error if they don't. I agree.
I think this is a desirable feature - it does somewhat break of the contract of being able to run floki files regardless of environment but the feature already exists with docker_switches and is already being actively used like that.
There's potentially a larger question around "do we want a better defined system of passing secrets into floki in the first place" - but for now I don't see any reason to block a change like this.
I would like to propose an enhancement to floki to more easily allow existing environment variables to be passed through from the invoking environment to the floki docker container.
I have increasingly been coming across situations which require authentication, where credentials are typically provided via env vars. I therefore want to make it easy to pass these env vars through from a developer's environment into a floki container.
This is currently possible via
docker_switches
:However, this is a bit clunky, particularly if you want to pass multiple variables. It is also potentially non-trivial to update this list with automated tools if you want to add/remove entries.
I therefore propose adding a new key
env
, which simply takes a list of environment variable names to pass through. This would be expanded internally to a series of-e <env_var_name>
parameters for the docker run invocation. Example:Thoughts?
I'm happy to make the code changes if we can agree that this is a desirable feature.
The text was updated successfully, but these errors were encountered: