Skip to content

Quadlet environment / .env syntax interpolation is not working #26997

@orchard0

Description

@orchard0

Issue Description

Environment interpolation does not work in .env files set using EnvironmentFile option nor in the Environment option in .container files.

Steps to reproduce the issue

example.container:

[Container]
...
Environment=POSTGRES_USER=example 
Environment=AUTHENTIK_POSTGRESQL__USER=${POSTGRES_USER}
...

Nor does it work in an attached .env file set using the EnvironmentFile option:

POSTGRES_PASSWORD=mypassword
AUTHENTIK_POSTGRESQL__PASSWORD=${POSTGRES_PASSWORD}

Describe the results you received

Interpolation does not occur.

AUTHENTIK_POSTGRESQL__PASSWORD and AUTHENTIK_POSTGRESQL__USER are not set.

Describe the results you expected

AUTHENTIK_POSTGRESQL__USER to be set to example
AUTHENTIK_POSTGRESQL__PASSWORD to be set to mypassword

podman info output

Podman version 5.4.0

Podman in a container

No

Privileged Or Rootless

Rootless

Upstream Latest Release

No

Additional environment details

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions