Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Macro fails to execute in .env file #6468

Open
MaxOfLondon opened this issue Dec 15, 2024 · 0 comments
Open

Macro fails to execute in .env file #6468

MaxOfLondon opened this issue Dec 15, 2024 · 0 comments
Assignees
Labels
area/backend Needs backend code changes bug Something isn't working

Comments

@MaxOfLondon
Copy link

Describe the issue

The .env file fails to parse into container env variable when using marcro.
.env file:

SECRET_USER={{ "kestra" | base64encode }}
SECRET_PASS=base64encoded.password

docker-compose.yml (relevant section)

services:
  kestra:
    image: kestra/kestra:latest
    env_file:
      - .env

The error:
io.kestra.core.secret.SecretService Could not decode secret 'SECRET_USER', make sure it is Base64-encoded: Illegal base64 character 7b
The character 7b is an ascii {, the first character of the macro template.

In comparison, the SECRET_PASS with base64 encoded value correctly maps to a variable.

The debug {{ secret('USER') }} retuns empty string.

Environment

@MaxOfLondon MaxOfLondon added area/backend Needs backend code changes area/frontend Needs frontend code changes bug Something isn't working labels Dec 15, 2024
@github-project-automation github-project-automation bot moved this to Backlog in Issues Dec 15, 2024
@MilosPaunovic MilosPaunovic removed the area/frontend Needs frontend code changes label Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/backend Needs backend code changes bug Something isn't working
Projects
Status: Backlog
Development

No branches or pull requests

3 participants