Commit graph

6115 commits

Author SHA1 Message Date
Gus Luxton 300499e253
[auto] Update AMI IDs for 6.0.2 (#6283) 2021-04-02 20:32:46 -07:00
xacrimon 3d663ab2e8 add fix 2021-04-02 18:30:44 -07:00
Steven Martin e5e899da13
Remove unused * from Roles output. This was a leftover from a old message about roles and enterprise version. (#6258) 2021-04-02 18:09:16 -07:00
Brian Joerger 8ecbefb122
Close leaky direct client. (#6297) 2021-04-02 14:04:54 -07:00
Andrew Lytvynov 6d200faecb
tsh: handle missing cluster name in profile (#6257)
Cluster name can be missing in profiles created by older tsh versions.
Trying to load the client.Key without a cluster name now causes a
failure when using WithAllCerts (because ssh/db/kube certs are
per-cluster).

Also added some output to `tsh status` when no profiles can be loaded.
2021-04-02 11:00:15 -07:00
Andrej Tokarčík 4fde837c59
Don't use OpaqueAccessDenied with CheckAccessToRule (#6246)
* Don't use OpaqueAccessDenied with CheckAccessToRule

* Fix tls_test

Co-authored-by: Andrew Lytvynov <andrew@goteleport.com>
2021-04-01 10:57:14 -07:00
Yurii Matsiuk 7569413f99
Make authToken optional if secret exists (#6273)
Co-authored-by: Gus Luxton <webvictim@gmail.com>
Signed-off-by: Yurii Matsiuk <ymatsiuk@users.noreply.github.com>
2021-04-01 14:37:01 -03:00
Gus Luxton 4c9ec23822
Revert "darwin fips builds (#5866)" (#6265)
* Revert "darwin fips builds (#5866)"

This reverts commit 32ac67db06.

* Remove GO_BINARY references

* Re-add dronegen changes for commands/image

* make dronegen

* Update e ref

* Re-add package signing/notarization for full MacOS builds
2021-04-01 10:12:53 -07:00
Andrej Tokarčík e525c94e1c
Delete obsolete stored keys in LocalKeyAgent.AddKey (#6251)
* Delete obsolete stored keys in LocalKeyAgent.AddKey

* Don't panic when no stored key found
2021-04-01 09:53:15 -07:00
Pierre Beaucamp 1e18bcb76e
Fix regression bug for DynamoDB scaling policy names (#6259) 2021-04-01 07:47:19 -07:00
Alexander Klizhentas 4fbb2ba3a7
Adds encrypted token docs (#6266) (#6269)
Fixes #5996

Adds section on encrypted SAML tokens. Fixes a couple of typos
and missing schema.

Because schema was missing, the connector did not work.
2021-03-31 18:55:20 -07:00
Gus Luxton 6a43a92b0b
dronegen: add buildboxes (#6197) 2021-03-31 13:41:51 -07:00
Gus Luxton e85e465ebf
GitLab Instructions for SSO (#6190) (#6262)
* Add GitLab link for SSO instructions

Co-authored-by: Steven Martin <steven@gravitational.com>
2021-03-31 13:25:44 -07:00
Gus Luxton a956a0c279
Ensure webassets are present when running 'make full' on a fresh clone (#6231) 2021-03-31 13:11:04 -07:00
Andrew Lytvynov 7be86582de Parse all CAs in CertPoolFromCertAuthorities
Returning certPool prematurely omits all but the first CA cert.
2021-03-31 17:44:48 +00:00
Brian Joerger 826ed676fa Refactor ssh.ClientConfig used by tctl and API clients to use the first valid principal as User. 2021-03-30 17:53:29 -07:00
Mike Russell b72c54b231
Update Architecture Overview With Link To User Roles (#6224)
- updating architecture overview with link to user roles when referring
to user roles in the context of the --roles flag
2021-03-30 17:35:58 -07:00
Gus Luxton 854da48990
Add lint-api target and fix lint errors (#6169) 2021-03-30 17:02:04 -07:00
Andrew Lytvynov fffe215570
ssh: fix relogin with jumphosts (#6213)
* ssh: fix relogin with jumphosts

Several fixes to make `tsh ssh -J leaf.proxy.com` work if the root cert
is missing/expired.

* Address review feedback

Correctly parse trusted CAs on GetKey.
Move retry without jumphosts from relogin to UpdateClusterCAs.

* Remove TelpoertClient.AuthMethods override on relogin

It doesn't seem to break anything.
2021-03-30 14:50:07 -07:00
Gus Luxton 71ef02f70b
drone: use emptyDir for /var/lib/docker filesystem and prevent repetitive docker pulls (#6145) 2021-03-30 14:32:40 -07:00
Gus Luxton f1d34b3058
Remove ARM64 FIPS builds (#6236) 2021-03-30 13:21:14 -07:00
Brian Joerger ee57e539b5
tsh Profile SSH certs fix (#6214) 2021-03-30 12:10:52 -07:00
Andrew Lytvynov f1f02bda04 mfa: fix gRPC unimplemented check in cert reissue
Our gRPC client is wrapped and converts gRPC status codes into trace
errors. It also doesn't preserve the original gRPC error internally.
2021-03-30 18:36:36 +00:00
Alexander Klizhentas fbae7ad508
Open Sources Access Controls Docs (#6188) (#6217)
* Open Sources Access Controls Docs (#6188)

Moves RBAC to a separate access controls section,
adds a couple of guides and prepares
the structure for more content.

* Fix href links
2021-03-30 10:04:23 -07:00
xacrimon 3f9f33408d add PAM environment with interpolation support 2021-03-30 18:23:38 +02:00
Andrej Tokarčík 52dfeec63e
Cache per-cluster SSH certificates under ~/.tsh (#5938)
```diff
 ~/.tsh/
 └── keys
    ├── one.example.com            --> Proxy hostname
    │   ├── certs.pem              --> TLS CA certs for the Teleport CA
    │   ├── foo                    --> RSA Private Key for user "foo"
    │   ├── foo.pub                --> Public Key
-   │   ├── foo-cert.pub           --> SSH certificate for proxies and nodes
    │   ├── foo-x509.pem           --> TLS client certificate for Auth Server
+   │   ├── foo-ssh                --> SSH certs for user "foo"
+   │   │   ├── root-cert.pub      --> SSH cert for Teleport cluster "root"
+   │   │   └── leaf-cert.pub      --> SSH cert for Teleport cluster "leaf"
```

When `-J` is provided, this also loads/reissues the SSH cert for the cluster associated with the jumphost's certificate. Fixes #5637.
2021-03-29 14:14:31 -07:00
Forrest Marshall 7d4c1ea6cf add special resource type for access plugin data 2021-03-29 13:30:48 -07:00
Pierre Beaucamp 879f8c2b48
Enable DynamoDB autoscaling on global secondary indices (#6112)
Fixes #5632
2021-03-29 10:35:53 -07:00
a-palchikov 32ac67db06
darwin fips builds (#5866)
* Switch to go1.16. Use embed package to embed webassets instead of ad-hoc attaching to binary
* Fix pipeline duplicate step error
* Resolve duplicate pipeline step name error. Explicitly define platform for 'exec' pipelines. Remove the uid/gid environment from 'exec' pipelines as redundant.
* Set proper dependencies when building darwin package fips pipelines. Use enterprise build directory for tsh
* Address review comments
2021-03-29 19:20:01 +02:00
Andrew Lytvynov 7ca8d29028 kube: add kubernetes_labels to role JSON schema
The schema entry for `kubernetes_labels` was missing, causing them to be
stripped on `tctl create role.yaml`.
2021-03-29 16:26:33 +00:00
Andrew Lytvynov 6479fa8f05 mfa: send username instead of SSH login name in MFA cert request
Username is the teleport username (either from SSO or for local user).
SSH login name is one of the OS logins allowed for the user.

In a user cert request, Username means the former, not the latter.
2021-03-29 16:03:39 +00:00
xacrimon cb33b75941 fix nil slice bug 2021-03-29 17:01:43 +02:00
Andrej Tokarčík 50a4c24f84
RFD 16: Add a section on tctl rm resetting resources back to defaults (#5673) 2021-03-29 15:28:52 +02:00
Roman Tkachenko 7fb637e105
Update application access docs (#6055) (#6137) 2021-03-28 10:09:58 -07:00
a-palchikov 633185b1cf
Bump linux FIPS builds to use go1.16.2b7 release (#6143)
* Update Go runtime to 1.16.2 and bump the boringcrypto version correspondingly for linux FIPS builds

* Address review comments

* Don't fail if buildbox image is not present

* Update other go1.15.5 references not yet handled by dronegen

* Build from source on CentOS 6

Co-authored-by: Gus Luxton <gus@goteleport.com>
2021-03-26 21:26:06 -07:00
Lisa Kim 08228a90af
[auto] Update webassets in master (#6185)
f066249 mfa related fixes (#251) https://github.com/gravitational/webapps/commit/f066249

[source: -w master] [target: -t master]
2021-03-26 19:51:20 -07:00
Brian Joerger f15ceee373
Convert Token CRUD endpoints to gRPC. (#6105) 2021-03-26 19:23:20 -07:00
Brian Joerger c7d84c45d7
Convert Trusted Cluster CRUD endpoints to gRPC. (#6103) 2021-03-26 18:29:39 -07:00
Andrew Lytvynov 3a553bcc94
[auto] Update webassets in master (#6135)
4d6b434 terminal: check whether the browser supports U2F (#249) https://github.com/gravitational/webapps/commit/4d6b434

[source: -w master] [target: -t master]
2021-03-26 17:56:12 -07:00
a-palchikov d301da5a39
Embed webassets natively into teleport instead of attaching to the binary (#5935)
Switch to go1.16. Use embed package to embed webassets instead of ad-hoc attaching to binary
2021-03-26 17:37:52 -07:00
Brian Joerger b1bb78a9e0
gRPC conversions - GithubConnector (#6101) 2021-03-26 17:16:49 -07:00
Russell Jones f44523ad18
Test PR. (#6182)
* fix race in filelog

* Fixed data race in Audit Log.

Fixed data race in Audit Log where Close and EmitAuditEvent race during
tests. Use a RWMutex to protect the local log to prevent race.

Co-authored-by: Forrest Marshall <forrest@gravitational.com>
2021-03-26 17:00:53 -07:00
Brian Joerger 0076893155
gRPC conversions - SAMLConnector (#6100) 2021-03-26 16:39:27 -07:00
Brian Joerger 06d252ffca
gRPC conversions - OIDCConnector (#6067) 2021-03-26 15:52:16 -07:00
Forrest Marshall bc2203673d ignore dangling tunnel conns 2021-03-26 14:11:02 -07:00
Russell Jones cfe1cd0541
Added RFD for Cluster Routing. (#5566) 2021-03-26 12:43:44 -07:00
Brian Joerger 3d6ecb05cd
Remove duplicate sshutils package from merge failure. (#6165) 2021-03-25 19:33:24 -07:00
Brian Joerger 0540755624
Profile credentials dialer fix (#6122) 2021-03-25 17:55:49 -07:00
Brian Joerger c891bae327
Combine common crud proto messages into generic messages in types.proto. (#6058) 2021-03-25 14:25:37 -07:00
jane quin ceebd8fc7d
Allow file argument with tsh play (#5984)
* allow tsh play to take file as arg

* get file paths from writer

* remove comment

* PR feedback

* comments

* PR feedback

* update WriteForPlayback comment

* create temp dir

* remove comments
2021-03-25 13:03:42 -07:00