Commit Graph
4 Commits
Author SHA1 Message Date
Brian Joerger 424606ef35 Headless Login: proxy server changes (#22734)
* * Add proper context handling to auth.AuthenticateUser.

 * Move PublicKey field to AuthenticateUserRequest where it can be used
   for actual authentication.

 * Use a simple switch statement in /webapi/ssh/certs logic to switch
   between password, otp, and eventually headless login.

* Add Headless flow to /webapi/ssh/certs login enpdoint.

* Add 3 minute callback timeout.
2023-03-10 19:25:08 +00:00
Sam Freibergandrosstimothy 2c10c558e9 Fix known cases where audit log events can be bypassed by exceeding limit (#19486)
* Limit Device Name and User Agent lengths

* Spelling correction

* Increase ballast size while trimming message size

* Cleanup error message

* Remove additional check

* Adjust tests

* Add tests for large AuditEvent

* Rename func to add clarity

* Move limit to const and lowercase field name

* Add test for invalid device name length

* Add a test for trimming the user agent

* Replace custom emitter with MockEmitter

* Add additional background to const

* Add additional comments

* Fix import ordering

* Refactor trimN to better handle heavily quoted queries and add tests

* Convert to error assetion func

Co-authored-by: rosstimothy <39066650+rosstimothy@users.noreply.github.com>

* Finish test refactor

Co-authored-by: rosstimothy <39066650+rosstimothy@users.noreply.github.com>
2022-12-29 21:41:05 +00:00
Sasha Klizhentas 3e144cb900 Teleport certificate authority rotation.
This commit implements #1860

During the the rotation procedure issuing TLS and SSH
certificate authorities are re-generated and all internal
components of the cluster re-register to get new
credentials.

The rotation procedure is based on a distributed
state machine algorithm - certificate authorities have
explicit rotation state and all parts of the cluster sync
local state machines by following transitions between phases.

Operator can launch CA rotation in auto or manual modes.

In manual mode operator moves cluster bewtween rotation states
and watches the states of the components to sync.

In auto mode state transitions are happening automatically
on a specified schedule.

The design documentation is embedded in the code:

lib/auth/rotate.go
2018-04-30 12:58:57 -07:00
Sasha Klizhentas 0130c6aa41 Mutual TLS Auth server and clients.
This commit introduced mutual TLS authentication
for auth server API server.

Auth server multiplexes HTTP over SSH - existing
protocol and HTTP over TLS - new protocol
on the same listening socket.

Nodes and users authenticate with 2.5.0 Teleport
using TLS mutual TLS except backwards-compatibility
cases.
2017-12-27 11:37:19 -08:00