Unable to use /run endpoint with token authentication #56168
Labels
Bug
broken, incorrect, or confusing behavior
Salt-API
severity-medium
3rd level, incorrect or bad functionality, confusing and lacks a work around
Milestone
Description of Issue
Reading the docs on how to use the salt-api /run endpoint tells me that the following should work:
I have created a token and ran the code above, and I am receiving a 401 error:
2020-02-14T16:29:08Z [salt.auth][WARNING] Authentication failure of type "token" occurred.
2020-02-14T16:29:08Z [salt.master][WARNING] Authentication failure of type "token" occurred.
Setup
My salt eauth setup, I am using an ldap service account for this named 'automation_user'. That account can create a token, and use that same token against other endpoints. It appears to only have issues with endpoints where the token is included in the data. If the token is part of the header there is no issue.
Steps to Reproduce Issue
Create Token as automation_user,
Use token in example code to run a test.ping on the /run endpoint
Receive 401 error from salt-api: "No permission -- see authorization schemes"
salt-master container also generates two errors:
"2020-02-14T16:29:08Z [salt.auth][WARNING] Authentication failure of type "token" occurred.
2020-02-14T16:29:08Z [salt.master][WARNING] Authentication failure of type "token" occurred."
Versions Report
The text was updated successfully, but these errors were encountered: