Skip to content
This repository was archived by the owner on Nov 20, 2021. It is now read-only.
This repository was archived by the owner on Nov 20, 2021. It is now read-only.

Create /var/lib/etcd with 700 permissions instead of 755 #41

@jburks725

Description

@jburks725

Per CIS benchmark 1.4.11, the permissions on /var/lib/etcd should be 0700, not 0755. This directory appears to be created here:

e2d/pkg/manager/server.go

Lines 169 to 171 in 40a7ba9

if err := os.MkdirAll(cfg.Dir, 0755); err != nil && !os.IsExist(err) {
return errors.Wrapf(err, "cannot create etcd data dir: %#v", cfg.Dir)
}

Please correct the permissions on this data directory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions