Commit graph

24378 commits

Author SHA1 Message Date
Jelle van der Waa
6f535d826a shell: Use strict equality everywhere 2026-10-20 11:52:11 +02:00
Jelle van der Waa
06b332eede test: Obtain default password expiry from /etc/login.defs
shadow-utils 4.20 did not change the default expiry but Arch changed
/etc/login.defs.
2026-10-19 15:13:26 +02:00
Jelle van der Waa
978ba9055d storaged: Decode TPM2 slot information
Before this change Cockpit would show the TPM2 slot as "Unknown type",
now we at least show that this slot is configured to use a TPM module
and parse, make additional information available for the UI to later
show if the data is sealed to a Platform Configuration Register (PCR)
state.

Only support removing not editing a TPM2 slot as Cockpit does not
support creating a TPM2 slot.

The Testing Farm has no /dev/tpm available so testing is skipped there.

Resolves: https://redhat.atlassian.net/browse/RHEL-167807
2026-10-19 14:38:27 +02:00
dependabot[bot]
bc3c959b1b Bump the patternfly group with 2 updates
Bumps the patternfly group with 2 updates: [@patternfly/react-core](https://github.com/patternfly/patternfly-react) and [@patternfly/react-table](https://github.com/patternfly/patternfly-react).

Updates `@patternfly/react-core` from 6.6.1 to 6.6.2
- [Release notes](https://github.com/patternfly/patternfly-react/releases)
- [Commits](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-core@6.6.1...@patternfly/react-core@6.6.2)

Updates `@patternfly/react-table` from 6.6.1 to 6.6.2
- [Release notes](https://github.com/patternfly/patternfly-react/releases)
- [Commits](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-table@6.6.1...@patternfly/react-table@6.6.2)

---
updated-dependencies:
- dependency-name: "@patternfly/react-core"
  dependency-version: 6.6.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: patternfly
- dependency-name: "@patternfly/react-table"
  dependency-version: 6.6.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: patternfly
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-10-19 13:47:56 +02:00
Freya Gustavsson
f360268f3b test: Stable Flatpak server field
Flatpak made assertions where a field could be present but not visible
which can cause race conditions where we would input values before the
flatpak browser had a chance to render it.

It was also possible to click the login button before the browser had
registered an input, which could make the button still disabled.

Likewise when logging out we could be loading a page and then executing
logout before the shell had a chance to render, meaning the logout
button doesn't exist.

Signed-off-by: Freya Gustavsson <freya@venefilyn.se>
2026-10-19 12:55:50 +02:00
Freya Gustavsson
11cc344f59 test: Increase flatpak JS timeout
Some tests are verging on timeouts and sometimes encounter them during
tests. This was in particular true during initial experimentation on why
ubuntu-latest runner migration show failed tests for flatpak tests.

Related-to: https://github.com/cockpit-project/cockpit/pull/23713
Signed-off-by: Freya Gustavsson <freya@venefilyn.se>
2026-10-19 12:55:50 +02:00
Jelle van der Waa
c978d138e7 users: Apply strict equality everywhere 2026-10-19 10:33:21 +02:00
Jelle van der Waa
0548f9dfa9 containers/ws: Move to Fedora 44 2026-10-19 09:35:44 +02:00
dependabot[bot]
7c9f95f68a Bump uuid from 14.0.2 to 14.0.3
Bumps [uuid](https://github.com/uuidjs/uuid) from 14.0.2 to 14.0.3.
- [Release notes](https://github.com/uuidjs/uuid/releases)
- [Changelog](https://github.com/uuidjs/uuid/blob/main/CHANGELOG.md)
- [Commits](https://github.com/uuidjs/uuid/compare/v14.0.2...v14.0.3)

---
updated-dependencies:
- dependency-name: uuid
  dependency-version: 14.0.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-10-18 14:00:07 +02:00
Jelle van der Waa
cf9064dc21 kdump: Apply strict equality everywhere 2026-10-16 17:49:20 +02:00
Jelle van der Waa
fd00db13c5 pyproject: Ignore ICN001 ruff rule
Cockpit projects to not adhere to the convention to import datetime as
dt.
2026-10-16 17:10:14 +02:00
Jelle van der Waa
9c5048d959 packagekit: Remove .pk-updates--header--auto
No longer used since d99128c70f.
2026-10-16 17:08:14 +02:00
Jelle van der Waa
4a196d5f7f networkmanager: Drop has-error styling
No longer used since PatternFly 3, see e4b963b158.
2026-10-16 17:08:14 +02:00
Jelle van der Waa
aa2a0d772d systemd: Drop old systime styling
No longer used since PatternFly 4 rewrite in c0662939c7.
2026-10-16 17:08:14 +02:00
Jelle van der Waa
0cbbb44882 networkmanager: Remove leftover CSS from React rewrite
No longer used since 5c7b284a08.
2026-10-16 17:08:14 +02:00
Jelle van der Waa
9ba2dbdf5c networkmanager: Remove #testing-connection-curtain
No longer used since fdae46b89c.
2026-10-16 17:08:14 +02:00
Jelle van der Waa
50e4c33a08 networkmanager: Remove .delete-confirmation-body
No longer used since d139800e67, porting firewall modals to
PatternFly 4.
2026-10-16 17:08:14 +02:00
Jelle van der Waa
cb434efe78 shell: Remove systime declarations from before React
See for example d5f3afac39, these classes are not used used
in PatternFly's Datepicker.
2026-10-16 17:08:14 +02:00
Jelle van der Waa
27e8a6f1a9 shell: Remove .machine-key CSS declaration
No longer used since c14020345e.
2026-10-16 17:08:14 +02:00
Jelle van der Waa
ab6e156569 shell: Remove .add-host-fingerprint CSS declaration
No longer used since c14020345e.
2026-10-16 17:08:14 +02:00
Jelle van der Waa
e8eabecdc5 shell: Remove old machines dialogs declarations
No longer used since ebf97c2bf8.
2026-10-16 17:08:14 +02:00
Jelle van der Waa
51851c0820 packagekit: Remove header-buttons class
No longer used since d99128c70f.
2026-10-16 17:08:14 +02:00
Jelle van der Waa
d72943c849 systemd: Remove unused classes from logs.scss
No longer used since porting to React/PF4 e5b41b6cf4 and
dropping abort/reportd support 9ef2e8ba1d.
2026-10-16 17:08:14 +02:00
Jelle van der Waa
fc92dbf0a7 lib: Remove notification-message class
No longer used since c598803020.
2026-10-16 17:08:14 +02:00
Jelle van der Waa
6440dd354f storaged: Remove crypto-keyslots-list
No longer used since ba8dea5ece.
2026-10-16 17:08:14 +02:00
Jelle van der Waa
158d8500ea storaged: Remove sigkey-hash class
No longer used since 678b9fd7f5.
2026-10-16 17:08:14 +02:00
Jelle van der Waa
3d3ac76c38 users: Remove outline-question-circle-icon class
No longer used since 44777ab398.
2026-10-16 17:08:14 +02:00
Jelle van der Waa
fdc040ce3a users: Remove modal-sm-ct class
Since pkg/users was ported over to React in 5df053cad5
modal-sm-ct is no longer used.
2026-10-16 17:08:14 +02:00
Jelle van der Waa
09f829bdd7 systemd: Remove unused insights.scss
Since f6024a7d3c nothing uses the
insights-icon class anymore.
2026-10-16 17:08:14 +02:00
tomasmatus
a3bca72d98 anaconda-networking: fix imports 2026-10-16 15:02:45 +02:00
tomasmatus
863a2b6b22 network-interface: drop usage_monitor from AnacondaNetwokrkingPage
It is not used in anaconda mode.
2026-10-16 15:02:45 +02:00
tomasmatus
bf56412ff4 networking: don't allocate usage monitors and plots in anaconda mode
Split the main Cockpit network page into separate component and use it
to allocate plots and usage monitor.
2026-10-16 15:02:45 +02:00
tomasmatus
8a7f961c1d anaconda doc: drop extra word 2026-10-16 15:02:45 +02:00
tomasmatus
f2c13ccf43 networking: hide services page button in empty state
Services page is not used in anaconda.

Followup question is whether cockpit can start NetworkManager.service in
anaconda mode or if that should be disabled too.
2026-10-16 15:02:45 +02:00
Jelle van der Waa
d3fd8887e8 lib: Remove custom box-shadow from firewalld-request
This was added back when PatternFly 4 was used and there was no clear
visual separation of the alert and the page background. In PatternFly 6
alerts are distinct enough that we no longer need this.
2026-10-16 12:36:20 +02:00
Jelle van der Waa
c00c8f9ece lib: Move PackageKit API to internal PackageManager
Now that all consumers of the PackageKit api in pkg/lib are gone, the
last part can be moved over and pkg/lib/packagekit.js removed.
2026-10-15 16:41:38 +02:00
Jelle van der Waa
5f7dd05526 lib: Remove detect() from packagekit
The last consumer was pkg/storaged/client.js and that got removed in
b06198ae038c970a7089640fdcd.
2026-10-15 16:41:38 +02:00
Jelle van der Waa
51204bc9c1 lib: Move get_updates implementation to _internal
Now that nothing depends on it anymore after moving the Software updates
page to the PackageManager class.
2026-10-15 16:41:38 +02:00
Jelle van der Waa
90ad602ad8 lib: Remove update_packages()
Everything moved to PackageManager.update_packages().
2026-10-15 16:41:38 +02:00
Jelle van der Waa
10efdfe6a9 lib: Move PackageKit refresh to internal API
Everything moved to PackageManager.refresh().
2026-10-15 16:41:38 +02:00
Jelle van der Waa
d935d2d500 playground: Apply strict equality everywhere 2026-10-15 16:17:40 +02:00
Cockpit Project
761a780cbe cockpit-ci: Update container to 2026-10-10
Closes: #23816
2026-10-15 16:16:37 +02:00
Jelle van der Waa
0efb25ead3 apps: Apply strict equality 2026-10-15 15:14:33 +02:00
tomasmatus
9401f45cce doc: add networking page section to anaconda.md 2026-10-14 15:30:10 +02:00
tomasmatus
9b0da4e26b netlib: make NetworkCase.cleanupDevs less fragile
`nmcli dev del` allows passing multiple devices that should be deleted.
Reduce the amount of calls required.
This also handles v_eth better which are represented by two devices but
once either is deleted both are removed automatically.
2026-10-14 15:30:10 +02:00
tomasmatus
905b0c655b netlib: use nmcli to clean up after add_veth
For devices managed by NetworkManager `ip link del` may not be enough
and NM brings the device back. Since `add_veth` is used to create a
virtual device managed by NM use `nmcli` to delete it instead.
2026-10-14 15:30:10 +02:00
tomasmatus
792af2d170 networking anaconda layout: add basic test 2026-10-14 15:30:10 +02:00
tomasmatus
051de33f30 netlib: move wireless network setup to NetworkCase
Allow sharing with anaconda-mode tests
2026-10-14 15:30:10 +02:00
tomasmatus
58afa539cf testlib: move enterAnacondaMode to TestCase class
Allow sharing this helper function between storage and networking tests.
2026-10-14 15:30:10 +02:00
tomasmatus
a388abfa63 networkmanager: use stable keys for dialogs 2026-10-14 15:30:10 +02:00