Skip to content

salt.states.ssh_auth.present can't update key options #18983

Closed

Description

@arnisoph

When the user changes an option or simply the list of options in a state definition Salt tells you that it changed the line in the authorized_keys file, but this isn't the case. The line remains unchanged.

Salt selfbuilt packages based on 3e2b366.

           Salt: 2014.7.0-2-g956b89a
         Python: 2.7.3 (default, Mar 13 2014, 11:03:55)
         Jinja2: 2.6
       M2Crypto: 0.21.1
 msgpack-python: 0.1.10
   msgpack-pure: Not Installed
       pycrypto: 2.6
        libnacl: Not Installed
         PyYAML: 3.10
          ioflo: Not Installed
          PyZMQ: 13.1.0
           RAET: Not Installed
            ZMQ: 3.2.3
           Mako: Not Installed
salt -v --versions  0.27s user 0.14s system 69% cpu 0.593 total
# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 7.7 (wheezy)
Release:    7.7
Codename:   wheezy
id:
  ssh_auth:
    - ensure
    - name: <key>
    - user: <user>
    - enc: ssh-rsa
    - comment: <comment>
    - options:
      - command="foo bar baz"

Activity

  1. basepi commented on Dec 15, 2014

    @basepi
    Contributor

    Hrm, I wonder why it's not writing the file... in any case, we'll investigate this.

  2. added
    bug
    severity-low
    on Dec 15, 2014
  3. added this to the Approved milestone on Dec 15, 2014
  4. added
    severity-medium
    P2
    and removed
    severity-low
    on Jun 2, 2015
  5. added
    Platform
    on Sep 19, 2016
  6. martin-helmich commented on Dec 22, 2016

    @martin-helmich
    Contributor

    @basepi, I realize this bug has been around for a while. This issue was big enough of an itch for us that we investigated it by ourselves and found the cause of this bug. A detailed explanation and a proposed fix can be found in #38411.

  7. added a commit that references this issue on Dec 22, 2016
    2bc630d
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

    P2PlatformState-Modulebugseverity-medium

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions