saltstack / saltstack/salt

salt.modules.saltutil.regen_keys does not work on windows

Open
#62,338 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug needs-triage security Windows
Dominant language
Python
Stars
15.7k
Forks
5.6k
Avg merge
2d 44m
Merged PRs (30d)
80

Description

Description

I can't regenerate minion keys on windows.

Setup
(Please provide relevant configs and/or SLS files (be sure to remove sensitive info. There is no general set-up of Salt.)

Please be as specific as possible and give set-up details.

  • on-prem machine
  • VM (Virtualbox, KVM, etc. please specify)
  • VM running on a cloud service, please be explicit and add details
  • container (Kubernetes, Docker, containerd, etc. please specify)
  • or a combination, please be explicit
  • jails if it is FreeBSD

Steps to Reproduce the behavior

execute salt 'PC-WINDOWS10' saltutil.regen_keys
2022-07-18 14:54:20,828 [salt.minion      :896 ][DEBUG   ][4448] Minion return retry timer set to 7 seconds (randomized)
2022-07-18 14:54:20,828 [salt.minion      :2173][INFO    ][4448] Returning information for job: 20220718125419602845
2022-07-18 14:54:21,015 [git.cmd          :814 ][DEBUG   ][4448] Popen(['git', 'version'], cwd=C:\Program Files\Salt Project\Salt\bin, universal_newlines=False, shell=None, istream=None)
2022-07-18 14:54:21,015 [git.cmd          :814 ][DEBUG   ][4448] Popen(['git', 'version'], cwd=C:\Program Files\Salt Project\Salt\bin, universal_newlines=False, shell=None, istream=None)
2022-07-18 14:54:21,062 [salt.crypt       :510 ][DEBUG   ][4448] Initializing new AsyncAuth for ('C:\\ProgramData\\Salt Project\\Salt\\conf\\pki\\minion', 'PC-WINDOWS10', 'tcp://10.1.3.5:4506')
2022-07-18 14:54:21,062 [salt.transport.zeromq:158 ][DEBUG   ][4448] Connecting the Minion to the Master URI (for the return server): tcp://10.1.3.5:4506
2022-07-18 14:54:21,078 [salt.transport.zeromq:1233][DEBUG   ][4448] Trying to connect to: tcp://10.1.3.5:4506
2022-07-18 14:54:21,078 [salt.transport.zeromq:158 ][DEBUG   ][4448] Connecting the Minion to the Master URI (for the return server): tcp://10.1.3.5:4506
2022-07-18 14:54:21,093 [salt.transport.zeromq:1233][DEBUG   ][4448] Trying to connect to: tcp://10.1.3.5:4506
2022-07-18 14:54:21,093 [salt.crypt       :220 ][DEBUG   ][4448] salt.crypt.get_rsa_pub_key: Loading public key
2022-07-18 14:54:21,140 [salt.crypt       :978 ][DEBUG   ][4448] Decrypting the current master AES key
2022-07-18 14:54:21,140 [salt.crypt       :212 ][DEBUG   ][4448] salt.crypt.get_rsa_key: Loading private key
2022-07-18 14:54:21,140 [salt.crypt       :192 ][DEBUG   ][4448] salt.crypt._get_key_with_evict: Loading private key
2022-07-18 14:54:21,203 [salt.crypt       :904 ][DEBUG   ][4448] Loaded minion key: C:\ProgramData\Salt Project\Salt\conf\pki\minion\minion.pem
2022-07-18 14:54:21,218 [salt.crypt       :220 ][DEBUG   ][4448] salt.crypt.get_rsa_pub_key: Loading public key
2022-07-18 14:54:21,234 [salt.crypt       :259 ][DEBUG   ][4448] salt.crypt.verify_signature: Loading public key
2022-07-18 14:54:21,234 [salt.crypt       :220 ][DEBUG   ][4448] salt.crypt.get_rsa_pub_key: Loading public key
2022-07-18 14:54:21,234 [salt.crypt       :261 ][DEBUG   ][4448] salt.crypt.verify_signature: Verifying signature
2022-07-18 14:54:21,234 [salt.crypt       :705 ][DEBUG   ][4448] <salt.crypt.AsyncAuth object at 0x00000238F45529A0> Got new master aes key.
2022-07-18 14:54:21,234 [salt.transport.zeromq:179 ][DEBUG   ][4448] Closing AsyncZeroMQReqChannel instance
2022-07-18 14:54:21,249 [salt.transport.zeromq:179 ][DEBUG   ][4448] Closing AsyncZeroMQReqChannel instance
2022-07-18 14:54:21,249 [salt.minion      :2040][DEBUG   ][4448] minion return: {'success': True, 'return': None, 'retcode': 0, 'jid': '20220718125419602845', 'fun': 'file.truncate', 'fun_args': ['c:/programdata/salt project/salt/var/log/salt/minion', 0]}
2022-07-18 14:54:21,640 [salt.utils.process:1230][DEBUG   ][1412] Subprocess ProcessPayload-Job-20220718125419602845 cleaned up
2022-07-18 14:54:42,281 [salt.minion      :1693][INFO    ][1412] User root Executing command saltutil.regen_keys with jid 20220718125442894506
2022-07-18 14:54:42,281 [salt.minion      :1701][DEBUG   ][1412] Command details {'fun': 'saltutil.regen_keys', 'arg': [], 'tgt': 'PC-WINDOWS10', 'jid': '20220718125442894506', 'ret': '', 'tgt_type': 'glob', 'user': 'root'}
2022-07-18 14:54:42,484 [salt.utils.process:1219][DEBUG   ][1412] Subprocess ProcessPayload-Job-20220718125442894506 added
2022-07-18 14:54:44,125 [salt.log.setup   :607 ][DEBUG   ][3392] Multiprocessing queue logging configured for the process running under PID: 3392 at log level 10
2022-07-18 14:54:44,141 [salt.minion      :1292][INFO    ][3392] Creating minion process manager
2022-07-18 14:54:44,156 [salt.utils.entrypoints:57  ][DEBUG   ][3392] Using importlib_metadata to load entry points
2022-07-18 14:54:44,328 [salt.utils.lazy  :99  ][DEBUG   ][3392] LazyLoaded jinja.render
2022-07-18 14:54:44,344 [salt.utils.lazy  :99  ][DEBUG   ][3392] LazyLoaded yaml.render
2022-07-18 14:54:44,344 [salt.minion      :1890][INFO    ][3392] Starting a new job 20220718125442894506 with PID 3392
2022-07-18 14:54:44,375 [salt.utils.lazy  :102 ][DEBUG   ][3392] Could not LazyLoad direct_call.allow_missing_func: 'direct_call.allow_missing_func' is not available.
2022-07-18 14:54:44,469 [salt.utils.lazy  :99  ][DEBUG   ][3392] LazyLoaded saltutil.regen_keys
2022-07-18 14:54:44,594 [git.cmd          :814 ][DEBUG   ][3392] Popen(['git', 'version'], cwd=C:\Program Files\Salt Project\Salt\bin, universal_newlines=False, shell=None, istream=None)
2022-07-18 14:54:44,609 [git.cmd          :814 ][DEBUG   ][3392] Popen(['git', 'version'], cwd=C:\Program Files\Salt Project\Salt\bin, universal_newlines=False, shell=None, istream=None)
2022-07-18 14:54:44,640 [salt.crypt       :510 ][DEBUG   ][3392] Initializing new AsyncAuth for ('C:\\ProgramData\\Salt Project\\Salt\\conf\\pki\\minion', 'PC-WINDOWS10', 'tcp://10.1.3.5:4506')
2022-07-18 14:54:44,640 [salt.crypt       :212 ][DEBUG   ][3392] salt.crypt.get_rsa_key: Loading private key
2022-07-18 14:54:44,640 [salt.crypt       :192 ][DEBUG   ][3392] salt.crypt._get_key_with_evict: Loading private key
2022-07-18 14:54:44,734 [salt.crypt       :904 ][DEBUG   ][3392] Loaded minion key: C:\ProgramData\Salt Project\Salt\conf\pki\minion\minion.pem
2022-07-18 14:54:44,734 [salt.transport.zeromq:158 ][DEBUG   ][3392] Connecting the Minion to the Master URI (for the return server): tcp://10.1.3.5:4506
2022-07-18 14:54:44,750 [salt.transport.zeromq:1233][DEBUG   ][3392] Trying to connect to: tcp://10.1.3.5:4506
2022-07-18 14:54:44,750 [salt.loaded.int.module.saltutil:1513][DEBUG   ][3392] Recreating channel to force key regen
2022-07-18 14:54:44,750 [salt.transport.zeromq:179 ][DEBUG   ][3392] Closing AsyncZeroMQReqChannel instance
2022-07-18 14:54:44,750 [salt.minion      :896 ][DEBUG   ][3392] Minion return retry timer set to 9 seconds (randomized)
2022-07-18 14:54:44,768 [salt.minion      :2173][INFO    ][3392] Returning information for job: 20220718125442894506
2022-07-18 14:54:44,768 [salt.crypt       :510 ][DEBUG   ][3392] Initializing new AsyncAuth for ('C:\\ProgramData\\Salt Project\\Salt\\conf\\pki\\minion', 'PC-WINDOWS10', 'tcp://10.1.3.5:4506')
2022-07-18 14:54:44,768 [salt.crypt       :212 ][DEBUG   ][3392] salt.crypt.get_rsa_key: Loading private key
2022-07-18 14:54:44,768 [salt.crypt       :904 ][DEBUG   ][3392] Loaded minion key: C:\ProgramData\Salt Project\Salt\conf\pki\minion\minion.pem
2022-07-18 14:54:44,768 [salt.transport.zeromq:158 ][DEBUG   ][3392] Connecting the Minion to the Master URI (for the return server): tcp://10.1.3.5:4506
2022-07-18 14:54:44,781 [salt.transport.zeromq:1233][DEBUG   ][3392] Trying to connect to: tcp://10.1.3.5:4506
2022-07-18 14:54:44,781 [salt.transport.zeromq:158 ][DEBUG   ][3392] Connecting the Minion to the Master URI (for the return server): tcp://10.1.3.5:4506
2022-07-18 14:54:44,797 [salt.transport.zeromq:1233][DEBUG   ][3392] Trying to connect to: tcp://10.1.3.5:4506
2022-07-18 14:54:44,797 [salt.crypt       :220 ][DEBUG   ][3392] salt.crypt.get_rsa_pub_key: Loading public key
2022-07-18 14:54:44,797 [salt.transport.zeromq:179 ][DEBUG   ][3392] Closing AsyncZeroMQReqChannel instance
2022-07-18 14:54:44,797 [tornado.application:640 ][ERROR   ][3392] Exception in callback functools.partial(<function wrap.<locals>.null_wrapper at 0x000002A65FE90A60>, <salt.ext.tornado.concurrent.Future object at 0x000002A660194790>)
Traceback (most recent call last):
  File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004.1-py3.8.egg\salt\ext\tornado\ioloop.py", line 606, in _run_callback
    ret = callback()
  File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004.1-py3.8.egg\salt\ext\tornado\stack_context.py", line 278, in null_wrapper
    return fn(*args, **kwargs)
  File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004.1-py3.8.egg\salt\ext\tornado\ioloop.py", line 628, in _discard_future_result
    future.result()
  File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004.1-py3.8.egg\salt\ext\tornado\concurrent.py", line 249, in result
    raise_exc_info(self._exc_info)
  File "<string>", line 4, in raise_exc_info
  File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004.1-py3.8.egg\salt\ext\tornado\gen.py", line 1064, in run
    yielded = self.gen.throw(*exc_info)
  File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004.1-py3.8.egg\salt\crypt.py", line 654, in _authenticate
    creds = yield self.sign_in(channel=channel)
  File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004.1-py3.8.egg\salt\ext\tornado\gen.py", line 1056, in run
    value = future.result()
  File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004.1-py3.8.egg\salt\ext\tornado\concurrent.py", line 249, in result
    raise_exc_info(self._exc_info)
  File "<string>", line 4, in raise_exc_info
  File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004.1-py3.8.egg\salt\ext\tornado\gen.py", line 309, in wrapper
    yielded = next(result)
  File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004.1-py3.8.egg\salt\crypt.py", line 763, in sign_in
    sign_in_payload = self.minion_sign_in_payload()
  File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004.1-py3.8.egg\salt\crypt.py", line 948, in minion_sign_in_payload
    with salt.utils.files.fopen(self.pub_path) as f:
  File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004.1-py3.8.egg\salt\utils\files.py", line 385, in fopen
    f_handle = open(*args, **kwargs)  # pylint: disable=resource-leakage
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\ProgramData\\Salt Project\\Salt\\conf\\pki\\minion\\minion.pub'
2022-07-18 14:54:47,313 [salt.minion      :1693][INFO    ][1412] User root Executing command saltutil.find_job with jid 20220718125447920328
2022-07-18 14:54:47,313 [salt.minion      :1701][DEBUG   ][1412] Command details {'fun': 'saltutil.find_job', 'arg': ['20220718125442894506'], 'tgt': ['PC-WINDOWS10'], 'jid': '20220718125447920328', 'ret': '', 'tgt_type': 'list', 'user': 'root'}
2022-07-18 14:54:47,486 [salt.utils.process:1219][DEBUG   ][1412] Subprocess ProcessPayload-Job-20220718125447920328 added
2022-07-18 14:54:48,984 [salt.log.setup   :607 ][DEBUG   ][4712] Multiprocessing queue logging configured for the process running under PID: 4712 at log level 10
2022-07-18 14:54:49,000 [salt.minion      :1292][INFO    ][4712] Creating minion process manager
2022-07-18 14:54:49,015 [salt.utils.entrypoints:57  ][DEBUG   ][4712] Using importlib_metadata to load entry points
2022-07-18 14:54:49,156 [salt.utils.lazy  :99  ][DEBUG   ][4712] LazyLoaded jinja.render
2022-07-18 14:54:49,156 [salt.utils.lazy  :99  ][DEBUG   ][4712] LazyLoaded yaml.render
2022-07-18 14:54:49,156 [salt.minion      :1890][INFO    ][4712] Starting a new job 20220718125447920328 with PID 4712
2022-07-18 14:54:49,188 [salt.utils.lazy  :102 ][DEBUG   ][4712] Could not LazyLoad direct_call.allow_missing_func: 'direct_call.allow_missing_func' is not available.
2022-07-18 14:54:49,266 [salt.utils.lazy  :99  ][DEBUG   ][4712] LazyLoaded saltutil.find_job
2022-07-18 14:54:49,281 [salt.minion      :896 ][DEBUG   ][4712] Minion return retry timer set to 8 seconds (randomized)
2022-07-18 14:54:49,281 [salt.minion      :2173][INFO    ][4712] Returning information for job: 20220718125447920328
2022-07-18 14:54:49,439 [git.cmd          :814 ][DEBUG   ][4712] Popen(['git', 'version'], cwd=C:\Program Files\Salt Project\Salt\bin, universal_newlines=False, shell=None, istream=None)
2022-07-18 14:54:49,453 [git.cmd          :814 ][DEBUG   ][4712] Popen(['git', 'version'], cwd=C:\Program Files\Salt Project\Salt\bin, universal_newlines=False, shell=None, istream=None)
2022-07-18 14:54:49,484 [salt.crypt       :510 ][DEBUG   ][4712] Initializing new AsyncAuth for ('C:\\ProgramData\\Salt Project\\Salt\\conf\\pki\\minion', 'PC-WINDOWS10', 'tcp://10.1.3.5:4506')
2022-07-18 14:54:49,484 [salt.crypt       :212 ][DEBUG   ][4712] salt.crypt.get_rsa_key: Loading private key
2022-07-18 14:54:49,484 [salt.crypt       :192 ][DEBUG   ][4712] salt.crypt._get_key_with_evict: Loading private key
2022-07-18 14:54:49,578 [salt.crypt       :904 ][DEBUG   ][4712] Loaded minion key: C:\ProgramData\Salt Project\Salt\conf\pki\minion\minion.pem
2022-07-18 14:54:49,578 [salt.transport.zeromq:158 ][DEBUG   ][4712] Connecting the Minion to the Master URI (for the return server): tcp://10.1.3.5:4506
2022-07-18 14:54:49,594 [salt.transport.zeromq:1233][DEBUG   ][4712] Trying to connect to: tcp://10.1.3.5:4506
2022-07-18 14:54:49,594 [salt.transport.zeromq:158 ][DEBUG   ][4712] Connecting the Minion to the Master URI (for the return server): tcp://10.1.3.5:4506
2022-07-18 14:54:49,625 [salt.transport.zeromq:1233][DEBUG   ][4712] Trying to connect to: tcp://10.1.3.5:4506
2022-07-18 14:54:49,625 [salt.crypt       :220 ][DEBUG   ][4712] salt.crypt.get_rsa_pub_key: Loading public key
2022-07-18 14:54:49,625 [salt.transport.zeromq:179 ][DEBUG   ][4712] Closing AsyncZeroMQReqChannel instance
2022-07-18 14:54:49,642 [tornado.application:640 ][ERROR   ][4712] Exception in callback functools.partial(<function wrap.<locals>.null_wrapper at 0x00000286CCAA29D0>, <salt.ext.tornado.concurrent.Future object at 0x00000286CCAD24F0>)
Traceback (most recent call last):
  File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004.1-py3.8.egg\salt\ext\tornado\ioloop.py", line 606, in _run_callback
    ret = callback()
  File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004.1-py3.8.egg\salt\ext\tornado\stack_context.py", line 278, in null_wrapper
    return fn(*args, **kwargs)
  File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004.1-py3.8.egg\salt\ext\tornado\ioloop.py", line 628, in _discard_future_result
    future.result()
  File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004.1-py3.8.egg\salt\ext\tornado\concurrent.py", line 249, in result
    raise_exc_info(self._exc_info)
  File "<string>", line 4, in raise_exc_info
  File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004.1-py3.8.egg\salt\ext\tornado\gen.py", line 1064, in run
    yielded = self.gen.throw(*exc_info)
  File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004.1-py3.8.egg\salt\crypt.py", line 654, in _authenticate
    creds = yield self.sign_in(channel=channel)
  File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004.1-py3.8.egg\salt\ext\tornado\gen.py", line 1056, in run
    value = future.result()
  File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004.1-py3.8.egg\salt\ext\tornado\concurrent.py", line 249, in result
    raise_exc_info(self._exc_info)
  File "<string>", line 4, in raise_exc_info
  File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004.1-py3.8.egg\salt\ext\tornado\gen.py", line 309, in wrapper
    yielded = next(result)
  File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004.1-py3.8.egg\salt\crypt.py", line 763, in sign_in
    sign_in_payload = self.minion_sign_in_payload()
  File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004.1-py3.8.egg\salt\crypt.py", line 948, in minion_sign_in_payload
    with salt.utils.files.fopen(self.pub_path) as f:
  File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004.1-py3.8.egg\salt\utils\files.py", line 385, in fopen
    f_handle = open(*args, **kwargs)  # pylint: disable=resource-leakage
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\ProgramData\\Salt Project\\Salt\\conf\\pki\\minion\\minion.pub'

Expected behavior

The old private and public keys are regenerated.

Screenshots

Versions Report

salt PC-WINDOWS10 test.versions (Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)
PC-WINDOWS10:
    Salt Version:
              Salt: 3004.1
     
    Dependency Versions:
              cffi: 1.14.6
          cherrypy: 18.6.1
          dateutil: 2.8.1
         docker-py: Not Installed
             gitdb: 4.0.7
         gitpython: Not Installed
            Jinja2: 2.10.1
           libgit2: Not Installed
          M2Crypto: Not Installed
              Mako: 1.1.4
           msgpack: 0.6.2
      msgpack-pure: Not Installed
      mysql-python: Not Installed
         pycparser: 2.20
          pycrypto: Not Installed
      pycryptodome: 3.10.1
            pygit2: Not Installed
            Python: 3.8.8 (tags/v3.8.8:024d805, Feb 19 2021, 13:18:16) [MSC v.1928 64 bit (AMD64)]
      python-gnupg: 0.4.7
            PyYAML: 5.4.1
             PyZMQ: 19.0.0
             smmap: 4.0.0
           timelib: 0.2.4
           Tornado: 4.5.3
               ZMQ: 4.3.2
     
    System Versions:
              dist:   
            locale: cp1252
           machine: AMD64
           release: 10
            system: Windows
           version: 10 10.0.19041 SP0 Multiprocessor Free

Additional context

This is working fine on my Ubuntu 20.04 minion
2022-07-18 15:05:44,826 [salt.minion      :1693][INFO    ][15324] User root Executing command saltutil.regen_keys with jid 20220718130544847633
2022-07-18 15:05:44,828 [salt.minion      :1701][DEBUG   ][15324] Command details {'fun': 'saltutil.regen_keys', 'arg': [], 'tgt': 'pc-892428', 'jid': '20220718130544847633', 'ret': '', 'tgt_type': 'glob', 'user': 'root'}
2022-07-18 15:05:44,834 [salt.utils.process:1219][DEBUG   ][15324] Subprocess ProcessPayload-Job-20220718130544847633 added
2022-07-18 15:05:44,844 [salt.utils.entrypoints:57  ][DEBUG   ][16078] Using importlib_metadata to load entry points
2022-07-18 15:05:44,909 [salt.utils.lazy  :99  ][DEBUG   ][16078] LazyLoaded jinja.render
2022-07-18 15:05:44,911 [salt.utils.lazy  :99  ][DEBUG   ][16078] LazyLoaded yaml.render
2022-07-18 15:05:44,914 [salt.minion      :1890][INFO    ][16078] Starting a new job 20220718130544847633 with PID 16078
2022-07-18 15:05:44,918 [salt.utils.lazy  :102 ][DEBUG   ][16078] Could not LazyLoad direct_call.allow_missing_func: 'direct_call.allow_missing_func' is not available.
2022-07-18 15:05:44,923 [salt.utils.lazy  :99  ][DEBUG   ][16078] LazyLoaded saltutil.regen_keys
2022-07-18 15:05:44,925 [salt.crypt       :510 ][DEBUG   ][16078] Initializing new AsyncAuth for ('/etc/salt/pki/minion', 'pc-892428', 'tcp://10.1.3.5:4506')
2022-07-18 15:05:44,925 [salt.crypt       :896 ][INFO    ][16078] Generating keys: /etc/salt/pki/minion
2022-07-18 15:05:45,196 [salt.crypt       :212 ][DEBUG   ][16078] salt.crypt.get_rsa_key: Loading private key
2022-07-18 15:05:45,196 [salt.crypt       :192 ][DEBUG   ][16078] salt.crypt._get_key_with_evict: Loading private key
2022-07-18 15:05:45,242 [salt.crypt       :904 ][DEBUG   ][16078] Loaded minion key: /etc/salt/pki/minion/minion.pem
2022-07-18 15:05:45,242 [salt.transport.zeromq:159 ][DEBUG   ][16078] Connecting the Minion to the Master URI (for the return server): tcp://10.1.3.5:4506
2022-07-18 15:05:45,243 [salt.transport.zeromq:1237][DEBUG   ][16078] Trying to connect to: tcp://10.1.3.5:4506
2022-07-18 15:05:45,244 [salt.loaded.int.module.saltutil:1513][DEBUG   ][16078] Recreating channel to force key regen
2022-07-18 15:05:45,244 [salt.transport.zeromq:180 ][DEBUG   ][16078] Closing AsyncZeroMQReqChannel instance
2022-07-18 15:05:45,245 [salt.minion      :896 ][DEBUG   ][16078] Minion return retry timer set to 10 seconds (randomized)
2022-07-18 15:05:45,245 [salt.minion      :2173][INFO    ][16078] Returning information for job: 20220718130544847633
2022-07-18 15:05:45,246 [salt.crypt       :510 ][DEBUG   ][16078] Initializing new AsyncAuth for ('/etc/salt/pki/minion', 'pc-892428', 'tcp://10.1.3.5:4506')
2022-07-18 15:05:45,246 [salt.transport.zeromq:159 ][DEBUG   ][16078] Connecting the Minion to the Master URI (for the return server): tcp://10.1.3.5:4506
2022-07-18 15:05:45,246 [salt.transport.zeromq:1237][DEBUG   ][16078] Trying to connect to: tcp://10.1.3.5:4506
2022-07-18 15:05:45,253 [salt.transport.zeromq:180 ][DEBUG   ][16078] Closing AsyncZeroMQReqChannel instance
2022-07-18 15:05:45,254 [salt.minion      :2040][DEBUG   ][16078] minion return: {'success': True, 'return': None, 'retcode': 0, 'jid': '20220718130544847633', 'fun': 'saltutil.regen_keys', 'fun_args': []}
2022-07-18 15:05:45,576 [salt.utils.process:1230][DEBUG   ][15324] Subprocess ProcessPayload-Job-20220718130544847633 cleaned up

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with saltutil.regen_keys and the salt.crypt.py traceback at minion_sign_in_payload, which reports that the Windows minion.pub path is missing. Reproduce the command on Windows and verify that key regeneration completes without the FileNotFoundError and that the regenerated key files are usable.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.