-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Terminal Output] Truncated process output msg #143304
Conversation
…curity policies page.
@@ -224,6 +225,8 @@ export const useSessionView = ({ | |||
const { globalFullScreen } = useGlobalFullScreen(); | |||
const { timelineFullScreen } = useTimelineFullScreen(); | |||
|
|||
const { canAccessEndpointManagement } = useUserPrivileges().endpointPrivileges; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't know about this one, nice!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does using the canAccessEndpointManagement
accomplish?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ansi message will contain a link to /security/administration/policy which is a listing of the defend integration policies. Only users with this permission can access it. I'm passing it as a parameter since I can't import this hook into session_view as it would introduce a circular dependency.
...ins/session_view/public/components/tty_player_controls/tty_player_controls_markers/index.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/session_view/public/components/tty_player/translations.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/session_view/public/components/tty_player/translations.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/session_view/public/components/tty_player/hooks.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM / minor comments
…into truncated_output_msg
…into truncated_output_msg
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Module Count
Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
💔 All backports failed
Manual backportTo create the backport manually run:
Questions ?Please refer to the Backport tool documentation |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Summary
Ansi crafted message added to tty player when a process exceeds max_kilobytes_per_process advanced policy setting. [ VIEW POLICIES ] inline link will navigate to /security/administration/policy page. Permissions are checked to ensure only users who can access the management page see the link.
xterm updated to v5, which unlocks ansi hyperlink escape codes. Some breaking changes were fixed in the process.
#141179 <-- xterm renovate PR
Checklist
Delete any items that are not applicable to this PR.