Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discard audit events in web Moderated Session tests #28055

Merged
merged 1 commit into from Jun 23, 2023

Conversation

rosstimothy
Copy link
Contributor

Fixes #28030

@rosstimothy rosstimothy marked this pull request as ready for review June 20, 2023 15:18
@rosstimothy rosstimothy requested a review from zmb3 June 20, 2023 15:23
Copy link
Collaborator

@zmb3 zmb3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change looks okay.

Did flaky test detector timeout because the test is slow or because of a deadlock?

@rosstimothy
Copy link
Contributor Author

Did flaky test detector timeout because the test is slow or because of a deadlock?

The tests changed are both too slow 😞

@public-teleport-github-review-bot public-teleport-github-review-bot bot removed the request for review from ryanclark June 21, 2023 14:36
@zmb3
Copy link
Collaborator

zmb3 commented Jun 23, 2023

/excludeflake TestModeratedSession TestModeratedSessionWithMFA

@rosstimothy rosstimothy added this pull request to the merge queue Jun 23, 2023
Merged via the queue into master with commit fa9e83c Jun 23, 2023
25 checks passed
@rosstimothy rosstimothy deleted the tross/session_mfa_test branch June 23, 2023 18:21
github-merge-queue bot pushed a commit that referenced this pull request Jun 29, 2023
* Fix moderated session presence checking (#25988)

* Fix moderated session presence checking

Addresses all of the issues that were preventing presence checking during
moderated sessions from working as described in
[#18092](#18092 (comment)).

Closes #18092

* make presence test clearer

* fix presence checking on the web ui

* Refactor web socket message handling

A single message processing loop handles retrieving the envelope
and passing it off to individual message handlers. This allows all
messages to be processed outside of `Read` which was dependent on
the terminal being active to process any messages.

The webauthn challenge response was also moved from a raw message
to a webauthn message. By sending it as a raw message it made
presence checking fail because the response has a `t` in it which
caused the session to be killed during moderated sessions.

* enforce mfa ceremony when joining and cluster wide mfa is enabled

* fix conflicts with master

* moderated tests

* Add moderated session tests for the UI

* Add moderated session integration test

* fix lints

* clean up presence test

* refactor envelope handling

* fix build

* fix: revert test debug timeout

* fix: use local context in tests

* simplify closing streams

* generalize waitForOutput to work with an io.Reader

* fix error handling in stream close

* unexport PresenceOptions

* Improve waitForOutput to match against output in successive reads

* Discard audit events in web Moderated Session tests (#28055)

Fixes #28030

---------

Co-authored-by: rosstimothy <39066650+rosstimothy@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TestModeratedSessionWithMFA flakiness
3 participants