Commit graph

84 commits

Author SHA1 Message Date
Justin Stephenson
39a359bffb Remove unneeded tlog UID code
The tlog UID was being set explicitly to ensure journalctl matches
used during tests would find pre-recorded journals. This is no longer
needed as we removed the TLOG_UID filter from the journalctl match
string.
2022-06-09 10:36:25 -04:00
Justin Stephenson
6f5ec24e16 Drop moment.js dependency
Addresses CVE-2022-24785
2022-05-19 14:17:07 -04:00
Justin Stephenson
bab09074b3 Enable SSSD files domain unconditionally
Use authselect to update nsswitch to work with files domain
2022-04-18 10:35:58 -04:00
Justin Stephenson
da32f4f344 Avoid crash in unmount if journal is null 2021-11-17 13:55:10 -05:00
Katerina Koukiou
fec5fd1ae7 Use Flex layout for spacing the two config cards in the config page 2021-11-17 13:05:47 -05:00
Katerina Koukiou
3244a4c37d Use Page/PageSection/Breadcrumb patternfly components to make the app aligned with the PF design guidelines 2021-11-17 13:05:47 -05:00
Katerina Koukiou
47c1eb0804 Remove unused slider.html file 2021-11-17 13:05:47 -05:00
Katerina Koukiou
e13c9d1bf3 Fetch pkg/lib automatically from cockpit instead of keeping a local copy
* remove mustache module as it's not used anymore.
* port alert component to react-core as the current code creates a
broken UI
2021-11-17 13:05:47 -05:00
Justin Stephenson
c48e7f69d1 Config: Add SSSD exclude_users and exclude_groups
Add configuration functionality to allow sssd exclude_users, and
exclude_groups configuration options. These options are only
applicable when scope=all. Refer to man sssd-session-recording(5)
2021-09-10 12:45:12 -04:00
Justin Stephenson
d038d2bd55 Throttle journalctl restarts
This addresses an issue with typeahead search generating a significant
load on the system, a single filter test run can make ~100 calls to
journalctl restart if not throttled.
2021-07-14 23:22:19 -04:00
Justin Stephenson
e504489ab0 Use journalctl --utc for Logs view to handle DST 2020-11-05 09:32:48 -05:00
Benjamin Graham
aa63c3871c Updated UI to use patternfly
* Removed unused css files
* Converted all UI elements to patternfly 4
* Implemented config page under same app
* Replaced slider with patternfly `Progress` component
2020-07-24 12:53:46 -04:00
Benjamin Graham
7d9391da3f Added testing for username and time filtering
Gave search box ids for ease of access, fixed date input bug, and added tests
`testFilterUsername`, `testFilterSince`, and `testFilterUntil`
2020-06-18 10:57:29 -04:00
Benjamin Graham
36173c8b9c Added test for zooming while playing at 16x
Added test `testZoomSpeedControls`
2020-06-16 22:42:46 -04:00
Benjamin Graham
8275cca551 Added log correlation testing
Added `testLogCorrelation`
2020-06-16 22:42:46 -04:00
Benjamin Graham
5283e234a1 Fixed and simplified tests
Gave buttons IDs for ease of access, fixed `fit-to` testing to
better reflect purpose, and fixed occasional timing error in
`testSkipFrame` caused by call overlap
2020-06-03 10:00:11 -04:00
Benjamin Graham
78c850acf3 Fixed timezone issue by searching in client time 2020-06-01 15:15:56 -04:00
Justin Stephenson
179fb8c5e6 Use --all journalctl option
journalctl encodes fields with "non-printable" characters,
like unicode control characters, as an array.

This ensures that the tlog MESSAGE field is shown in full using
the journalctl API.
2020-05-28 11:05:46 -04:00
Justin Stephenson
395cbdc2c9 Move code out of deprecated componentWillUpdate()
> warning: Warning: componentWillUpdate has been renamed, and is not
recommended for use. See https://fb.me/react-unsafe-component-lifecycles
for details.

* Move data fetching code or side effects to componentDidUpdate.
2020-04-27 16:49:36 -04:00
Justin Stephenson
6a7f6805d9 Move code out of deprecated componentWillMount()
> warning: Warning: componentWillMount has been renamed, and is not
recommended for use. See https://fb.me/react-unsafe-component-lifecycles
for details.

