Commit Graph
80 Commits
Author SHA1 Message Date
dmitri 9decde57cc tctl: do not create datadir/host_uuid if none has been found - if the
client runs with elevated permissions and the command fails (for
instance, when the auth server state has not yet been generated), it
will leave the file behind possibly making further attempts to properly
generate content in data directory by a lower-privilege process impossible.
2016-09-22 13:43:58 +02:00
Ev Kontsevoy a2c7b3c100 Version bump
Also improved the error message for self-signed certificates
Fixes #511
2016-09-15 16:57:00 -07:00
Ev Kontsevoy b4a6a4f972 Cleaned up Teleport logging
* Downgraded many messages from `Debug` to `Info`
* Edited messages so they're not verbose and not too short
* Added "context" to some
* Added logical teleport component as [COMPONENT] at the beginning of
  many, making logs **vastly** easier to read.
* Added one more logging level option when creating Teleport (only
  Teleconsole uses it for now)

The output with 'info' severity now look extremely clean.
This is startup, for example:

```
INFO[0000] [AUTH]  Auth service is starting on turing:32829  file=utils/cli.go:107
INFO[0000] [SSH:auth] listening socket: 127.0.0.1:32829  file=sshutils/server.go:119
INFO[0000] [SSH:auth] is listening on 127.0.0.1:32829    file=sshutils/server.go:144
INFO[0000] [Proxy] Successfully registered with the cluster  file=utils/cli.go:107
INFO[0000] [Node] Successfully registered with the cluster  file=utils/cli.go:107
INFO[0000] [AUTH] keyAuth: 127.0.0.1:56886->127.0.0.1:32829, user=turing  file=auth/tun.go:370
WARN[0000] unable to load the auth server cache: open /tmp/cluster-teleconsole-client781495771/authservers.json: no such file or directory  file=auth/tun.go:594
INFO[0000] [SSH:auth] new connection 127.0.0.1:56886 -> 127.0.0.1:32829 vesion: SSH-2.0-Go  file=sshutils/server.go:205
INFO[0000] [AUTH] keyAuth: 127.0.0.1:56888->127.0.0.1:32829, user=turing.teleconsole-client  file=auth/tun.go:370
INFO[0000] [AUTH] keyAuth: 127.0.0.1:56890->127.0.0.1:32829, user=turing.teleconsole-client  file=auth/tun.go:370
INFO[0000] [Node] turing connected to the cluster 'teleconsole-client'  file=service/service.go:158
INFO[0000] [AUTH] keyAuth: 127.0.0.1:56892->127.0.0.1:32829, user=turing  file=auth/tun.go:370
INFO[0000] [SSH:auth] new connection 127.0.0.1:56890 -> 127.0.0.1:32829 vesion: SSH-2.0-Go  file=sshutils/server.go:205
INFO[0000] [SSH:auth] new connection 127.0.0.1:56888 -> 127.0.0.1:32829 vesion: SSH-2.0-Go  file=sshutils/server.go:205
INFO[0000] [Node] turing.teleconsole-client connected to the cluster 'teleconsole-client'  file=service/service.go:158
INFO[0000] [Node] turing.teleconsole-client connected to the cluster 'teleconsole-client'  file=service/service.go:158
INFO[0000] [SSH] received event(SSHIdentity)             file=service/service.go:436
INFO[0000] [SSH] received event(ProxyIdentity)           file=service/service.go:563
```
You can easily tell that auth, ssh node and proxy have successfully started.
2016-09-02 17:28:18 -07:00
Ev Kontsevoy 48a74fbeca Intermediate commit (scp up/down works agaisnt openSSH servers) 2016-05-26 14:46:56 -07:00
Ev Kontsevoy 9c5235ac90 Minor changes 2016-05-23 23:56:45 -07:00
Ev Kontsevoy 2d566ecbe2 Intermediate commit 2016-05-23 15:50:53 -07:00
Ev Kontsevoy 389e0a1a75 Started working on multi-site, multi-cluster demo via Docker 2016-05-09 16:27:50 -07:00
Ev Kontsevoy fcb9e7e799 Tried to make the error message better
When a user tries to login with a non-existing mapping (local OS does
not know anything about 'vince') he gets an ugly message:

