Commit Graph

13452 Commits

Author SHA1 Message Date
Georges-Antoine Assi
efc984f7cd fix(player): default arcade games to mame2003_plus
The mame2003 core bundled with EmulatorJS 4.2.x crashes with
"RuntimeError: unreachable" on many games (EmulatorJS#1030), while
mame2003_plus runs them. A core chosen on the play screen or set in
config.yml default_cores still wins.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-29 20:45:32 -04:00
Georges-Antoine Assi
16d74c5037 fix(netplay): stream the host's game audio to guests
EmulatorJS netplay captures host audio once, from OpenAL nodes
(Module.AL) or gameManager.audioNode. Nightly cores, which RomM loads
whenever netplay is enabled, play through RetroArch's rwebaudio driver
instead, connecting each buffer straight to AudioContext.destination,
so the capture finds nothing and guests get video with no sound.

Before the core boots, tee every connection to a context's destination
into a MediaStreamDestination (through a gain carrying netplay's boost
factor), and point the netplay instance's _captureHostAudio at that
stream. It falls back to the stock capture if nothing has played yet.

Fixes #3891

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-29 08:44:39 -04:00
Georges-Antoine Assi
571f171151 fix(player): look up EmulatorJS gamepads by browser index on 4.2.3
EmulatorJS 4.2.3 indexes GamepadHandler's compact pad list with the
browser's gamepad index in its "connected" and input listeners. Chrome
and Brave can leave slot 0 empty and put a lone pad at index 1, so the
lookup reads undefined.id, the exception escapes the polling loop, and
no gamepad input is ever registered.

Upstream fixed this in EmulatorJS/EmulatorJS@29c79a12, which is only on
main. Until a release carries it, the EJS_emulator trap wraps those four
listeners to translate the browser index into the list position first.
Builds that have getGamepadSelectionValue (the nightly CDN build used
for netplay) are left alone.

Fixes #3710

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-29 08:44:38 -04:00
Georges-Antoine Assi
b4a4209ffb fix(player): leave fullscreen before the player reloads the page
Safari crashes in its fullscreen teardown when the content process is
swapped while the page is still fullscreen. Leaving the player reloads or
replaces the document to drop cross-origin isolation, which swaps the
process, so a Quit from fullscreen took the whole browser down.

Exit fullscreen, and wait for it (capped at one second), before the v2
document replace, the EmulatorJS player's route leave, and the console
player's route leave.

Fixes #3726

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-29 08:44:38 -04:00
Georges-Antoine Assi
36b1084548 fix(player): boot multi-disk games on EmulatorJS 4.2.3
startGame builds the disks menu before the settings menu, and building it
re-selects the current disk through menuOptionChanged. On 4.2.3 that writes
to allSettings before it exists, so any game whose core reports more than
one disk (PUAE m3u playlists, DOSBox Pure with several images) fails with
"Cannot set properties of undefined (setting 'disk')". Past that, PUAE
traps in setCurrentDisk that early.

The instance's menuOptionChanged now ignores "disk" until the game has
started. The skipped call only re-selects the disk the core already has,
so disk swaps from the menu once running are unaffected, and it is a no-op
on nightly builds that already initialise allSettings.

Upstream: EmulatorJS/EmulatorJS#1260

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-29 08:44:38 -04:00
Georges-Antoine Assi
56c1342300 Merge pull request #4894 from rommapp/fix/v2-scrollbar-back-to-top-4365
fix(frontend-v2): show the gallery scrollbar and add a back-to-top button
2026-09-29 08:38:49 -04:00
Georges-Antoine Assi
f17575fb28 fix(frontend-v2): cancel the back-to-top focus handoff on an interrupted scroll
Addresses Greptile review: a keyboard or pad user who interrupted the smooth
scroll kept a pending handoff, so a later return to the top pulled focus to
the first gallery control. A scrollend short of the top, or focus moving
elsewhere, now cancels it.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-29 08:28:50 -04:00
Georges-Antoine Assi
d28642f4a7 fix(frontend-v2): tuck the back-to-top button against the AlphaStrip
The button sat a full row padding left of the letter strip, floating in the
middle of the gutter. It now rests just inside the strip column, and falls
back to the cards' right edge when no strip renders.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-29 08:26:00 -04:00
renovate[bot]
9b57d834fd chore(deps): update github actions (#4910) 2026-09-29 02:06:34 -04:00
Sam Dornan
9bb6ff5dba refactor(frontend): derive state that was stored and synced by hand (#4929) 2026-09-29 01:18:09 -04:00
renovate[bot]
6fc1606e1e chore(deps): update dependency @vueuse/core to v15 (#4909) 2026-09-29 00:00:57 -04:00
Sam Dornan
bcc758eedf fix(v2): pin trailing: false on native reprobe throttle (#4928) 2026-09-28 22:50:59 -04:00
renovate[bot]
bb11130a4b chore(deps): update dependency md-editor-v3 to v7 (#4920) 2026-09-28 22:36:44 -04:00
renovate[bot]
e60deadd27 chore(deps): update dependency vite-plugin-mkcert to v2 (#4925) 2026-09-28 22:31:52 -04:00
renovate[bot]
6d1bbab087 chore(deps): update dependency streaming-form-data to v2 (#4924) 2026-09-28 22:30:40 -04:00
renovate[bot]
b8022f45b9 chore(deps): update dependency globals to v17 (#4913) 2026-09-28 22:09:19 -04:00
renovate[bot]
b6181f05b3 chore(deps): update dependency ipykernel to v7 (#4919) 2026-09-28 22:01:53 -04:00
renovate[bot]
9c8f34a3ab chore(deps): update dependency cronstrue to v3 (#4917) 2026-09-28 21:32:45 -04:00
Sam Dornan
1f6fc1c210 test(tasks): cover scheduled cron description in TasksSection (#4918) 2026-09-28 21:32:13 -04:00
renovate[bot]
5a891ed448 chore(deps): update dependency certifi to v2026 (#4915) 2026-09-28 20:49:33 -04:00
Georges-Antoine Assi
54447a6844 chore(frontend-v2): drop em-dashes from AppNav and GalleryShell comments
Trunk's no-emdash-in-comment rule flags every comment in a touched file.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-28 20:09:39 -04:00
Georges-Antoine Assi
66d63b1576 fix(frontend-v2): address Greptile review on the back-to-top button
Move keyboard and pad focus once the scroll reaches the top, since rows
mid-scroll can be virtualised away, and track the scroller's height so
the visibility threshold follows a resize.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-28 20:09:39 -04:00
Georges-Antoine Assi
ad5e4b8097 fix(frontend-v2): show the gallery scrollbar and add a back-to-top button
The gallery scroller hid its scrollbar with r-v2-scroll-hidden, leaving no
scroll position cue on long libraries. It now shows the themed scrollbar with
a stable gutter; the row packer, AlphaStrip, floating dock and top bar all
clear its width. A floating back-to-top button appears once the viewer is a
viewport down, honors reduced motion, and hands keyboard/pad focus to the
first control at the top.

Fixes #4365

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-28 20:09:39 -04:00
Sam Dornan
9798afdc7a feat(soundtrack): control playback through the Media Session API (#4904) 2026-09-28 19:46:55 -04:00
renovate[bot]
99675a4db5 chore(deps): update dependency pytest-cov to v7 (#4911) 2026-09-28 19:45:10 -04:00
renovate[bot]
615b196f87 chore(deps): update dependency @floating-ui/vue to v2 (#4907) 2026-09-28 19:27:27 -04:00
renovate[bot]
5f7e82a519 chore(deps): update dependency @types/node to v24 (#4908) 2026-09-28 19:27:01 -04:00
Georges-Antoine Assi
bec7133715 Merge pull request #4892 from rommapp/fix/oidc-stable-sub-1690
fix(auth): match OIDC users by their sub claim so an email change still logs in
2026-09-28 17:47:10 -04:00
Georges-Antoine Assi
7a5c67e4b8 Merge pull request #4893 from rommapp/fix/oidc-userinfo-fallback-1927
fix(oidc): fetch claims missing from the ID token from the UserInfo endpoint
2026-09-28 17:36:07 -04:00
Georges-Antoine Assi
8b7a6464fb fix(auth): address Greptile review on OIDC identity matching
- Match on (issuer, sub) with exact collation, so subjects from another
  provider or differing only in case never match.
- Refuse a login whose email is linked to another subject at the same
  issuer instead of rebinding the account; relink only across issuers.
- Check the account is enabled before saving identity changes.
- Keep the old email when it is claimed between the check and the write.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-28 17:34:14 -04:00
Georges-Antoine Assi
9d4bb40a6d fix(auth): match OIDC users by their sub claim so an email change still logs in
Store the provider's `sub` on a new nullable users.oidc_sub column, look users
up by it first and fall back to email, backfilling the sub on the next login. A
user matched by sub gets their stored email updated, unless another account
already holds it.

Fixes #1690

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-28 17:34:14 -04:00
Georges-Antoine Assi
de0eff320c test(auth): narrow userinfo before indexing it
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-28 17:34:13 -04:00
Georges-Antoine Assi
b69207cc66 fix(oidc): address Greptile review on the UserInfo fallback
Keep email_verified tied to the email it came with, and fall back to the
ID token claims when provider discovery fails as well.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-28 17:34:13 -04:00
Georges-Antoine Assi
83bd57a5d1 fix(oidc): fetch claims missing from the ID token from the UserInfo endpoint
Providers like Authelia follow OIDC Core 5.4 and return scope claims
(email, preferred_username, groups) only from the UserInfo endpoint.
When any claim RomM reads is absent from the ID token, fetch UserInfo
with the access token, check that its sub matches, and merge it under
the ID token claims.

Fixes #1927

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-28 17:34:13 -04:00
Georges-Antoine Assi
8a0c6dc7e4 Merge pull request #4891 from rommapp/fix/oidc-ca-bundle-1589
fix(auth): trust OIDC_TLS_CACERTFILE alongside the default CAs
2026-09-28 17:18:44 -04:00
Georges-Antoine Assi
2362296adc Merge pull request #4890 from rommapp/ci/sign-and-scan-release-images
ci: sign release images, gate on critical CVEs and scan for malware
2026-09-28 17:16:31 -04:00
Georges-Antoine Assi
1be710d828 ci: sign without adding tags to either registry
Cosign signs on Docker Hub only, which stores the signature as an OCI
referrer. GHCR has no referrers API and would add a sha256-<digest> tag
per signature, so provenance attestations stay in GitHub's attestation
API, where gh attestation verify finds them for either registry.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-28 17:08:44 -04:00
Georges-Antoine Assi
37e26e5460 ci: keep nightly signing off the registries
GHCR has no OCI referrers API, so every pushed signature or attestation
lands under a new sha256-<digest> tag, which piles up with a nightly.
Nightly now only records the provenance attestation in GitHub's API,
which still exercises the OIDC and attestation path every day.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-28 16:56:57 -04:00
Georges-Antoine Assi
8d7566e567 fix(auth): address Greptile review on OIDC CA bundle loading
Skip CA files that can't be read instead of failing startup, type the
PKI test fixture, and declare certifi as a direct dependency.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-28 16:53:03 -04:00
Georges-Antoine Assi
446f7aeb45 ci: make scan re-runs work and log the ClamAV signature version
upload-artifact refuses an existing name, so re-running a scan job that
failed at the critical gate failed at the upload instead. The malware
summary now records which signature version ran, so a stale fallback
after a failed freshclam is visible.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-28 16:50:52 -04:00
Georges-Antoine Assi
b73e372d36 ci: trim the critical gate comment (review-polish)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-28 16:40:45 -04:00
Sam Dornan
33c10f5d6c Run the chroma-key placeholder check off the event loop (#4899)
* Run the chroma-key placeholder check off the event loop

_discard_if_chroma_key decoded every stored media image synchronously
inside an async method, so each check (about 15 to 35 ms for a 1024px
screenshot or box face) stalled the event loop and every other request or
scan task running on it. The decode now runs through asyncio.to_thread,
like the cover and logo work in the same handler.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015vP3HFKWQsJZv9F9SKeAWu

* Hold the file lock across the chroma-key check and delete

With the check awaited on a worker thread, a concurrent writer could
replace the file between the verdict and the delete, and the replacement
was then removed on the old file's verdict. The existence check, the
decode and the unlink now run under the path's lock, and a test replaces
the file mid-check to prove the new artwork survives.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015vP3HFKWQsJZv9F9SKeAWu

* Make the chroma-key replacement test independent of timing

The test slept 0.2s and hoped the writer had run by then; a slow writer
would let unlocked code pass. It now asserts the path lock is held during
the check before the writer starts, and that the writer cannot finish
while the check runs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015vP3HFKWQsJZv9F9SKeAWu

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 15:36:14 -05:00
Sam Dornan
6d9438b456 Add an opt-in setting to show the game logo in place of the title on the v2 game page (#4888)
* Show the scraped game logo in place of the title on the v2 game page

When a ROM has a ScreenScraper wheel (ss_metadata.logo_path), the details
header renders it inside the h1, with the game name as alt text, and falls
back to the text title when there is no logo or it fails to load.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015vP3HFKWQsJZv9F9SKeAWu

* Trim the transparent border off stored game logos

ScreenScraper wheels often sit on a padded 1024x512 canvas, so a logo shown
in place of the game title looked indented and smaller than its neighbours.
store_metadata_media now crops each logo to its visible pixels, including
logos already on disk, so a rescan fixes existing libraries.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015vP3HFKWQsJZv9F9SKeAWu

* Put the logo-as-title display behind a UI setting, off by default

Adds a showLogoTitle entry to useUISettings (synced to the user's
ui_settings like the other display preferences) and a 'Show logo as
title' toggle in the Gallery section of the User Interface settings, with
the new strings translated in every locale. GameHeader shows the logo only
when the setting is on. Also clears the existing em-dashes from
UserInterface.vue comments, which the lint rule flags once the file changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015vP3HFKWQsJZv9F9SKeAWu

* Outline the title logo so dark or light lettering stays readable

Some ScreenScraper wheels carry thin black text (A Link to the Past's
subtitle) that vanished on the dark theme, and white lettering has the same
problem on the light one. The logo now gets a 1px rim in the theme's text
colour, replacing the soft drop shadow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015vP3HFKWQsJZv9F9SKeAWu

* Size the title logo by area so square logos match wide ones

A shared 128px height cap left near-square wheels (A Link to the Past,
Aria of Sorrow) with about half the area of wide ones. Once the logo loads,
GameHeader now sets its width so every logo covers roughly the same area
(40,000 px, 22,000 on phones), within a 176px (120px) height cap and the
existing 420px width cap.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015vP3HFKWQsJZv9F9SKeAWu

* pr-ready step 2 (code-review): harden logo trimming and logo retry

- Share one IMAGE_DECODE_ERRORS tuple (adds SyntaxError and
  DecompressionBombError) across the image helpers, so a broken or
  oversized logo no longer aborts store_metadata_media.
- Trim under the per-file lock and replace the file atomically, so a failed
  save keeps the original and a hardlinked source is never cropped.
- Skip every multi-frame image, and crop in the image's own mode so palette
  logos stay compact.
- Reset the header's logo failure and ratio whenever the logo URL changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015vP3HFKWQsJZv9F9SKeAWu

* pr-ready step 3 (simplify): share the resource URL helper, trim dead code

- Add versionedResourceUrl to v2/utils/romFiles and use it from GameHeader,
  romArtwork and ManualSubtab, so the scraped-media cache-bust rule has one
  home.
- Key the header's logo load state on the URL (failedSrc, loadedLogo)
  instead of resetting two refs from a watch; hoist the shared 420px cap.
- Drop logo CSS the inline sizing made dead (display, height, object-fit,
  object-position).
- Read the alpha bbox with getbbox instead of a full RGBA copy, and check
  transparency before counting frames.
- Use a handler fixture in TestTrimTransparentBorder.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015vP3HFKWQsJZv9F9SKeAWu

* pr-ready step 4 (review-polish): drop a filler comment

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015vP3HFKWQsJZv9F9SKeAWu

* pr-ready step 5 (humanizer): state three comments directly

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015vP3HFKWQsJZv9F9SKeAWu

* Bound logo trimming by pixel count and test phone logo sizing

- Skip trimming a logo above MAX_TRIM_PIXELS (16M), checked from the image
  header before any pixel is decoded, so a large download under Pillow's
  decompression-bomb threshold can't exhaust worker memory mid-scan.
- Cover the xs area and height cap in GameHeader's sizing tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015vP3HFKWQsJZv9F9SKeAWu

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 15:01:30 -05:00
Sam Dornan
d344662eac Keep ScreenScraper disc art for every disc of a multi-disc game (#4885)
* Keep ScreenScraper disc art for every disc of a multi-disc game

ScreenScraper tags each disc's support-2D art with a "support" number,
but the extractor kept only the first support-2D it met, so discs 2 and
up were never downloaded or shown.

The first disc still fills physical_url/physical_path, which the cover
art, disc-spin animation and exporters read. Every later disc goes to a
new ss_metadata.physical_extra_discs list, is downloaded next to it as
physical/physical_disc<N>.png, and gets its own entry on the v2 Artwork
subtab.

Existing ROMs pick up the extra discs on their next metadata refresh.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018qtuXherdgoU89KtrSeU22

* Type the extra-disc test metadata so mypy can index it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018qtuXherdgoU89KtrSeU22

* Label the first disc's art on multi-disc games

ss_metadata now records which disc physical_url shows, so the Artwork
subtab can label it "Physical media (disc N)" alongside the later discs.
It stays plain "Physical media" for single-disc games, gamelist art, or
when no later disc's art is on disk.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018qtuXherdgoU89KtrSeU22

* pr-ready step 2 (code-review): harden disc numbers and rematch cleanup

- Read ScreenScraper's disc number with safe_int and clamp it to 1, so
  a zero, negative or non-string "support" value counts as the first disc.
- Remove the physical folder on an ss_id change when only later discs
  had art, so a rematch doesn't keep the old game's disc images.
- Collapse store_metadata_media's two result lists into one target list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018qtuXherdgoU89KtrSeU22

* pr-ready step 3 (simplify): one home for the media a provider dict records

- Add FSResourcesHandler.recorded_media, which lists every recorded file
  including a <type>_extra_discs list, so store_metadata_media and the
  update_rom cleanup share one rule and neither special-cases physical.
- Skip stripping a disc's URL once a better region already supplied it.
- Share the ScreenScraper disc tests' patch setup in an _extract helper
  and spell out each test's discs instead of slicing a fixture.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018qtuXherdgoU89KtrSeU22

* Refetch media whose source changed and keep shared art on rematch

- A scan now deletes each stored media file whose recorded URL changed,
  or a later disc's file the new metadata dropped, before storing, so a
  physical.png saved from another disc's art is fetched again instead of
  showing under a "(disc 1)" label.
- A rematch deletes a later disc's own file instead of the whole physical
  folder, so gamelist art sharing that folder survives.

Addresses the Greptile review on this PR.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018qtuXherdgoU89KtrSeU22

* Keep a shared media file a higher-priority provider still records

The stale-media check could delete a shared file such as physical.png
because a lower-priority provider's URL for it changed, even though the
file held a higher-priority provider's unchanged art. Each provider now
leaves alone the paths the providers before it still record.

Addresses the second Greptile review on this PR.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018qtuXherdgoU89KtrSeU22

* Decide stale shared media by which provider owns the path

The previous rule kept any path a higher-priority provider recorded, so
when ScreenScraper newly claimed a physical.png that still held older
gamelist art, neither provider refetched it. A shared path's file now
belongs to the first provider, in priority order, that records it, and
the file is refetched when that owner or its URL differs between the
previous and current metadata. Every provider is compared in one pass,
including ones outside this scan's sources.

Addresses the third Greptile review on this PR.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018qtuXherdgoU89KtrSeU22

* Name the fields of recorded media instead of using bare tuples

RecordedMedia was a four-item tuple alias that callers unpacked by
position, with a comment spelling out what each slot held. It is now a
NamedTuple with explicit fields and a path property, and the per-path
ownership claim in remove_stale_media gets the same treatment.

Addresses review feedback on this PR.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018qtuXherdgoU89KtrSeU22

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 13:59:07 -05:00
Georges-Antoine Assi
cf873110da ci: simplify image signing and scan jobs (simplify)
- Sign and attest per variant through a matrix instead of paired steps.
- Read the index digest back from the GHCR tag, not the first Docker Hub one.
- Drop the name= prefixes from IMAGES so the sign loop uses it as is.
- Let Trivy gate on criticals itself instead of parsing SARIF message text.
- Export both platforms in one malware job per image, so freshclam runs once.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-28 14:54:18 -04:00
Georges-Antoine Assi
69c72ffe2a ci: move image signing into its own job (code-review)
A Sigstore or registry failure while signing no longer skips the scan of an
already published image. Grants artifact-metadata: write so the attestation
storage records are created.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-28 14:50:20 -04:00
Georges-Antoine Assi
da36796f75 fix(auth): trust OIDC_TLS_CACERTFILE alongside the default CAs
OIDC_TLS_CACERTFILE was handed to httpx as verify=<path>, which builds a
context trusting only that file. A directory needed OpenSSL hashed names,
and DER or .p7b bundles failed to load, so two-tier PKI setups got a 500
on SSO. Build an SSL context from certifi and the system store, then add
every certificate found in the file or directory (PEM, DER, or PKCS#7).

Fixes #1589

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-28 14:38:39 -04:00
Georges-Antoine Assi
19310e7b34 Merge pull request #4889 from rommapp/fix/netplay-websocket-transport-4294
fix(netplay): connect over websocket only
2026-09-28 14:31:03 -04:00
Georges-Antoine Assi
9f406749c3 Merge pull request #4727 from andest01/chore/storybook-save-state-display-v2
Chore: Storybook Save State support
2026-09-28 14:28:42 -04:00
Georges-Antoine Assi
6d21380545 ci: sign release images, gate on critical CVEs and scan for malware
- Sign each pushed index with keyless cosign in both registries and attach
  a GitHub build provenance attestation.
- Keep the Trivy SARIF as a 90-day artifact, since code scanning rejects
  tag refs, and fail the scan on fixable critical vulnerabilities.
- Add a ClamAV pass over the exported filesystem of every scanned image,
  on both platforms.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-28 14:27:48 -04:00