Skip to content

Symlinks with absolute paths are not followed when running from inside a container #1595

Description

@Molter73

When running inside a container, fact prepends all paths with the provided FACT_HOST_MOUNT in order to check files mounted in. When a symlink with a full path, the globbing algorithm fails to check the file or (much worse) it will point to a file inside the container rather than on the host.

AFAICT, this can only be fixed with a custom implementation of a globbing algorithm, since the library we are using has no notion of a "prefix for all paths" like we have.

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