Skip to content

[v13] Add Headless Polling to Teleport Connect#28975

Merged
Joerger merged 8 commits intobranch/v13from
joerger/v13/enable-headless-authentication-event-watching
Aug 2, 2023
Merged

[v13] Add Headless Polling to Teleport Connect#28975
Joerger merged 8 commits intobranch/v13from
joerger/v13/enable-headless-authentication-event-watching

Conversation

Joerger added 7 commits August 1, 2023 13:18
* Add WatchPendingHeadlessAuthentications rpc.
* Fix headless authentication matching logic for watcher and add test.

* Move hasWatchPermissionForKind to a separate function.

* Clean up hasWatchPermissionForKind.

* Cleanup test code with suggestions from review.
* - Move tshd events client into the daemon service.

- Replace gatway cert reissuer with a more reusable retryWithRelogin
method.

* Resolve comments.
* Implement headless watcher backend for Teleport Connect.

* Add headless watcher to tshd daemon service.

* Add SendPendingHeadlessAuthentication rpc to tshd events service.

* Add UpdateHeadlessAuthenticationState rpc to the daemon service.

* Address comments.
* Reduce headless watcher max backoff period to 90s; Propogate watcher error properly; Don't retry on not implemented error.

* Stop watcher if it wasn't stopped already.
@Joerger Joerger force-pushed the joerger/v13/enable-headless-authentication-event-watching branch from 5cd5862 to 01764e4 Compare August 1, 2023 20:27
@Joerger Joerger changed the title [v13] Headless Polling [v13] Add Headless Polling to Teleport Connect Aug 1, 2023
@Joerger Joerger marked this pull request as ready for review August 2, 2023 01:00
@github-actions github-actions Bot requested review from espadolini and gzdunek August 2, 2023 01:01
@public-teleport-github-review-bot
Copy link
Copy Markdown

@Joerger - this PR will require admin approval to merge due to its size. Consider breaking it up into a series smaller changes.

@Joerger Joerger requested a review from ravicious August 2, 2023 01:10
@ravicious
Copy link
Copy Markdown
Member

Did you run into many conflicts when backporting this?

If there were any in lib/teleterm and web/packages/teleterm, I could take a quick look to double check them.

@Joerger
Copy link
Copy Markdown
Contributor Author

Joerger commented Aug 2, 2023

Did you run into many conflicts when backporting this?

If there were any in lib/teleterm and web/packages/teleterm, I could take a quick look to double check them.

Nothing that was not easy to resolve. I reviewed the code and re-tested to make sure it still works.

@Joerger Joerger requested a review from r0mant August 2, 2023 17:59
@Joerger Joerger added this pull request to the merge queue Aug 2, 2023
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Aug 2, 2023
@Joerger Joerger added this pull request to the merge queue Aug 2, 2023
Merged via the queue into branch/v13 with commit dda59bd Aug 2, 2023
@Joerger Joerger deleted the joerger/v13/enable-headless-authentication-event-watching branch August 2, 2023 18:50
@camscale camscale mentioned this pull request Aug 4, 2023
@fheinecke fheinecke mentioned this pull request Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants