Skip to content

acme module's group parameter is non-functional #48627

Closed

Description

@nicoonoclaste

Description of Issue/Question

acme.cert enforces that the private key file is mode 0600, so setting the group ownership using the group option does not actually result in another group being able to read the private key.

Please change the permission to 0640, which is the only sensible default, given that there is a group parameter which defaults to root. Perhaps consider making it configurable.

Setup

somegroup:
  group.present

some.example.com:
  acme.cert:
    - email: [email protected]
    - group: somegroup

Steps to Reproduce Issue

  1. Apply that state to a minion.
  2. After a successful highstate, confirm that group somegroup cannot read the private key file.

Versions Report

2018.3.2, but looking at the code suggests that it's still present in develop.

$ salt --versions-report
Salt Version:
           Salt: 2018.3.2
 
Dependency Versions:
           cffi: 1.10.0
       cherrypy: 3.2.2
       dateutil: 2.1
      docker-py: Not Installed
          gitdb: Not Installed
      gitpython: Not Installed
          ioflo: Not Installed
         Jinja2: 2.7.2
        libgit2: Not Installed
        libnacl: Not Installed
       M2Crypto: Not Installed
           Mako: Not Installed
   msgpack-pure: Not Installed
 msgpack-python: 0.4.6
   mysql-python: Not Installed
      pycparser: 2.18
       pycrypto: 2.6.1
   pycryptodome: Not Installed
         pygit2: Not Installed
         Python: 2.7.14 (default, May  2 2018, 18:31:34)
   python-gnupg: Not Installed
         PyYAML: 3.10
          PyZMQ: 14.5.0
           RAET: Not Installed
          smmap: Not Installed
        timelib: Not Installed
        Tornado: 4.2.1
            ZMQ: 4.0.5
 
System Versions:
           dist:   
         locale: UTF-8
        machine: x86_64
        release: 4.14.51-60.38.amzn1.x86_64
         system: Linux
        version: Not Installed

Activity

  1. Ch3LL commented on Jul 18, 2018

    @Ch3LL
    Contributor

    Thanks for the PR! As it looks like your PR does indeed fix the issue I will close this issue and keep the conversation in the PR but let me know if this needs to be re-opened.

  2. added
    bug
    severity-medium
    P3
    on Jul 18, 2018
  3. added this to the Approved milestone on Jul 18, 2018
  4. added a commit that references this issue on Jul 26, 2018
    e494682
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3State-Modulebugseverity-medium

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions