Repository navigation
feat(02.03.00): Settings menu and safe automatic site descriptions - #15
Conversation
…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.
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.
|
Addressed the CodeQL TLS-version review finding in The complete final source tree is 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. |
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.
/api/entriesbooleanfetchDescription. Retrieval failures still create the bookmark;X-Kellmarks-Description-Statusrecords 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
66a4c2a143bb7c6eaaaa67c7fddbec51a4919adaresolves 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.
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