aboutsummaryrefslogtreecommitdiff
path: root/webmentions_ssg (follow)
Commit message (Collapse)AuthorAge
* fix(sender): validate missing source directoriesDennis Fink2026-10-30
| | | | | | Resolve configured source paths without requiring them to exist first so missing directories produce the scanner's explicit directory validation error instead of leaking a lower-level path resolution exception.
* fix(receiver): recover stale Webmention verificationsDennis Fink2026-10-30
| | | | | | | | | Add a periodic recovery sweep for Webmentions left in received or verifying states after worker crashes, lost queue entries, or interrupted processing. Use atomic lease-style updates so stale workers cannot overwrite newer results, and index verification state for efficient recovery scans.
* fix(sender): make endpoint discovery more resilientDennis Fink2026-10-30
| | | | | | | | Fall back to GET when HEAD fails so targets that reject or mishandle HEAD can still advertise a Webmention endpoint. Ignore malformed or unsupported endpoint candidates and continue searching for the first valid HTTP endpoint.
* fix(receiver): handle punctuation around plain-text URLsDennis Fink2026-10-30
| | | | | | | | | Ignore surrounding prose punctuation when matching target IRIs in text/plain sources so valid Webmentions are not rejected when URLs appear in normal sentences. Preserve balanced URL parentheses and reject longer URLs that only share the target as a prefix.
* fix(sender): stabilize source content fingerprintsDennis Fink2026-10-30
| | | | | | | | | Hash normalized reader-facing content and outgoing targets instead of raw h-entry markup so generated attributes and relative timestamps do not trigger spurious source revisions or repeat Webmentions. Preserve meaningful changes such as image updates and reaction target changes while ignoring target ordering and other markup noise.
* fix(sender): retry manual scans on lock contentionDennis Fink2026-10-30
| | | | | | | | Ensure requested rescans are not silently dropped when a periodic scan already holds the scanner lock. Defer the manual task and retry it after the active scan finishes while still propagating unrelated scan failures.
* fix(sender): prevent concurrent duplicate sendsDennis Fink2026-10-30
| | | | | | | | | Serialize delivery attempts per Webmention so duplicate queued tasks cannot send the same revision concurrently or consume additional retry attempts. Scope locks by Webmention UUID so unrelated deliveries can still run in parallel.
* feat(sender): add persistent retry backoffDennis Fink2026-10-30
| | | | | | | | | | Persist retry state per source revision so temporary delivery failures survive worker restarts and duplicate queued tasks cannot bypass the retry schedule. Use capped exponential backoff, stop after a configurable attempt limit, and reset the retry budget when a source changes or an admin resends manually.
* fix(sender): ignore inconclusive empty scansDennis Fink2026-10-30
| | | | | | | | Treat scans with no successfully processed source pages as inconclusive so a temporary empty or partially rebuilt output directory cannot mark every source deleted or trigger removal Webmentions. Defer pending sends until at least one source is scanned successfully.
* fix(sender): prevent duplicate canonical source URLsDennis Fink2026-10-30
| | | | | | | | | Keep persisted sources, including deleted ones, as owners of their canonical URLs so newly scanned aliases cannot claim the same source identity. Skip duplicate canonical paths without blocking unrelated sources from being saved or queued for delivery.
* fix(sender): isolate source parser failuresDennis Fink2026-10-30
| | | | | | | | | Prevent malformed pages or unexpected third-party parser exceptions from aborting an entire source scan or causing previously known sources to be treated as deleted. Keep persistence failures visible so database errors still fail the scan.
* fix(core): harden application configurationDennis Fink2026-10-30
| | | | | | | | | | | Fail production startup when required configuration is missing, normalize allowed hostnames before validation, and move shared request limits into the default configuration so production does not depend on testing-only values. Set secure session cookie defaults while preserving explicit overrides and document the new rate-limit and notification settings in the example config.
* fix(core): harden authentication flowsDennis Fink2026-10-30
| | | | | | | | | | Reduce login abuse and username enumeration by rate limiting POST attempts and always performing password verification, even for unknown users. Require authenticated, CSRF-protected POST requests for logout so sessions cannot be terminated through cross-site or accidental GET requests.
* feat(receiver): send Webmention notification digestsDennis Fink2026-10-29
| | | | | | | | | Batch verified Webmention notifications into a scheduled digest so bursts of incoming mentions do not generate a separate email for every verification. Track which mentions have already been reported and leave them pending when SMTP delivery fails so a later digest can retry safely.
* fix(receiver): rate limit Webmention submissionsDennis Fink2026-10-29
| | | | | | | | | | Protect the public endpoint from abusive request floods and repeated duplicate submissions that would otherwise trigger unnecessary verification work. Add per-client and global limits, require shared limiter storage in production, and only reverify existing Webmentions after a configurable cooldown.
* fix(core): prevent unsafe login redirectsDennis Fink2026-10-29
| | | | | | | | | Validate post-login redirect targets as local paths and reject backslashes, scheme-relative URLs, and malformed paths that browsers may interpret as external destinations. Add regression coverage for safe local redirects and open redirect variants.
* fix(core): fail closed when login password is missingDennis Fink2026-10-29
| | | | | | | | Reject login attempts when the submitted password is absent instead of relying on form validation to prevent a missing value from bypassing authentication. Add regression coverage for both incorrect and missing passwords.
* fix(sender): validate Webmention status URLsDennis Fink2026-10-29
| | | | | | | | | | Treat status URLs returned by remote endpoints as untrusted input so malformed or non-HTTP schemes cannot be persisted or exposed as clickable links. Preserve successful delivery when a Location header is invalid while rendering legacy unsafe status values as plain text in the admin interface.
* chore(core): bump version to 0.0.2Dennis Fink2026-10-28
|
* feat(core): add application brandingDennis Fink2026-10-28
|
* fix(core): resolve static type checking issuesDennis Fink2026-10-27
|
* feat(core): add database CLIDennis Fink2026-10-27
| | | | | | | | Make database initialization and upgrades explicit so new installations cannot silently modify an existing or unversioned schema. Keep Flask-Migrate commands available separately and package the migration environment with the application for reliable deployment.
* feat(core): expand user management CLIDennis Fink2026-10-27
| | | | | | Add commands to list users, reset passwords, and delete accounts. Move mail and user commands into dedicated CLI modules.
* feat(core): add SMTP test mail commandDennis Fink2026-10-26
| | | | | | | | | Make outgoing mail configuration easier to validate during deployment without waiting for a Webmention notification to exercise the SMTP path. Allow operators to override the configured notification recipient and surface missing configuration or delivery failures directly through the CLI.
* fix(core): correct source base URL config keyDennis Fink2026-10-25
| | | | | Restore the SOURCE_BASE_URL setting so scanner configuration uses the key expected throughout the application.
* refactor(core): simplify configuration keysDennis Fink2026-10-25
| | | | | | Remove the WEBMENTIONS_SSG prefix from application-specific configuration settings and update validators, tasks, and tests to use the shorter names.
* feat(receiver): add email notifications for new webmentionsDennis Fink2026-10-25
| | | | | | | | | Send an email after a newly received Webmention is successfully verified, with SMTP delivery configurable through Flask-Mail. Avoid notifications for resubmissions and manual reverification, and keep the persisted verification result unchanged if notification enqueueing fails.
* style(receiver): use badges for received statusesDennis Fink2026-10-24
| | | | | | Display received Webmention statuses with Bootstrap badges matching their row state for clearer visual consistency with the sent Webmention views.
* fix(sender): correct resend redirect routeDennis Fink2026-08-22
| | | | | | | | Use the sent source route's expected parameter name when redirecting after a manual Webmention resend. Expand view coverage for authentication, admin actions, status rendering, resends, rescans, and concurrent endpoint submissions.
* fix(sender): show total sent webmention countDennis Fink2026-08-22
| | | | | Use the pagination total when displaying the number of Webmentions for a source so the count reflects all results, not only the current page.
* style(core): remove responsive table wrappersDennis Fink2026-08-21
|
* feat(sender): paginate sent webmention detailsDennis Fink2026-08-21
| | | | | | | | Load sent Webmentions with database-backed pagination instead of eagerly loading the full relationship for each source. Condense delivery, revision, and activity metadata in the source detail table and add pagination controls for large Webmention sets.
* feat(sender): add manual Webmention resend actionDennis Fink2026-08-21
| | | | | | | | Add an authenticated action to reopen a sent Webmention revision and queue it for delivery again from the source detail view. Clear the previous attempt state while preserving historical successful-send data, and show pending Webmentions explicitly in the UI.
* test(core): align tests with module ownershipDennis Fink2026-08-21
| | | | | | | | | Move direct validator, model, and Huey extension coverage into dedicated test modules and mock dependencies where behavior belongs to another module. Expand Huey extension typing and coverage while removing duplicate assertions from scanner, sender, form, and view tests.
* docs(core): add docstrings and type annotationsDennis Fink2026-08-20
| | | | | | | | Document forms, validators, models, and views with PEP 287-style docstrings and complete missing type annotations. Add developer-readable representations for Webmention models and mark the user password property as write-only in its return type.
* chore(core): standardize SPDX copyright headersDennis Fink2026-08-20
| | | | | | | | Add SPDX copyright and license headers to source, test, migration, template, and static files throughout the project. Include the maintainer email in copyright notices and fill in the BSD license copyright holder.
* refactor(core): improve typing and test coverageDennis Fink2026-08-19
| | | | | | | | | Restructure database and user CLI commands, make passwords write-only model properties, and use the UTC datetime constant throughout the application. Add PEP 287-style documentation and expand receiver, scanner, sender, and URL security tests to cover error paths and edge cases.
* feat(sender): add manual source rescan actionDennis Fink2026-08-17
| | | | | | | | Add an authenticated action to queue a source rescan from the sent Webmentions overview. Extract the reusable confirmation modal and its JavaScript so received and sent admin actions share the same implementation.
* feat(sender): improve sent webmention status displayDennis Fink2026-08-16
| | | | | | | Highlight source and Webmention rows based on their current state and use badges for clearer status and activity indicators. Make discovered endpoints and status URLs clickable in the detail view.
* refactor(core): remove user credential length limitsDennis Fink2026-08-16
| | | | | | | | Store usernames and password hashes as text instead of fixed-length strings so their maximum length is not constrained by the database schema. Require every user to have a password hash.
* feat(sender): add outgoing Webmention pipelineDennis Fink2026-08-15
| | | | | | | | | | | Scan generated h-entry documents for Webmention targets and track source revisions and delivery state in the database. Discover target endpoints, send Webmentions asynchronously, and reconcile updated, removed, restored, and deleted sources across scans. Add authenticated views for inspecting sent Webmentions and make the scanner schedule configurable.
* feat(core): add received webmention admin actionsDennis Fink2026-08-10
| | | | | | | | Add authenticated delete and reverify actions to the received webmentions admin view and protect them with CSRF validation. Enable CSRF protection globally while exempting the public Webmention endpoint.
* fix(receiver): prevent requests to non-public addressesDennis Fink2026-08-10
| | | | | | | | | Resolve source hostnames before fetching and reject addresses that are not globally routable to prevent SSRF against local or private services. Repeat the check for every HTTP request so redirects cannot bypass the initial source validation. Treat DNS resolution failures during verification as temporary fetch errors.
* Implement received Webmention handlingDennis Fink2026-08-09
| | | | | | | | | | | | Add the Flask application setup, database models and migrations, authentication, and configuration for development and testing. Implement asynchronous Webmention verification with Huey, including HTML and plain-text source validation, retries, status tracking, and size limits. Add status, login, and paginated received-Webmention views together with comprehensive tests for forms, views, and receiver tasks.
* Initialize repository for webmentions-ssgDennis Fink2026-06-24