Trouble limiting access to module in external_auth when kwargs are specified #67204
Unanswered
fs-nicola-worthington
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a use case where I want to limit access to a group of users, and want to continue to allow them to run a
state.apply
in test mode. I have been using the documentation at https://docs.saltproject.io/en/latest/topics/eauth/index.html as my guide.This is the configuration block in my Salt master config file:
This all works fine, except any and all invocation of
state.apply
is rejected with a 401.If I change this:
to this:
Then
state.apply
is accepted once again, but it doesn't restrict it to only invocations withtest=true
.I have tried changing
test: 'true'
totest: True
andtest: 'True'
andtest: '.*'
, but they all also return a 401 regardless of whether a pass in the kwargtest=true
in the request.There's obviously some silly nuance of the syntax that I'm getting wrong here, but I can't for the life of me see it.
Hoping someone can offer some guidance! 🙏 ❤️
Beta Was this translation helpful? Give feedback.
All reactions