You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
I've been debugging this for a while, coming from #66228. However, the promoted fix does not work for me. It resolves the prior error such that my non-root user can execute the salt command, but I'm getting the following error afterwards:
<DATE> 10:50:38,269 [salt.transport.tcp:306 ][DEBUG ][767223] PubClient conencted to <salt.transport.tcp.PublishClient object at 0x7f6fe1bc1360> '/var/run/salt/master/master_event_pub.ipc'
<DATE> 10:50:38,270 [salt.transport.tcp:1102][DEBUG ][767219] Subscriber at connected
<DATE> 10:50:39,292 [salt.auth :365 ][WARNING ][767231] Authentication failure of type "user" occurred.
<DATE> 10:50:39,292 [salt.master :2393][WARNING ][767231] Authentication failure of type "user" occurred.
The key dictionary contains the expected users and corresponding keys. However the auth_key variable (coming from load["key"]) is an empty string (not None).
@dwoz can you maybe help me why this might be the case?
Setup
Contents of /etc/salt/master.d/auth.conf:
publisher_acl:
me:
- .*
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)
Non-root user can start jobs such as test.ping and permissions to do so are not reset when (re)starting the salt-master service. Was working on 3006.3 before upgrade to 3007.1.
Versions Report
salt --versions-report
Salt Version:
Salt: 3007.1Python Version:
Python: 3.10.14 (main, Apr 3 2024, 21:30:09) [GCC 11.2.0]Dependency Versions:
cffi: 1.16.0cherrypy: unknowndateutil: 2.8.2docker-py: Not Installedgitdb: Not Installedgitpython: Not InstalledJinja2: 3.1.4libgit2: Not Installedlooseversion: 1.3.0M2Crypto: Not InstalledMako: Not Installedmsgpack: 1.0.7msgpack-pure: Not Installedmysql-python: Not Installedpackaging: 23.1pycparser: 2.21pycrypto: Not Installedpycryptodome: 3.19.1pygit2: Not Installedpython-gnupg: 0.5.2PyYAML: 6.0.1PyZMQ: 25.1.2relenv: 0.16.0smmap: Not Installedtimelib: 0.3.0Tornado: 6.3.3ZMQ: 4.3.4Salt Package Information:
Package Type: onedirSystem Versions:
dist: almalinux 8.10 Cerulean Leopardlocale: utf-8machine: x86_64release: 4.18.0-553.22.1.el8_10.x86_64system: Linuxversion: AlmaLinux 8.10 Cerulean Leopard
The text was updated successfully, but these errors were encountered:
Description
I've been debugging this for a while, coming from #66228. However, the promoted fix does not work for me. It resolves the prior error such that my non-root user can execute the salt command, but I'm getting the following error afterwards:
I've debugged the issue and the error message originates in the
auth
module:https://github.com/saltstack/salt/blob/master/salt/auth/__init__.py#L364
The
key
dictionary contains the expected users and corresponding keys. However theauth_key
variable (coming fromload["key"]
) is an empty string (notNone
).@dwoz can you maybe help me why this might be the case?
Setup
Contents of /etc/salt/master.d/auth.conf:
Steps to Reproduce the behavior
Follow instructions at https://docs.saltproject.io/salt/user-guide/en/latest/topics/security.html#publisher-acls to set up publisher-acl and directory permissions.
Expected behavior
Non-root user can start jobs such as test.ping and permissions to do so are not reset when (re)starting the salt-master service. Was working on 3006.3 before upgrade to 3007.1.
Versions Report
salt --versions-report
The text was updated successfully, but these errors were encountered: