Skip to content

[ENHANCEMENT] Use non-privileged 'chainlink' user by default in Dockerfile #21005

@RinZ27

Description

@RinZ27

Description

The official Chainlink Dockerfile currently defaults to the root user (ARG CHAINLINK_USER=root), even though the image contains logic to create a non-privileged chainlink user. Running containers as root by default is a security risk and violates the principle of least privilege.

Proposed Improvement

Switch the default CHAINLINK_USER to chainlink. Users who explicitly need root can still override the argument, but the "secure by default" path should be a non-privileged user.

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