"ERROR: cannot start shell"

Instead I wanted to show a nicer "host 'turing' does not have a local
user 'vince'"

The closest I could get was a generic 'access denied' + an informative
logging message in teleport logs.
2016-05-06 22:49:03 -07:00
Ev Kontsevoy 5e80c2d662 Simple filesystem-based keystore for TSH
Started re-writing Teleport client keystore. From a buggy JSON-to-file
to a standard, directory/filebased API behind a standard interface to
allow for alternative implementations.

```
~/.tsh/
└── sessions
    └── localhost
        ├── cert
        ├── key
        └── pub
```
2016-04-18 22:56:21 -07:00
Ev Kontsevoy 3599d4025e In CLI mode without -d flag Teleport now logs with Error level 2016-03-15 18:18:18 -07:00
klizhentas 7a2a9e334f add support for TELEPORT_DEBUG_TESTS environment variable turning on verbose testing 2016-03-14 14:07:45 -07:00
klizhentas d4e741ffc7 report errors in case of SSH access denied, fixes #179 2016-03-08 16:29:08 -08:00
klizhentas 1eb952b89f properly propagate HTTP errors, fixes #172 2016-03-07 17:05:57 -08:00
alexlyulkov b6a489df66 Merge pull request #175 from gravitational/alex/fatal-error
Fixed tests, fixed fatal error
2016-02-29 13:35:24 +03:00
Alex Lyulkov 745916a11f fixed FatalError 2016-02-29 13:30:46 +03:00
Ev Kontsevoy 02c6786521 Intermediate commit 2016-02-28 14:22:52 -08:00
Alex Lyulkov 545e3cb497 Fixed tests, fixed FatalError 2016-02-29 00:16:26 +03:00
Ev Kontsevoy e834cb25ac Minor fixes 2016-02-26 16:49:05 -08:00
klizhentas 6a9ad7b820 check nodes names when inviting them, fixes #119 2016-02-18 14:55:39 -08:00
Ev Kontsevoy bcfcefa8e5 Fixed issue #126
Summary:

Sasha proposed to use the certificate principal instead of the host name
when establishing new SSH connections.

What I did:

Replaced `ReadKeys()` function in `auth/init.go` with `ReadIdentity()`
which, instead of a simple "key signer" returns a more comprehensive
structure called "Identity"

The structure has the `Cert` field which can be used to obtain "valid
principals".

The first principal is used as an SSH username, instead of the hostname
like before.
2016-02-13 18:47:58 -08:00
Ev Kontsevoy 8ba6b474c6 Fixes #122 and fixes the dockerized build 2016-02-13 17:09:05 -08:00
klizhentas 26b3dabaae fixed #121 2016-02-13 12:03:01 -08:00
Ev Kontsevoy 7592e974cf Merge branch 'ev/105' into ev/105-tctl
Conflicts:
	tool/tctl/main.go
2016-02-09 14:47:59 -08:00
Ev Kontsevoy 2db4d98213 Incorporated PR comments from here:
https://github.com/gravitational/teleport/pull/115
2016-02-09 13:46:34 -08:00
Ev Kontsevoy 1610105910 Started work on simplifying tctl CLI 2016-02-08 22:29:15 -08:00
Ev Kontsevoy 058f6eb9cf Added rudimentary logging control via --debug flag 2016-02-08 17:28:03 -08:00
Ev Kontsevoy 47f95c0f9e Got the basics done for 'teleport' 2016-02-07 23:35:34 -08:00
Ev Kontsevoy 813c0ec7b4 Minor changes (not affecting functionality) 2016-02-05 15:20:04 -08:00
Ev Kontsevoy 7829880507 Moved to a forked kingpin for CLI arg parsing 2016-02-05 11:44:46 -08:00
Alex Lyulkov d2f50cf4b6 Fixed tests logging 2016-02-05 17:09:21 +03:00