Skip to content

Release 1.0.0-beta.9 - #63

Merged
Two-Play merged 8 commits into
mainfrom
develop
Nov 18, 2026
Merged

Two-Play merged 8 commits into
mainfrom
develop

Conversation

@Two-Play

Copy link
Copy Markdown
Owner

Release 1.0.0-beta.9 (no label: next beta after v1.0.0-beta.8). Merging this pushes to main and runs the release pipeline (GitHub release, TestFlight, AltStore source).

What's new

  • Back where you were – lists keep their place when you turn the phone for fullscreen and come back to them.
  • Favorites – the avatars at the top pick "All" or one performer (a long press opens the channel), with a header and "View channel".
  • Zoom snap feedback – "Original" and "Fill" show when the pinch zoom snaps, and guide lines where the picture snaps to the center or an edge.
  • PIN with biometrics – changing the PIN or turning the app lock off also accepts Face ID or the fingerprint, so a forgotten PIN can be replaced.
  • Proxy warning – a banner names both addresses when the server hands out media URLs on another address than the one StashTube connects to (a reverse proxy without Host / X-Forwarded-Proto), and how to fix it.

Security

  • The API key and the session cookie only go to the server's own address (scheme, host and port): never to media URLs pointing elsewhere, and not along a redirect that leaves the server.
  • The PIN is stored as PBKDF2-HMAC-SHA256. PINs of earlier versions keep working and are converted after the next correct entry.
  • If the PIN can't be read (e.g. after restoring a backup), the app stays locked instead of opening: biometrics lead to a new PIN, otherwise the app can be reset.
  • A password in a server address (https://user:pass@host) is kept in the secure storage instead of the settings; existing servers move on the first start.

Fixes and internals

  • GraphQL responses are no longer written into a cache that was never read.
  • The preview check stops after the status instead of downloading whole files from servers that ignore Range.
  • The password login gives up after 20 s instead of waiting forever.

Not tested on a device yet

Proxy warning on a misconfigured server, the lost-PIN screen, and upgrading a PIN set by beta.8 or earlier.

🤖 Generated with Claude Code

Two-Play and others added 8 commits November 18, 2026 16:47
Credentials stay on the server's origin:
- AuthHeaders.forUrl gives the API key / session cookie only for URLs on
  the configured scheme, host and port (images, sprites, streams,
  previews, lock screen art, iOS PiP, cast ?apikey=).
- OriginGuardClient follows redirects itself and drops ApiKey, Cookie and
  Authorization once a redirect leaves the origin (GraphQL, server files,
  and the image cache via stashImageCacheManager).
- StashSessionClient adds the cookie only on the origin.
- MediaOriginBanner warns when the server hands out media URLs on another
  origin (proxy without Host / X-Forwarded-Proto), naming both addresses.

App lock and PIN:
- PINs are stored as PBKDF2-HMAC-SHA256 (StoredPin). Legacy salted
  SHA-256 values are still accepted and upgraded after the next correct
  PIN, so existing users keep their PIN.
- An enabled lock whose PIN can't be read (unreadable or emptied secure
  storage) stays locked: PinLostView offers biometrics followed by a new
  PIN, or resetting the app.

Other fixes:
- User info in a server URL (user:password@) is kept in the secret store
  (url_auth:<id>) instead of the profile JSON; stored profiles migrate on
  start, and the UI shows the URL without it.
- GraphQL uses noCache: networkOnly kept filling a normalized cache that
  was never read.
- The preview check cancels the body after the status instead of
  downloading whole files when a server ignores Range.
- The password login times out after 20 s and reads only the headers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…feedback

- LayoutFreeze keeps the shell's layout while the player's fullscreen
  turns the window, so lists no longer lose their place (pixel offset
  clamped by the landscape column layout).
- Favorites tab: avatars select "All" or one performer (long press opens
  the channel), with a header and "View channel".
- ZoomSnapFeedback: "Original"/"Fill" pill with a pop and guide lines
  where the pan snaps; still with reduced motion.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With biometric unlock on, confirmPin also accepts Face ID or the
fingerprint: a button on the PIN pad, or asked right away while wrong
PINs block the pad. Success resets the PIN throttle. Before, a forgotten
PIN could only be replaced by clearing the app's data, even though the
app could still be unlocked with biometrics.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
List position through fullscreen, favorites selector, zoom snap feedback
Entry 3 (entry 2 shipped with v1.0.0-beta.8) announces the changes from
PR #61 and this branch: lists keep their place through fullscreen, the
favorites selector, zoom snap feedback, biometrics for the PIN and the
proxy warning; the PIN hash, lost-PIN recovery, URL passwords in the
secure storage and fewer requests are behind "Show more". The release
notes draft now describes the next beta.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
StatusBanner holds the layout ConnectionBanner and MediaOriginBanner both
copied, and the two confirmPin widget tests pump the same page through
pumpConfirm (Codacy's duplication report on PR #62).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Security hardening: credentials on the server's origin, PBKDF2 PIN, lost-PIN recovery
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 5 duplication

Metric Results
Duplication 5

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@Two-Play
Two-Play merged commit 999fd87 into main Nov 18, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant