| Commit message (Collapse) | Author | Age |
| |
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
Return early when no canonical link is present so canonical URL
validation can follow a linear path with less nesting and unchanged scan
behavior.
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
Enable additional Ruff docstring checks for summary separation and
closing quotes, then normalize migration and application docstrings to
satisfy the new rules.
|
| |
|
|
|
|
| |
Import `UUID` and `uuid7` directly so model column attributes named
`uuid` no longer shadow the module used for type annotations and default
generators.
|
| |
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
Move DNS resolution and address parsing into a dedicated helper so
public address validation resolves hostnames through a single, testable
path.
|
| |
|
|
|
| |
Use shared Unicode category validation so passwords reject C1 controls
in addition to C0 and DEL, and reuse the same helper for URL validation.
|
| |
|
|
|
| |
Rely on the database uniqueness constraint and existing `IntegrityError`
handling instead of performing a redundant pre-insert user lookup.
|
| |
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
Remove the generic cross-field equality validator and keep the
source-versus-target check directly on `EndpointForm`, where the
validation rule is actually used.
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
Use a case-insensitive CSS selector to find Webmention links directly,
removing manual relation parsing while preserving endpoint validation
and document order.
|
| |
|
|
|
|
| |
Store complete CSS selectors alongside their target attributes so HTML
mention detection can query supported references directly without
rebuilding selectors.
|
| |
|
|
|
|
| |
Rename shared Flask extension singletons to conventional lowercase names
and update imports throughout the application and tests to remove
redundant aliases.
|
| |
|
|
|
|
| |
Parse Redis backend flavours explicitly so supported combinations
preserve the correct redis or rediss scheme while malformed or unknown
variants fail fast.
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
Add explicit result assertions, broader parser annotations, and
SQLAlchemy result casts so static type checking reflects the runtime
guarantees of task code.
|
| |
|
|
|
|
| |
Replace unnecessary pattern matching and temporary assignments with
direct conditionals and inline configuration access without changing
task behavior.
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
| |
Harden public-address validation against NAT64, IPv4-compatible, 6to4,
and IPv4-mapped IPv6 forms that can encapsulate private or metadata
destinations.
Apply the same check to literal form validation and DNS-resolved
addresses so SSRF protections do not rely on Python's `is_global`
behavior alone.
|
| |
|
|
|
|
|
|
| |
Bound incoming request and URL sizes so untrusted Webmention submissions
cannot consume unbounded application or database resources.
Purge old failed and deleted received Webmentions on a schedule, and use
portable SHA-256 URL fingerprints to preserve uniqueness for long URLs.
|
| |
|
|
|
|
|
|
|
|
| |
Require persistent non-placeholder signing keys outside local
development and bind login sessions to the current password hash so
password changes revoke existing cookies.
Enforce a minimal password policy for user administration while
preserving long Unicode passphrases without arbitrary composition
limits.
|
| |
|
|
|
|
| |
Restore dnspython after it was accidentally removed from the project
dependencies and declare html5lib explicitly because the application
selects it as the BeautifulSoup parser.
|
| |
|
|
|
|
|
|
|
| |
Provide matching published extras and uv groups for Redis, Valkey,
Memcached, MongoDB, and PostgreSQL so deployments can install the
clients required by their selected rate-limit or Huey backend.
Keep shared backend groups aligned where Redis dependencies are used by
both Flask-Limiter and Huey.
|
| |
|
|
|
|
|
|
|
| |
Prevent broker-controlled task and result payloads from deserializing
arbitrary Python objects by using a restricted JSON serializer with an
explicit type allowlist.
Fail closed on serializer overrides and document broker isolation and
migration requirements for existing pickle-backed deployments.
|
| |
|
|
|
|
|
|
|
|
| |
Pin outbound connections to validated public IP addresses so DNS changes
cannot redirect receiver or sender requests onto private or link-local
networks.
Apply the same protection across redirects, add an overall request
deadline, and keep DNS resolution out of synchronous endpoint form
validation.
|
| |
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
| |
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.
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|