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

Set some defaults from identity file. #2216

Merged
merged 1 commit into from
Sep 13, 2018
Merged

Set some defaults from identity file. #2216

merged 1 commit into from
Sep 13, 2018

Conversation

klizhentas
Copy link
Contributor

This reduces the amount of typing some users have
to do when using identity file:

  • Teleport user is set from the certificate
  • Auth preference is set to local

@klizhentas klizhentas force-pushed the sasha/identity branch 4 times, most recently from 255c25e to 2daefc0 Compare September 13, 2018 23:21
if err != nil {
return trace.Wrap(err)
}
if _, err = output.Write([]byte(data)); err != nil {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be prefixed by \n in case the previous write didn't add a new line?

Copy link
Contributor

@kontsevoy kontsevoy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Related ticket: #2221

This commit reduces the amount of typing some users have
to do when using identity file:

* Teleport user is set from the certificate
* Auth preference is set to local

In addition it fixes several UX problems:

* Commands `tctl auth sign` and `tsh login -o`  now include
trusted CA keys in the identity file.

* Command `tsh ssh -i` is now noninteractive and only
uses identity file for authentication, in case
if identity file can not authenticate, no other interactive
or non-interactive authentication methods will be used.
Before this commit, tsh tried to fallback to interactive
login mode or read the keys from agent socket.
@klizhentas klizhentas merged commit a1116b7 into master Sep 13, 2018
@klizhentas klizhentas deleted the sasha/identity branch September 13, 2018 23:47
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