Skip to content

fix: pass shell variables via env instead of interpolation in seed script #67

@pavelanni

Description

@pavelanni

From PR #66 review (GLM 5.1, finding #3):

seed-demo-data.sh interpolates $BASE_URL directly into a Python string,
which could break or allow code injection if the URL contains quotes.

Fix: pass via environment variable instead:

BASE_URL="$BASE_URL" python3 -c "import os; url = os.environ['BASE_URL'] + '/documents'"

Low risk — the script is developer-only tooling, not user-facing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions