Skip to content

Hardcoded version string in /hello status response #7983

@torben-j

Description

@torben-j

Branch/Environment/Version

  • Branch/Version: v5.8.12-rc1 (observed in multiple versions)
  • Environment: On-prem / Custom Docker build

Describe the bug
When building the Tyk Gateway from source using a standard go build command, the /hello endpoint reports a hardcoded default version (e.g., 5.5.0-dev) instead of the actual release version (e.g., v5.8.12-rc1).
This probably happens because the version is hard-coded in the source code or in the Swagger definitions (see swagger.yml#L287) without being dynamically injected during a standard build process.

Reproduction steps
Build a custom Docker image using the provided Dockerfile (downloading the v5.8.12-rc1 source zip).
Run the container.
Call the gateway status endpoint: curl http://:/hello.
Observe the version field in the JSON response.

Actual behavior
The response shows {"status": "pass", "version": "5.5.0-dev"} despite using the source code for a specific release tag.

Expected behavior
The /hello endpoint should return the correct version corresponding to the release tag being built (e.g., v5.8.12-rc1).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions