Repository navigation
Support environment variables as function args - #10397
jasonmccallister wants to merge 4 commits into
Conversation
Signed-off-by: Jason McCallister <[email protected]>
Signed-off-by: Jason McCallister <[email protected]>
|
x-linking #9584 (though I know we've drifted away a bit from working with So the main reason we haven't done this before is that we need a way to resolve the security issue here: a user running The other unresolved design question IMO is about which modules can access this - is it just the top-level one, or can any dependency module? |
In a mono repository, pretty much everything becomes a dependency module. Could we provide the means within the "dependencies": [
{
"name": "infisical",
"source": "github.com/jpadams/daggerverse/infisical@f89b7240f7e711a323dae5a66df9b78dfe6a4ec2",
"env": [ "INFISICAL_TOKEN" ],
}
],The experience that needs corrected isn't the security one, of having to be explicit about defining environment variables; it's about having to, currently, define them on every single |
|
Doesn't pipelineUser=env://PIPELINE_USR
pipelinePassword=op://PIPELINE_PSW
notACredential=testNo need to specify a pragma in code, if there is a parameter with the same name (eg: If a pragma is required, then something like |
Signed-off-by: Jason McCallister <[email protected]>
Signed-off-by: Jason McCallister <[email protected]>
|
This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
|
We are going to close this out until we have a larger discussion on the design/needs. That conversation is happening here: #10401 |
This PR adds the ability to define
+defaultEnv="FOO"to function arguments to reduce verbosity and improve developer experience.There are a few things we need to discuss in terms of implementation but I wanted to get the ball rolling.