Skip to content

feat(02.03.00): Settings menu and safe automatic site descriptions - #15

Merged
paulkakell merged 5 commits into
mainfrom
feature/settings-menu-and-browser-reset
Sep 28, 2026
Merged

paulkakell merged 5 commits into
mainfrom
feature/settings-menu-and-browser-reset

Conversation

@paulkakell

@paulkakell paulkakell commented Sep 28, 2026 •

Copy link
Copy Markdown
Owner

Requested changes

Complete the Settings menu work and the additional request to pull a description from the linked site when a new entry has no description.

  • Replace the header Theme button with Settings; move Theme, import/export and session-only remote icons into it. Remove the header version badge, retaining the footer version/update status.
  • Add confirmed, scoped Clear browser memory. It clears only Kellmarks-prefixed browser storage, never server bookmarks/backups or unrelated site data. Cancellation is focused by default; blocked storage is reported honestly.
  • Add Fill missing descriptions from linked sites for this session. This is off by default to preserve the accepted privacy policy. With consent enabled, a new blank-description bookmark uses HTML description metadata, then Open Graph or Twitter description. Manual descriptions, existing-entry edits and imports are not overwritten or automatically fetched. Reload clears consent; browser-only mode and operator denial disable it.
  • Add optional POST /api/entries boolean fetchDescription. Retrieval failures still create the bookmark; X-Kellmarks-Description-Status records the result. Metadata is plain text, not executable HTML, and capped at 600 characters.

Network and save safety

Require authenticated/validated creation before retrieval. Restrict HTTP(S) to default ports and public DNS answers; reject credentials, private/link-local/transition addresses, mixed private/public DNS answers, HTTPS downgrades and unsafe redirects. Pin the connection to its validated numeric address while retaining TLS hostname/certificate verification. Explicitly require TLS 1.2 or newer. Validate every redirect and actual peer. Do not send API credentials, cookies, referrers or use environment proxies/third-party scraping services.

Bound lookup to six seconds including DNS wait, 256 KiB HTML, three redirects and four workers. Apply KELLMARKS_METADATA_RATE_LIMIT (default 30 per client per minute). Network I/O is outside the storage lock. Prevent double submit and stale editor changes during save. Failures leave the new description blank rather than losing the bookmark.

Integration and compatibility

Non-forced integration of main 66a4c2a143bb7c6eaaaa67c7fddbec51a4919ada resolves Settings/version conflicts and preserves PR #17's download verification. Include the exact reviewed CodeQL action update merged by #8 into dev. Version 02.03.00 is a compatible feature increment; published 02.02.00/02.02.01 artifacts are not overwritten. Schema 2 and runtime dependencies are unchanged. No data migration, operator-library edit, DNS/Cloudflare change or direct live-container deployment.

Update user/API/OpenAPI/security/install documentation, environment examples, Compose configuration, changelog, release notes and rollback guidance. Keep .env, the same Compose project/volume and a verified private backup during upgrades/rollback. Never remove volumes. Correct the outdated user-guide statement that no metadata fetcher exists.

Roadmap #9 is explicitly not closed: Settings and metadata capture do not implement the remaining bulk organization, recovery, browser capture, smart collections, reading, link health, offline or optional AI milestones. Correct outdated planned-version assignments without dropping accepted scope.

Final verified validation

Validated head: 32c9528.
Exact source tree: cbc38ccddaf6ff0fdbab75fa45505bd1d7db6b78.
CI merge checkout: ca3dad3.
Base main: 66a4c2a.

  • 326 Python tests passed locally; 92.63% server coverage. Python 3.10 and 3.13 test jobs passed in GitHub CI.
  • 11 JavaScript helper tests passed. All 28 real-browser scenario groups passed, including five metadata groups and six Settings/reset groups. Local networked browser navigation is blocked by the execution environment's administrator policy; the full networked browser suite ran successfully in GitHub CI instead.
  • Ruff, mypy, compilation, secret scan, release/configuration validation, dependency consistency, performance budgets and server smoke passed. Runtime and browser-test dependency audits passed. The Bandit medium/high gate passed (seven low-severity findings remain; this is not a claim of zero possible vulnerabilities or a complete OS-image scan).
  • Security and quality 36384913470: success.
  • CodeQL 36384913455: success. GitHub Advanced Security automatically resolved the TLS-version review finding after the explicit TLS floor and handshake-boundary regression were added. No unresolved review threads remain.
  • Docker deployment 36384913548: success on linux/amd64 and linux/arm64, including authentication, isolation, health, persistence, backup and restore.
  • Validation bundle 36384913521: success.

Tests use disposable stores, not operator data. The 102 metadata/TLS regressions cover parsing, opt-in, manual preservation, failure behavior, DNS/socket/TLS/redirect protections, bounded work and API integration. A successful earlier CodeQL workflow was not treated as evidence that its review finding was resolved; the final source correction and fresh analysis resolved it.

