Skip to content
Zero Trust Access to Infrastructure and Applications
Go C Shell C++ Makefile Ruby Other
Branch: master
Clone or download

Latest commit

dnwe and russjones fix: open with RDWR for exclusive file lock
In order to place an exclusive lock on NFS storage, the file must be
opened for writing.

Fixes #3779

Signed-off-by: Dominic Evans <dominic.evans@uk.ibm.com>
Latest commit c4ed842 May 28, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Add backend engineers to root-level .go files CODEOWNERS May 5, 2020
assets Use tighter permissions for /var/lib/teleport everywhere May 15, 2020
build.assets Merge pull request #3723 from gravitational/gus/fix-package-build-chmod May 19, 2020
docker Update docker/README and its Dockerfile (#3400) Mar 4, 2020
docs Remove pam_script.so docs from SSH PAM page May 21, 2020
e @ 79049bb Bump e-ref May 27, 2020
examples Teleport example helm README update (#3750) May 20, 2020
fixtures Add TLS certs to user identity files Jul 3, 2019
integration Fix remaining gosimple findings May 27, 2020
lib fix: open with RDWR for exclusive file lock May 29, 2020
modules/pam_teleport Fix memory leak and pass variables to PAM. Feb 6, 2020
tool Fix remaining gosimple findings May 27, 2020
vagrant Merge pull request #3782 from jbritt1/patch-2 May 29, 2020
vendor Remove vendored openstack and oidc plugins May 5, 2020
webassets @ 40437ec Update webassets May 6, 2020
.gitattributes Merge Teleport V4.3 UI branch to master (#3583) Apr 15, 2020
.gitignore Merge Teleport V4.3 UI branch to master (#3583) Apr 15, 2020
.gitmodules Merge Teleport V4.3 UI branch to master (#3583) Apr 15, 2020
CHANGELOG.md Updated CHANGELOG.md. May 27, 2020
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md Dec 18, 2017
CONTRIBUTING.md Update CONTRIBUTING.md Aug 10, 2017
Gopkg.lock Remove vendored openstack and oidc plugins May 5, 2020
Gopkg.toml Updates k8s client to 0.17.3 (#3362) Feb 19, 2020
LICENSE Apply apache license to teleport Oct 31, 2015
Makefile Add gosimple to the list of enabled linters May 27, 2020
README.md Use tighter permissions for /var/lib/teleport everywhere May 15, 2020
constants.go Merge branch 'master' into issue-3321 May 14, 2020
doc.go Added proper comments to `teleport` package Jan 4, 2017
metrics.go Add prometheus metric mirroring /readyz state May 14, 2020
roles.go Merge Teleport V4.3 UI branch to master (#3583) Apr 15, 2020
version.go Release 4.2.2-alpha.1. Jan 20, 2020
version.mk Added proper comments to `teleport` package Jan 4, 2017

README.md

Gravitational Teleport

Gravitational Teleport is a modern security gateway for remotely accessing:

  • Clusters of Linux servers via SSH or SSH-over-HTTPS in a browser.
  • Kubernetes clusters.

It is intended to be used instead or together with sshd for organizations who need:

  • SSH audit with session recording/replay.
  • Kubernetes API Access with audit and kubectl exec recording/replay.
  • Easily manage trust between teams, organizations and data centers.
  • Have SSH or Kubernetes access to behind-firewall clusters without any open ports.
  • Role-based access control (RBAC) for SSH protocol.
  • Unified RBAC for SSH and Kubernetes.

In addition to its hallmark features, Teleport is interesting for smaller teams because it facilitates easy adoption of the best infrastructure security practices like:

  • No need to distribute keys: Teleport uses certificate-based access with automatic certificate expiration time.
  • 2nd factor authentication (2FA) for SSH and Kubernetes.
  • Collaboratively troubleshoot issues through session sharing.
  • Single sign-on (SSO) for SSH/Kubernetes and your organization identities via Github Auth, OpenID Connect or SAML with endpoints like Okta or Active Directory.
  • Cluster introspection: every SSH node and its status can be queried via CLI and Web UI.

Teleport is built on top of the high-quality Golang SSH implementation and it is fully compatible with OpenSSH and can be used with sshd servers and ssh clients.

Project Links Description
Teleport Website The official website of the project
Documentation Admin guide, user manual and more
Demo Video 3-minute video overview of the UI.
Teleconsole The free service to "invite" SSH clients behind NAT, built on top of Teleport
Blog Our blog where we publish Teleport news
Security Updates Teleport Community Edition Security Updates
Community Forum Teleport Community Forum

Installing and Running

Download the latest binary release, unpack the .tar.gz and run sudo ./install. This will copy Teleport binaries into /usr/local/bin.

Then you can run Teleport as a single-node cluster:

$ sudo teleport start

In a production environment Teleport must run as root. But to play, just do chown $USER /var/lib/teleport and run it under $USER, in this case you will not be able to login as someone else though.

Docker

Deploy Teleport

If you wish to deploy Teleport inside a Docker container:

# This command will pull the Teleport container image for version 4.2.0
# Replace 4.2.0 with the version you need:
$ docker pull quay.io/gravitational/teleport:4.2.0

View latest tags on Quay.io | gravitational/teleport

For Local Testing and Development

Follow instructions at docker/README

Building Teleport

Teleport source code consists of the actual Teleport daemon binary written in Golang, and also of a web UI (a git submodule located in /webassets directory) written in Javascript.

Make sure you have Golang v1.13 or newer, then run:

# get the source & build:
$ mkdir -p $GOPATH/src/github.com/gravitational
$ cd $GOPATH/src/github.com/gravitational
$ git clone https://github.com/gravitational/teleport.git
$ cd teleport
$ make full

# create the default data directory before starting:
$ sudo mkdir -p -m0700 /var/lib/teleport
$ sudo chown $USER /var/lib/teleport

If the build succeeds the binaries will be placed in $GOPATH/src/github.com/gravitational/teleport/build

NOTE: The Go compiler is somewhat sensitive to amount of memory: you will need at least 1GB of virtual memory to compile Teleport. 512MB instance without swap will not work.

NOTE: This will build the latest version of Teleport, regardless of whether it is stable. If you want to build the latest stable release, git checkout to that tag (e.g. git checkout v4.2.0) before running make full.

Rebuilding Web UI

Teleport Web UI is located in the Gravitational Webapps monorepo. You can clone that repository and rebuild teleport UI package with:

$ git clone git@github.com:gravitational/webapps.git
$ cd webapps
$ make build-teleport

Then you can replace Teleport web UI files with the one found in the generated /dist folder.

To enable speedy iterations on the Web UI, you can run a local web-dev server.

You can also tell teleport to load the web UI assets from the source directory. To enable this behavior, set the environment variable DEBUG=1 and rebuild with the default target:

# Run Teleport as a single-node cluster in development mode:
$ DEBUG=1 ./build/teleport start -d

Keep the server running in this mode, and make your UI changes in /dist directory. Refer to web/README.md for instructions on how to update the Web UI.

Updating Documentation

TL;DR version:

make docs
make run-docs

For more details, take a look at docs/README

Why did We Build Teleport?

The Teleport creators used to work together at Rackspace. We noticed that most cloud computing users struggle with setting up and configuring infrastructure security because popular tools, while flexible, are complex to understand and expensive to maintain. Additionally, most organizations use multiple infrastructure form factors such as several cloud providers, multiple cloud accounts, servers in colocation, and even smart devices. Some of those devices run on untrusted networks, behind third party firewalls. This only magnifies complexity and increases operational overhead.

We had a choice, either to start a security consulting business or build a solution that’s dead-easy to use and understand, something that creates an illusion of all of your servers being in the same room as you as if they were magically teleported. And Teleport was born!

More Information

Support and Contributing

We offer a few different options for support. First of all, we try to provide clear and comprehensive documentation. The docs are also in Github, so feel free to create a PR or file an issue if you think improvements can be made. If you still have questions after reviewing our docs, you can also:

  • Join the Teleport Community to ask questions. Our engineers are available there to help you.
  • If you want to contribute to Teleport or file a bug report/issue, you can do so by creating an issue here in Github.
  • If you are interested in Teleport Enterprise or more responsive support during a POC, we can also create a dedicated Slack channel for you during your POC. You can reach out to us through our website to arrange for a POC.

Is Teleport Secure and Production Ready?

Teleport has completed several security audits from the nationally recognized technology security companies. Some of them have been made public. We are comfortable with the use of Teleport from a security perspective.

You can see the list of companies who use Teleport in production on the Teleport product page.

However, Teleport is still a relatively young product so you may experience usability issues. We are actively supporting Teleport and addressing any issues that are submitted to this repo. Ask questions, send pull requests, report issues and don't be shy! :)

The latest stable Teleport build can be found in Releases

Who Built Teleport?

Teleport was created by Gravitational Inc. We have built Teleport by borrowing from our previous experiences at Rackspace. It has been extracted from Gravity, our Kubernetes distribution optimized for deploying and remotely controlling complex applications into multiple environments at the same time:

  • Multiple cloud regions
  • Colocation
  • Private enterprise clouds located behind firewalls
You can’t perform that action at this time.