cloudflare / cloudflare/pal

Support using env vars (including decrypted env vars) in command

Open
#8 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
85
Forks
5
PR merge metrics
No merged PRs in 30d

Description

We want to only use flags for configuring our executable, e.g. marathon environment configuration:
```
PAL_SECRETS_YAML: |
---
prod:
command: "exec /example-binary -some.flag=$SOME_VAR"
env:
SOME_VAR: pgp:***********
```
However, pal currently does not support this.

Right now, the only workaround would be to create a wrapper script.

e.g. `run.sh` wrapper script:
```
exec /example-binary -some.flag=$SOME_VAR
```
e.g. marathon environment configuration:
```
PAL_SECRETS_YAML: |
---
prod:
command: "run.sh"
env:
SOME_VAR: pgp:***********
```

It would be ideal if we did not require this wrapper script.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.