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

Fix token_file creation using external auth with salt-key #49223

Merged
merged 1 commit into from
Aug 23, 2018

Conversation

msciciel
Copy link
Contributor

What does this PR do?

Fix salt-key external auth using token file. salt-key with --auth and --make-token options needs to create token file. Options token_file which is used as a path for token file is provided by config.client_config.

What issues does this PR fix or reference?

#49222

Previous Behavior

$ salt-key -T --auth=pam
username: example
password:
Error: 'token_file'

$ ls salt_token
ls: cannot access salt_token: No such file or directory

New Behavior

$ salt-key -T --auth=pam
username: example
password:
Accepted Keys:
example1
example2
Denied Keys:
Unaccepted Keys:
Rejected Keys:

$ ls salt_token
salt_token

Tests written?

No

Commits signed with GPG?

No

@rallytime
Copy link
Contributor

@msciciel This is causing a related test to fail. Can you take a look?

https://jenkinsci.saltstack.com/job/pr-kitchen-centos7-py3/job/PR-49223/2/

salt-key with '--auth' and '--make-token' options needs to create
token file. Options 'token_file' which is used as a path for token
file is provided by config.client_config.
@msciciel msciciel force-pushed the fix-salt-key-eauth-token-file branch from 52a1a1e to 412015b Compare August 23, 2018 16:38
@rallytime rallytime merged commit 2947028 into saltstack:develop Aug 23, 2018
garethgreenaway added a commit to garethgreenaway/salt that referenced this pull request Sep 19, 2019
dwoz added a commit that referenced this pull request Dec 21, 2019
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.

3 participants