aboutsummaryrefslogtreecommitdiff
path: root/webmentions_ssg (unfollow)
Commit message (Collapse)Author
7 dayschore(release): v0.0.3v0.0.3Dennis Fink
7 daysstyle(core): reorder module declarationsDennis Fink
Group globals and data classes near module imports, keep primary classes and functions together, and move implementation helpers after their public callers. Reorder Alembic setup so configuration happens after the required helpers are defined, without changing runtime behavior.
7 daysrefactor(core): organize configuration by subsystemDennis Fink
Group default and example settings into consistent application, security, networking, receiver, scanner, sender, rate-limit, and mail sections. Reorder configuration declarations without changing their values or behavior.
7 daysrefactor(core)!: clarify Webmention domain terminologyDennis Fink
Rename ambiguous models, statuses, task modules, fields, and helpers so names reflect source documents, verification, endpoint discovery, and delivery state. Migrate persisted status values and database identifiers without losing existing Webmention data. BREAKING CHANGE: persisted status values and database schema names have changed, and several public Python names have been renamed.
7 daysrefactor(core)!: standardize application terminologyDennis Fink
Rename configuration keys, task helpers, forms, network utilities, and view endpoints to make their responsibilities and domains more explicit. Align source-management routes and templates with the new terminology and rename the target-matching module and related task abstractions consistently. BREAKING CHANGE: configuration keys have been renamed and sent-source routes move from `/sent` to `/sources`, with corresponding blueprint endpoint changes.
8 daysrefactor(core): use HTTPStatus consistentlyDennis Fink
Replace numeric HTTP response and assertion codes in views and tests with `HTTPStatus` members so status handling is more descriptive and consistent.
8 daysrefactor(core): inline admin action validationDennis Fink
Remove the single-purpose validation helper and keep each administrative route's form guard local to the action it protects.
8 daysdocs(core): standardize reST docstringsDennis Fink
Expand function and method documentation with consistent reST parameter, return, and exception fields while clarifying behavior where additional context is useful. Normalize test and migration docstrings to the same documentation conventions.
9 daysrefactor(core): split task workflows into focused helpersDennis Fink
Decompose receiver verification, source scanning, and Webmention delivery into explicit claim, check, reconciliation, and outcome-recording stages. Extract Huey backend parsing helpers and add focused tests for the new task boundaries while preserving existing processing semantics.
9 daysrefactor(core): make default hostnames immutableDennis Fink
Use `frozenset` for built-in allowed-hostname defaults so shared configuration values cannot be mutated accidentally at runtime.
9 daysrefactor(core): remove postponed model annotationsDennis Fink
Drop `from __future__ import annotations` now that UUID names no longer shadow the module namespace, and add coverage that mapped UUID and relationship annotations resolve correctly at runtime. Apply minor Python 3.14 syntax and formatting cleanup across tests and networking.
9 daysrefactor(core): use PEP 695 type parametersDennis Fink
Replace explicit `ParamSpec` and `TypeVar` declarations with inline generic function parameters for Huey task decorators without changing runtime behavior.
9 daysrefactor(receiver): map received status to enumDennis Fink
Store `ReceivedWebmention.status` as a non-native SQLAlchemy enum so model values round-trip as `ReceivedStatus` while remaining portable across database backends. Add a migration that preserves existing text statuses and coverage for upgrades and enum persistence.
9 daysfix(core): reject invalid admin action formsDennis Fink
Centralize administrative form validation so all protected actions return HTTP 400 on invalid submissions instead of allowing the rescan action to fail silently.
9 daysrefactor(core): consolidate repeated helper logicDennis Fink
Centralize SQL row counts, hostname parsing, and content-type normalization so tasks, forms, and scanners share consistent implementations. Simplify periodic task registration and admin lookups with table-driven setup and Flask-SQLAlchemy's built-in 404 helper.
9 daysrefactor(sender): rename locked task helpersDennis Fink
Rename the non-Huey scanner and sender helpers to `_scan_locked` and `_send_locked` so their names reflect that they run only while holding task locks.
9 daysrefactor(core): clarify Webmention mutation APIsDennis Fink
Make in-place reset and reopen helpers return `None` so callers no longer perform pointless self-reassignment. Split explicit resend behavior into its own method instead of hiding it behind a boolean flag on `reopen`.
9 daysrefactor(core): centralize pending revision logicDennis Fink
Make `SentWebmention.pending` a hybrid property so the same definition works in Python and SQL expressions. Reuse it across sender and scanner guards to remove duplicated revision checks.
9 daysrefactor(core): remove redundant abort returnsDennis Fink
Call Flask `abort` directly in view guards since it always raises and never returns, simplifying error branches without changing response behavior.
9 daysrefactor(core): replace HTTP status magic numbersDennis Fink
Use `HTTPStatus` constants for standard response codes and a named upper bound for retryable server errors so network and task status handling is self-documenting.
9 daysfix(core): clarify Huey file path semanticsDennis Fink
Document and test SQLAlchemy-style slash handling for file and SQLite Huey URLs, including distinct relative and absolute path forms. Update validation errors to show the supported three- and four-slash conventions.
9 daysrefactor(sender): flatten canonical URL parsingDennis Fink
Return early when no canonical link is present so canonical URL validation can follow a linear path with less nesting and unchanged scan behavior.
9 daysfix(core): make network task failures explicitDennis Fink
Introduce a dedicated response-size error so callers only translate expected limit violations instead of masking unrelated `ValueError` exceptions. Ensure failed sockets are always closed, remove dead discovery error handling, and log unexpected sender failures with tracebacks before recording them.
9 daysrefactor(core): simplify session fingerprint validationDennis Fink
Validate only the numeric user ID before lookup, then compare the complete stored session identifier against the current user ID with a constant-time byte check.
9 daysrefactor(core): simplify login password verificationDennis Fink
Replace the module-level dummy user with a lazily cached password hash so unknown usernames still perform a password check without hashing during every import. Use one linear verification path for existing, missing, and empty passwords.
9 daysfix(core): harden session and redirect validationDennis Fink
Reject non-string session identifiers explicitly and simplify fingerprint parsing so malformed authentication state fails closed. Tighten local redirect checks against control-character and backslash host tricks without relying on an unnecessary scheme check.
9 dayschore(core): enforce Ruff docstring spacingDennis Fink
Enable additional Ruff docstring checks for summary separation and closing quotes, then normalize migration and application docstrings to satisfy the new rules.
9 daysrefactor(core): avoid uuid module shadowing in modelsDennis Fink
Import `UUID` and `uuid7` directly so model column attributes named `uuid` no longer shadow the module used for type annotations and default generators.
9 daysfix(receiver): reopen raced submissions after cooldownDennis Fink
Recover a concurrently inserted Webmention through the same cooldown path as an existing submission so stale failures can be queued for verification. Extract digest lookup, insertion, and reopening helpers while preserving explicit SHA-256 collision handling.
9 daysrefactor(core): extract hostname resolution helperDennis Fink
Move DNS resolution and address parsing into a dedicated helper so public address validation resolves hostnames through a single, testable path.
10 daysfix(core): reject all Unicode control charactersDennis Fink
Use shared Unicode category validation so passwords reject C1 controls in addition to C0 and DEL, and reuse the same helper for URL validation.
10 daysrefactor(core): use EAFP for user creationDennis Fink
Rely on the database uniqueness constraint and existing `IntegrityError` handling instead of performing a redundant pre-insert user lookup.
10 daysrefactor(core): consolidate endpoint URL validationDennis Fink
Replace overlapping WTForms URL and regex checks with a single `HTTPURL` validator that enforces parseable HTTP(S) URLs without rewriting whitespace. Add coverage for malformed hosts and ports plus case-insensitive schemes.
10 daysrefactor(core): inline endpoint source comparisonDennis Fink
Remove the generic cross-field equality validator and keep the source-versus-target check directly on `EndpointForm`, where the validation rule is actually used.
10 daysfix(core): decouple task imports from app initializationDennis Fink
Keep stable lazy task handles that register against the active Huey backend so modules can be imported before app creation and survive backend reinitialization. Separate package metadata and the shared blueprint from application startup to remove import-order dependencies and keep build-time version lookup lightweight.
10 daysrefactor(sender): simplify HTML endpoint discoveryDennis Fink
Use a case-insensitive CSS selector to find Webmention links directly, removing manual relation parsing while preserving endpoint validation and document order.
10 daysrefactor(receiver): simplify HTML mention selectorsDennis Fink
Store complete CSS selectors alongside their target attributes so HTML mention detection can query supported references directly without rebuilding selectors.
10 daysrefactor(core): use lowercase extension namesDennis Fink
Rename shared Flask extension singletons to conventional lowercase names and update imports throughout the application and tests to remove redundant aliases.
10 daysfix(core): validate Redis Huey URL schemesDennis Fink
Parse Redis backend flavours explicitly so supported combinations preserve the correct redis or rediss scheme while malformed or unknown variants fail fast.
10 dayschore(core): enable stricter Ruff lint rulesDennis Fink
Expand Ruff checks for bugbear, complexity, pathlib, return statements, simplifications, upgrades, and docstring style. Apply the resulting behavior-neutral cleanup across application and test code.
10 dayschore(core): fix task typing issuesDennis Fink
Add explicit result assertions, broader parser annotations, and SQLAlchemy result casts so static type checking reflects the runtime guarantees of task code.
10 daysrefactor(core): simplify task control flowDennis Fink
Replace unnecessary pattern matching and temporary assignments with direct conditionals and inline configuration access without changing task behavior.
10 daysrefactor(core): split modules by responsibilityDennis Fink
Break up monolithic views, task helpers, networking, CLI, and application extension setup so each module owns a focused concern. Reorganize the test suite around the new boundaries while preserving existing Webmention behavior and coverage.
2026-10-31fix(core): harden local setup and Huey configurationDennis Fink
Create local development and test directories automatically so fresh checkouts can start without pre-existing logging or instance paths. Reject in-memory and blackhole Huey backends in production because they cannot reliably deliver queued work across separate web and worker processes.
2026-10-31fix(core): harden login rate limiting behind proxiesDennis Fink
Trust forwarded client addresses only for an explicitly configured number of reverse-proxy hops so per-IP limits cannot be bypassed or collapsed in proxied deployments. Add a separate hashed per-username login limit across IPs to reduce distributed credential-guessing attempts without storing raw usernames in limiter keys.
2026-10-31fix(sender): treat malformed requests as terminal failuresDennis Fink
Reject invalid stored targets and local URL or protocol errors as permanent failures so unrecoverable requests do not consume the sender retry budget. Preserve the recorded attempt state while preventing duplicate retries for the same source revision.
2026-10-31fix(sender): prevent source scanner path escapesDennis Fink
Reject symlinked source files whose resolved targets leave the configured source directory so scans cannot read unintended files from the host filesystem. Normalize and validate ignored hostname patterns at startup and again at scan time to keep scanner filtering predictable.
2026-10-31chore(core): add djlint template toolingDennis Fink
Add djlint to the development toolchain with Jinja, CSS, and JavaScript formatting rules so template style can be checked and normalized consistently. Reformat existing templates to match the configured conventions.
2026-10-31fix(core): correct base template markupDennis Fink
Fix the Bootstrap spacing class and remove the stray closing container so the navigation markup is properly nested. Mark the decorative logo image with an empty alt attribute for accessibility.
2026-10-31fix(receiver): prevent endless verification recoveryDennis Fink
Cap stale verification requeues so repeatedly lost or crashing tasks eventually become terminal failures instead of cycling indefinitely. Reject URLs that httpx cannot safely fetch before enqueueing, and persist unexpected verification errors as terminal failures.