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
Uh oh!
There was an error while loading. Please reload this page.
-
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.applyin 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.applyis rejected with a 401.If I change this:
to this:
Then
state.applyis accepted once again, but it doesn't restrict it to only invocations withtest=true.I have tried changing
test: 'true'totest: Trueandtest: 'True'andtest: '.*', but they all also return a 401 regardless of whether a pass in the kwargtest=truein 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