Skip to content

Use the correct error when inspecting Kubernetes session#33904

Merged
tigrato merged 4 commits intomasterfrom
tigrato/fix-report-err
Oct 26, 2023
Merged

Use the correct error when inspecting Kubernetes session#33904
tigrato merged 4 commits intomasterfrom
tigrato/fix-report-err

Conversation

@tigrato
Copy link
Copy Markdown
Contributor

@tigrato tigrato commented Oct 24, 2023

This PR fixes the audit log report for Kubernetes sessions that returned errors. The previous functions used the incorrect error variable.

Changelog: Fixed an issue where Kubernetes Audit Events didn't report the correct information in the exec audit event if the session exited with an error.

@github-actions
Copy link
Copy Markdown
Contributor

The PR changelog entry failed validation: Changelog entry not found in the PR body. Please add a "no-changelog" label to the PR, or changelog lines starting with changelog: followed by the changelog entries for the PR.

@tigrato tigrato force-pushed the tigrato/fix-report-err branch from 40f530c to 6dea04f Compare October 24, 2023 22:51
@zmb3
Copy link
Copy Markdown
Collaborator

zmb3 commented Oct 24, 2023

I'm not sure I agree with the changelog message. It mentions session.end but my understanding is this information is only put in the exec event, not the end event.

This PR fixes the audit log report for Kubernetes sessions that returned
errors. The previous functions was using the incorrect error variable.

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
@tigrato tigrato force-pushed the tigrato/fix-report-err branch from 6dea04f to 3fd1a72 Compare October 24, 2023 22:59
@tigrato
Copy link
Copy Markdown
Contributor Author

tigrato commented Oct 24, 2023

I'm not sure I agree with the changelog message. It mentions session.end but my understanding is this information is only put in the exec event, not the end event.

Oh, you are 100% correct. Changed to exec

@public-teleport-github-review-bot public-teleport-github-review-bot Bot removed the request for review from r0mant October 26, 2023 00:19
@tigrato tigrato added this pull request to the merge queue Oct 26, 2023
Merged via the queue into master with commit bf2625b Oct 26, 2023
@tigrato tigrato deleted the tigrato/fix-report-err branch October 26, 2023 20:42
@public-teleport-github-review-bot
Copy link
Copy Markdown

@tigrato See the table below for backport results.

Branch Result
branch/v12 Failed
branch/v13 Failed
branch/v14 Create PR

tigrato added a commit that referenced this pull request Oct 26, 2023
* Use the correct error when inspecting Kubernetes session

This PR fixes the audit log report for Kubernetes sessions that returned
errors. The previous functions was using the incorrect error variable.

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>

* append error to the session recorder

* correct session leave code

* avoid emisleading debug error when owner joins the session

---------

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
tigrato added a commit that referenced this pull request Oct 26, 2023
* Use the correct error when inspecting Kubernetes session

This PR fixes the audit log report for Kubernetes sessions that returned
errors. The previous functions was using the incorrect error variable.

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>

* append error to the session recorder

* correct session leave code

* avoid emisleading debug error when owner joins the session

---------

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
github-merge-queue Bot pushed a commit that referenced this pull request Oct 27, 2023
…3952)

* Use the correct error when inspecting Kubernetes session

This PR fixes the audit log report for Kubernetes sessions that returned
errors. The previous functions was using the incorrect error variable.



* append error to the session recorder

* correct session leave code

* avoid emisleading debug error when owner joins the session

---------

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
github-merge-queue Bot pushed a commit that referenced this pull request Oct 27, 2023
…3951)

* Use the correct error when inspecting Kubernetes session

This PR fixes the audit log report for Kubernetes sessions that returned
errors. The previous functions was using the incorrect error variable.



* append error to the session recorder

* correct session leave code

* avoid emisleading debug error when owner joins the session

---------

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
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.

4 participants