* Move code with side effects to componentDidMount, and set initial
state in the constructor
2020-04-27 16:49:36 -04:00
Justin Stephenson
198e49cfff Handle byte-array encoded journal data
Journalctl json output formats field values as JSON strings with the
exception:

  Fields containing non-printable or non-UTF8 bytes are encoded as arrays
  containing the raw bytes individually formatted as unsigned numbers.
2020-04-21 13:53:48 -04:00
Matej Marusak
ca14ae94ec manifest: Define documentation url 2020-02-03 11:38:06 -05:00
Matej Marusak
4bdbec47fb manifest: Define keywords 2020-02-03 11:38:06 -05:00
Matej Marusak
7032a2e74f Remove unused 'manifest.json.in' 2020-02-03 11:38:06 -05:00
Justin Stephenson
f2e5bc2903 Reset Logs View on Player Rewind 2019-11-07 14:37:57 -05:00
Justin Stephenson
046a1d4cb1 Expand configuration form table width 2019-11-07 14:37:36 -05:00
Justin Stephenson
7c15858444 Optimize Performance of Slider component 2019-09-11 09:29:45 -04:00
Justin Stephenson
feed483646 Make Logs view optional 2019-09-11 09:29:45 -04:00
Justin Stephenson
811b80fa27 Make Logs component a child of Recording component 2019-09-11 09:29:45 -04:00
Justin Stephenson
5348d111c4 Fix journal matching
This allows for retrieving all tlog recordings and fixes
the broken username/hostname filtering.
2019-09-04 14:30:57 -04:00
Justin Stephenson
ac612470bd Fix Recording List Column sorting in Google chrome 2019-08-30 14:36:02 -04:00
Justin Stephenson
849fcd2d49 Fix Content header CSS for PatternFly 4 2019-08-28 12:08:25 -04:00
Justin Stephenson
228645236a Update Player CSS for PatternFly 4 2019-08-26 13:17:13 -04:00
Justin Stephenson
cddcb1f40a Replace term.js with xterm.js 2019-08-26 13:17:13 -04:00
Justin Stephenson
229671f485 Journal fixes
Handle journal entries that may not contain the _EXE field.
2019-08-14 09:37:42 -04:00
Justin Stephenson
142dd4fb6a Fix hostname and username filters
Modify the default journalctl matches allowing correct behavior(logical AND)
of the appended _HOSTNAME and TLOG_USER filters.
2019-07-19 10:04:47 -04:00
Kyrylo Gliebov
ffeec0bd36 Add playback time 2019-03-07 15:18:02 +01:00
Kyrylo Gliebov
66998cafa8 Add Search 2019-03-07 15:18:02 +01:00
Kyrylo Gliebov
09039778c2 LogsView bugfix 2019-03-07 15:18:02 +01:00
Kyrylo Gliebov
6f6c6b7714 Add error service 2019-03-07 15:18:02 +01:00
Kyrylo Gliebov
1b32b0c0ce Add missing localization strings 2019-01-14 13:06:58 +01:00
Kyrylo Gliebov
20138d3e83 Timezone bugfix 2019-01-14 13:06:58 +01:00
Kyrylo Gliebov
91877b0570 systemd-journal-remote use case update 2019-01-14 13:06:58 +01:00
Kyrylo Gliebov
0f37e525d7 Fix Logs view 2018-10-10 17:59:55 +02:00
Kyrylo Gliebov
2fe77ec1da Fix SSSD Config 2018-10-10 17:59:55 +02:00
Kyrylo Gliebov
75e3f0f4d3 Change to React.Fragment 2018-10-10 17:59:55 +02:00
Kyrylo Gliebov
e2a6b5ee81 Switch to Slider instead of ProgressBar 2018-10-10 17:59:55 +02:00
Kyrylo Gliebov
5f58af7624 Player refactoring 2018-10-10 17:59:55 +02:00
Kyrylo Gliebov
1feb78fab7 Recording page refactoring 2018-10-10 17:59:55 +02:00
Kyrylo Gliebov
f69b9c1887 Config page refactoring 2018-10-10 17:59:55 +02:00