Skip to content

Incorrect ownership of /opt/couchdb - everything is owned by couchdb #155

@arturog

Description

@arturog

The Docker image sets everything under /opt/couchdb to be owned by the couchdb user, leading to the running couchdb process to have unrestricted access to all binaries and files installed in the container.

Expected Behavior

Only the necessary directories under /opt/couchdb should be set to be owned by couchdb, namely /opt/couchdb/data, etc...

Current Behavior

Everything is owned by couchdb. Couchdb has unrestricted access to all files installed.

Possible Solution

Change the chown commands in the Dockerfile and entrypoint to selectively set the correct ownerships.

Steps to Reproduce (for bugs)

Run the image
execute docker exec -ti <your-container-name> bash and have a look inside /opt/couchdb

Metadata

Metadata

Assignees

No one assigned

    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