Skip to content

Default INSIGHT_CREDENTIALS_FILE path doesn't match README/Dockerfile #8

Description

@nate-layman

insight/credentials.py:8 defaults to:

/var/lib/shipyard/insight_credentials.json

…but the README and Dockerfile both reference /var/lib/insight/insight_credentials.json (and the Dockerfile mounts state at that location).

When a standalone Docker run uses the documented mount path without explicitly setting INSIGHT_CREDENTIALS_FILE, the app writes the credentials inside the container's writable layer (or under a nonexistent host dir, depending on how the mount is set up) and on the next start read() finds nothing. Worse, credentials.py:21 swallows the FileNotFoundError, so the UI just silently reports "not configured" — there is no signal pointing at the path mismatch.

Fix: change the default in credentials.py to /var/lib/insight/insight_credentials.json to match the docs and the Dockerfile mount.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions