Commit graph

405 commits

Author SHA1 Message Date
Roman Tkachenko 143b834e57 Changes for the upcoming teleport pro:
* Allow external audit log plugins
* Add support for auth API server plugins
* Add license file path configuration parameter (not used in open-source)
* Extend audit log with user login events
2017-11-21 17:35:58 -08:00
Russell Jones 9ad600d39b Forwarding to proxy is controlled by a global out-of-band
request. Always forward Teleport agent to node in Web UI.
Support the -A flag in tsh to optionally forward agent to
node in CLI.
2017-11-16 00:11:25 +00:00
sokoow 56f778a19d Fixes for https://github.com/gravitational/teleport/pull/1426 2017-11-01 21:03:20 +00:00
sokoow a737326042 Adding disable-tls flag, fixing https://github.com/gravitational/teleport/issues/1304 2017-11-01 21:03:20 +00:00
mricher b58cb051e8
Correct various typos
This was fixed running the `misspell` linter in fix mode using
`gometalinter`. The exact command I ran was :
```
gometalinter --vendor --disable-all -E misspell --linter='misspell:misspell -w {path}:^(?P<path>.*?\.go):(?P<line>\d+):(?P<col>\d+):\s*(?P<message>.*)$' ./...
```

Some typo were fixed by hand on top of it.
2017-10-20 10:20:26 +02:00
Roman Tkachenko aeea8e9e8a Merge branch 'master' into roman/plugins 2017-10-16 16:55:54 -07:00
Ev Kontsevoy 57ac02f381 Minor tweaks for 2.3.5
- Documentation edit (closes #1404)
- Updated logging level for configuration (closes #1403)
2017-10-16 14:10:38 -07:00
Roman Tkachenko 5dbda4f41b Use plugins mechanism instead of oss/e flag 2017-10-13 17:32:45 -07:00
Ev Kontsevoy 63ea06d416 Removed 'tsh agent'
Fixes #1126

2.3 had the deprecation warning, this one removes it.
2017-09-22 14:34:35 -07:00
Ev Kontsevoy 76df0127e4 Removed tctl create user.yaml feature
It would create a user in a always-disabled state because no 2FA and no
password would be assigned to him
2017-09-11 14:17:22 -07:00
Ev Kontsevoy 93f7dd3bf9 Better handling of "development mode"
Instead of quietly changing behavior because `DEBUG` envar was set to
true, Teleport now explicitly requires scary --insecure flag to enable
this behavior.
2017-09-10 13:45:14 -07:00
Ev Kontsevoy 3d54c3e423 Added a simple --text formatter for tctl get users
It had to work well for both OSS and Enterprise, so it's just a list of
user names.
2017-09-07 18:11:41 -07:00
Ev Kontsevoy f4b1b7a9d8 Merge branch 'master' into ev/1267 2017-09-06 19:38:37 -07:00
Ev Kontsevoy 0cc39838ae Removed 'goterm' dependency
goterm had no license, I quickly replaced it with our own little table
formatter.

also rewrote some tsh commands, that were using home-made formatting, to
the new table, so the output is now much nicer.
2017-09-06 19:06:48 -07:00
Ev Kontsevoy fecf6183da Fixed the unit tests 2017-09-06 14:22:40 -07:00
Ev Kontsevoy dd5f08c058 Added a global distro flag
This allows anywhere in Teleport code to quickly check if it's running
under enterprise or OSS edition

Refs #1267
2017-09-06 14:19:54 -07:00
Ev Kontsevoy d965e9e0a3 Added cleaner way to specify which distribution of Teleport is running 2017-09-06 14:19:54 -07:00
Ev Kontsevoy 9604d8661e Updated to the latest enterprise version 2017-09-05 23:24:38 -07:00
Ev Kontsevoy cc63502987 Fixed the build (merged lost commit) 2017-09-05 22:52:56 -07:00
Ev Kontsevoy 38127d75b5 Implemented -f (force) flag for tctl create
`tctl create` used to create or update (AKA "upsert") resources.
Now there's a difference:

`--force, -f` flag, if not set, means "create only". Otherwise it means
"update".

This means you can fail updating non-existing resources.
2017-09-05 22:52:56 -07:00
Ev Kontsevoy a7db6d7ca6 tctl changes (polish for 2.3)
This commit refs #1137

- tctl get user/joe now works (as reported in #1247)
- tctl create/rm roles changes
- added synonyms for various resources
- made YAML the default output for tctl get
- added better help + examples for tctl get
- edited error messages
- minor refactoring
- added the system of "command plugins" which allows enterprise version
  of tctl to introduce different behavior to OSS commands
2017-09-03 19:23:57 -07:00
Ev Kontsevoy d0706962d1 New way to customize the behavior of tctl for the enterprise users. 2017-09-03 19:21:57 -07:00
Russell Jones c543067001 Removed namespaces and expires from user interface. 2017-08-30 18:11:13 +00:00
Sasha Klizhentas d182d1bcc8 switch from client-go to apimachinery release-1.7 2017-08-28 18:25:39 -07:00
Sasha Klizhentas 0c77c5c0e9 refactor internal rule representation 2017-08-23 19:08:56 -07:00
Sasha Klizhentas 8b81a0c384 Migrate to golang/dep for dependency management
Update following packages:

* Replace Sirupsen/log with sirupsen/log everywhere
* Update etcd client to 3.2.4
* Update docker/term to moby/term
* Update kr/pty to v1.0.0 release
* Update K8s client to 2.0
2017-08-22 15:30:30 -07:00
Ev Kontsevoy 6bd1737268 Friendlier error message
When `tctl` is executed on a regular node the error message could be
better.

With this commit it will say "tctl must be executed on the auth server"
2017-08-20 13:26:09 -07:00
Ev Kontsevoy e483e1404a Added (terrible) implementation of tsh show 2017-08-18 18:48:35 -07:00
Ev Kontsevoy 6150216653 Changes to how TSH deals with identity files
- Renamed "dir" format to "openssh"
- Replaced self-made key fingerprinting function with a standard one
- Changed fingerprinting from legacy md5 to sha256
2017-08-18 17:31:32 -07:00
Ev Kontsevoy 94cc4a18d4 A few fixes in docs and in code
- Updated "enterprise" and "quick start"
- Fixed #1208
2017-08-16 21:42:35 -07:00
Russell Jones 865000d6fe Reintroduced --auth flag to tsh. 2017-08-09 17:24:54 -07:00
Russell Jones b4c805fe23 Re-factored cluster configuration. 2017-08-07 17:20:16 -07:00
Ev Kontsevoy f547a2b369 Merge remote-tracking branch 'origin/master' into ev/r 2017-07-25 22:43:42 -07:00
Ev Kontsevoy e301279b5c Finished tctl refactoring
`tctl` can now be compiled for multiple distributions, with different
features (commands) enabled or disabled.
2017-07-25 22:41:19 -07:00
Ev Kontsevoy 432cb34c91 Migrated 'users' and 'nodes' CLI commands to the new model 2017-07-25 22:13:02 -07:00
Ev Kontsevoy 39c6fc347c Merge branch 'master' into ev/r 2017-07-23 22:27:08 -07:00
Russell Jones 6299d349c1 Introduced and migrated to RoleV3. 2017-07-18 11:20:48 -07:00
Ev Kontsevoy ed06f7285d Refactoring of tctl
This commit prepares TCTL for easier modifications for 2.3
Specifically:

1. CLI commands have been placed in separate go files.
2. Removed some dead code. We had commands that haven't even been hooked
   to CLI!
3. Added comments in a few places.
2017-07-17 22:23:26 -07:00
Ev Kontsevoy 32146ba8b8 Build / test improvements
1. Got rid of `tool/tsh/common` package. See below.
2. Fixed logger in config test (it was getting reset by the test itself)

The reason we don't need `tool/tsh/common` is because `tsh` is the same
for OSS or Enterprise versions. This is good for two reasons:

1. Enterprise customers don't need to bother telling users to use a
   proprietary binary, they can just get OSS (which will eventually get
   pacakged for OSX/Ubuntu/RHEL) and will be one `apt-get` or `brew install` away

2. Easier for us to package/maintain.
2017-07-17 21:10:14 -07:00
Ev Kontsevoy 7a14a6a1cf Merge remote-tracking branch 'origin/master' into ev/e 2017-07-12 23:10:41 -07:00
Ev Kontsevoy eb17a06c32 Merge remote-tracking branch 'origin/master' into ev/e 2017-07-12 13:51:36 -07:00
Ev Kontsevoy 7f8e97fa64 Code review changes
- Added license header to identity.go
- Renamed MakeNewKey() to NewKey()
- Changed the identity file creation to use defaul umask
2017-07-12 13:46:40 -07:00
Ev Kontsevoy f5f388f042 Merge remote-tracking branch 'origin/master' into ev/tsh-identity 2017-07-12 13:42:23 -07:00
Ev Kontsevoy 4483c8c00a Added a deprecation warning
Asking you to review the wording.
2017-07-10 22:49:57 -07:00
Ev Kontsevoy 84bb78ad2c Finished implementation of --out flag for tsh login
* Hooked up `MakeIdentityFile()` with `tsh.onLogin()`
* Made sure that `--out` flag prevents from writing into `~/.tsh`

Closes #1127
2017-07-10 22:27:37 -07:00
Ev Kontsevoy 499aace638 Started working on #1127
Changes:

* Moved identity file code from tctl (because `tctl auth sign` already
  does what we need) into `lib/client/identity.go`
* Updated tctl to use the new stuff.

Next steps:

* Change `tsh` to use that code
* Tests
2017-07-10 18:28:03 -07:00
Ev Kontsevoy 7ab827acc1 Fixed tests 2017-06-26 13:46:07 -07:00
Ev Kontsevoy 94c35298b8 Preparation for 2.3
- Switched to new way of building Enterprise
- Removed `tctl tunnels` command (preparation for new resources)
- Removed `tctl auth ls` command (preparation for new resources)
2017-06-21 20:14:40 -07:00
Russell Jones 7e17b6f9a7 Added --compat=oldssh flag to generate user certificates without roles. 2017-06-20 16:57:56 -07:00
Ev Kontsevoy 096fff8cdf Removed beta-quality saml command from tctl 2017-06-12 15:04:37 -07:00