Temporary source transfer run 36384082792 verified patch SHA-256 and the initial integration tree, staged Git blobs only, did not execute patched application code or move refs. The authorized connector assembled the identical source tree, then added the reviewed documentation/TLS corrections. Transfer payload/workflow files are absent from this PR's final source.

Main-commit checks and the existing gated publisher govern subsequent release/image publication. PR validation does not itself redeploy an operator's running container.

Commit notes

feat(02.03.00): Settings and safe automatic site descriptions

Integrate Settings and scoped browser-memory reset.
Fill new blank descriptions after explicit session consent.
Preserve manual text, edits, imports and operator no-external policy.
Bound public-web metadata requests and explicitly require verified TLS 1.2+.
Prevent duplicate saves; keep bookmarks when metadata retrieval fails.
Retain verified release packaging; align docs and schema-2 compatibility.
Track unfinished roadmap milestones honestly in #9.

…er reset

Move Theme, JSON import/export and remote-icon consent into a keyboard-accessible Settings disclosure. Keep version information only in the footer. Add an explicit browser-data reset confirmation that preserves server bookmarks and other apps' storage, reports blocked storage honestly and resets page state on reload.

Update the user guide and add scoped-storage, navigation, mobile, import/export and reset regressions without changing release metadata, API behavior or schema.
…hanges

Resolve footer/version test markers to main's 02.02.00 and retain the GHCR user-guide introduction. Preserve all upstream container installation, workflow and release changes. Restore the existing import-replacement explanation while retaining the new Settings documentation.
Merge main's verified 02.02.01 release packaging into the Settings feature without forcing history. On explicit session consent, retrieve missing descriptions only when creating a bookmark; preserve manual descriptions and edit/import behavior. Enforce operator denial, public-address DNS/redirect validation, pinned connections with hostname-verified TLS, bounded time/bytes/concurrency and metadata rate limits. No cookies, credentials, referrers, proxy services or rendered remote HTML. Lookup failures still save bookmarks.

Bring the reviewed CodeQL action update from #8 into main's integration tree. Align version 02.03.00, schema 2, documentation, API/OpenAPI and rollback guidance. Keep #9 open for unimplemented roadmap milestones and remove outdated version promises.

Exact source tree 79935ec. Local validation: 325 Python tests passed, 92.62% server coverage, 11 JavaScript helper tests, Ruff, mypy, Bandit gate, secret scan, release validation, compilation, dependency consistency and performance budgets passed. Local browser navigation is blocked by environment policy; fresh GitHub browser, security and both-platform Docker checks are required before merging. Source transfer verified patch checksum and exact tree and staged blobs only; temporary transfer files/workflow are excluded from this tree. No operator data, credentials, runtime dependencies or schema migration.
@paulkakell paulkakell changed the title feat: Settings menu and safe browser-memory reset feat(02.03.00): Settings menu and safe automatic site descriptions Sep 28, 2026
Comment thread docs/server/metadata.py Fixed
Replace the superseded statement that no metadata fetcher exists with the opt-in description behavior. Keep future link-checking, preservation and AI features explicitly unimplemented. No code or configuration changes.
Address the CodeQL insecure-protocol review finding by explicitly setting SSLContext.minimum_version to TLSv1_2 before wrapping the pinned socket. Retain CERT_REQUIRED and hostname verification. Add a regression that starts from a permissive mock context and verifies the actual handshake boundary receives the secure floor and verification settings; no real network traffic is sent by the regression.

Complete tree cbc38cc: 326 Python tests passed, 92.63% server coverage; Ruff, mypy, release validation and the Bandit medium/high gate passed. No dependency, schema or published-version rewrite. Related PR #15 CodeQL review thread PRRT_kwDOQ1sS186mja40.

Copy link
Copy Markdown
Owner Author

Addressed the CodeQL TLS-version review finding in 32c95282383a07bbea5f1d891fad798f1c89a990 by explicitly setting SSLContext.minimum_version = ssl.TLSVersion.TLSv1_2 immediately before the pinned HTTPS socket is wrapped. Certificate validation and hostname checking remain enabled. tests/test_metadata_tls.py starts from a permissive test context and verifies the TLS floor, CERT_REQUIRED, hostname checking and original hostname at the handshake boundary without making a real network request.

The complete final source tree is cbc38ccddaf6ff0fdbab75fa45505bd1d7db6b78. Full local suite: 326 tests passed, 92.63% server coverage. Ruff, mypy, release validation and the Bandit medium/high gate passed. The preceding documentation-only commit also corrected the outdated user-guide statement that no metadata fetcher exists.

Fresh exact-head GitHub validation is required before merge; a successful CodeQL workflow alone was not treated as proof that the review finding was resolved.

@paulkakell
paulkakell merged commit 91381d0 into main Sep 28, 2026
9 of 10 checks passed
@paulkakell
paulkakell deleted the feature/settings-menu-and-browser-reset branch September 28, 2026 06:12
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.

2 participants