Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an auth runner #33296

Merged
merged 3 commits into from
May 26, 2016
Merged

Add an auth runner #33296

merged 3 commits into from
May 26, 2016

Conversation

whiteinge
Copy link
Contributor

What does this PR do?

Add a new 'auth' runner for creating, deleting, and managing eauth tokens.

What issues does this PR fix or reference?

#20363

Tests written?

No

@whiteinge
Copy link
Contributor Author

@cachedout, @thatch45: This is a tad sensitive. Anything about this rub you the wrong way?

Primary use-case is to be able to create long-lived Salt tokens tied to an eauth user that can be used in scripts and API calls.

One option is to let the caller specify the expiration time when calling mk_token (as done in this PR; is config-gated). Another option would be to leave mk_token alone and make a separate method that does most of what mk_token does.

@cachedout
Copy link
Contributor

Hrmm.

I don't like the fact that this user override is global. I can see the case for having a privileged user that's allowed to do that but this doesn't feel nearly granular enough to me. Thoughts?

@whiteinge
Copy link
Contributor Author

whiteinge commented May 17, 2016

Do agree. I've been puzzling over ways to differentiate "privileged" or not. We could check the calling user as root/sudo vs via eauth. Other thoughts?

@cachedout
Copy link
Contributor

@whiteinge Yeah, that's kind of what I'm thinking. What do you think, @thatch45 ?

@thatch45
Copy link
Contributor

I am going to agree with @cachedout but I think that the user granular setting could be an additional feature to this PR

@whiteinge
Copy link
Contributor Author

Good suggestions. Added per-user whitelist.

@thatch45
Copy link
Contributor

very nice

@cro
Copy link
Contributor

cro commented May 17, 2016

ping @Lothiraldan
Helpful for SaltPad?

@cachedout
Copy link
Contributor

Go Go Jenkins!

@cachedout
Copy link
Contributor

Well something went sideways in the test suite here. @whiteinge do you have a moment to take a look?

@whiteinge
Copy link
Contributor Author

Yay, tests. <3

@cachedout cachedout merged commit 4d0ebc5 into saltstack:develop May 26, 2016
@whiteinge whiteinge deleted the auth-runner branch May 26, 2016 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants