Skip to content

bug: commented out env variables cause app to fail to boot #13685

Description

@cfitzw

Current Behavior

There is a bug that started happening in v3.17.0.

I have a few commented out environment variables using the syntax ${{MY_ENV_VAR}}. It appears something is attempting to resolve those, even though commented out.

It should not be resolving env vars from commented out lines.

/usr/local/openrestv//luajit/bin/luajit ./apisix/cli/apisix.lua init
failed to read local vaml config of apisix: failed to handle configuration: can't find environment variable MY_ENV_VAR

The routes files contains:

# ${{MY_ENV_VAR}}

Expected Behavior

The app should start without weeping due to commented out environment variables.

Error Logs

No response

Steps to Reproduce

See above.

Environment

From helm chart v2.16.0 = APISix 3.17.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions