Skip to content

username/password saved as cleartext when using URIs with user:pass@ format #38187

Closed

Description

@curiositycasualty

Description of Issue/Question

When doing something like __salt__['cp.cache_file']('user:[email protected]:8081/sub/path/file.ext') you end up with:

[vagrant@vm ~]$ tree /var/cache/salt/minion/extrn_files/
/var/cache/salt/minion/extrn_files/
└── base
    ├── user:[email protected]:8081
    │   └── sub
    │       └── path
    │            └── file.ext
  ...

Steps to Reproduce Issue

sudo salt-call cp.cache_file 'user:[email protected]:8081/sub/path/file.ext' -l debug

Versions Report

[vagrant@vm ~]$ sudo salt-call --versions-report
Salt Version:
           Salt: 2016.3.1

Dependency Versions:
           cffi: Not Installed
       cherrypy: Not Installed
       dateutil: Not Installed
          gitdb: Not Installed
      gitpython: Not Installed
          ioflo: Not Installed
         Jinja2: 2.7.2
        libgit2: Not Installed
        libnacl: Not Installed
       M2Crypto: 0.21.1
           Mako: Not Installed
   msgpack-pure: Not Installed
 msgpack-python: 0.4.8
   mysql-python: Not Installed
      pycparser: Not Installed
       pycrypto: 2.6.1
         pygit2: Not Installed
         Python: 2.7.5 (default, Nov 20 2015, 02:00:19)
   python-gnupg: 0.3.8
         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: centos 7.2.1511 Core
        machine: x86_64
        release: 3.10.0-327.22.2.el7.x86_64
         system: Linux
        version: CentOS Linux 7.2.1511 Core

Activity

  1. added
    bug
    severity-medium
    P4
    Platform
    on Dec 13, 2016
  2. added this to the Approved milestone on Dec 13, 2016
  3. gtmanfred commented on Dec 13, 2016

    @gtmanfred
    Contributor

    We should clean that up.

    Thanks for reporting this,
    Daniel

  4. added
    Core
    severity-critical
    and removed
    Platform
    on Dec 13, 2016
  5. modified the milestones: Nitrogen 2, Approved on Dec 19, 2016
  6. techhat commented on Jan 3, 2017

    @techhat
    Contributor

    Fixed by #38541.

  7. cachedout commented on Jan 4, 2017

    @cachedout
    Contributor

    Closed via #38541

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

CoreP4ZRELEASED - 2016.3.5bugseverity-criticalseverity-medium

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions