export entries inside abra.sh are loaded into container environment, even those in abra cmd commands #498

Closed
opened 2023-10-03 22:32:58 +00:00 by 3wordchant · 1 comment
Owner

Steps to reproduce:

  1. add some functions to a recipe's abra.sh which run export FOO=bar inside them
  2. deploy the recipe
  3. abra app run <domain> app env | grep FOO

Expected:

  • does not show any results

Actual:

  • FOO=bar output

Seems to be because of this parsing, which doesn't take into account whether an export is inside a function: https://git.coopcloud.tech/coop-cloud/abra/src/branch/main/pkg/config/env.go#L154-L165

Steps to reproduce: 1. add some functions to a recipe's `abra.sh` which run `export FOO=bar` inside them 2. deploy the recipe 3. `abra app run <domain> app env | grep FOO` Expected: - does not show any results Actual: - `FOO=bar` output Seems to be because of this parsing, which doesn't take into account whether an `export` is inside a function: https://git.coopcloud.tech/coop-cloud/abra/src/branch/main/pkg/config/env.go#L154-L165
3wordchant added the
bug
label 2023-10-03 22:32:58 +00:00
Author
Owner

Dirty workaround for now is to change export to setenv -x in abra.sh functions 😈 (gj @cas )

Dirty workaround for now is to change `export` to `setenv -x` in `abra.sh` functions 😈 (gj @cas )
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: coop-cloud/organising#498
No description provided.