browsertrix/backend/btrixcloud
Tessa Walsh cd7b695520
Add backend support for custom behaviors + validation endpoint (#2505)
Backend support for #2151 

Adds support for specifying custom behaviors via a list of strings.

When workflows are added or modified, minimal backend validation is done
to ensure that all custom behavior URLs are valid URLs (after removing
the git prefix and custom query arguments).

A separate `POST /crawlconfigs/validate/custom-behavior` endpoint is
also added, which can be used to validate a custom behavior URL. It
performs the same syntax check as above and then:
- For URL directly to behavior file, ensures URL resolves and returns a
2xx/3xx status code
- For Git repositories, uses `git ls-remote` to ensure they exist (and
that branch exists if specified)

---------

Co-authored-by: Ilya Kreymer <ikreymer@users.noreply.github.com>
2025-04-02 16:20:51 -07:00
..
migrations Better cacheing of presigned URLs + support for thumbnails (#2446) 2025-03-03 12:05:23 -08:00
operator support overriding crawler image pull policy per channel (#2523) 2025-03-31 14:11:41 -07:00
__init__.py
auth.py fixes token lifetime bug / improve security (#2490) 2025-03-19 10:07:09 -07:00
background_jobs.py Rework crawl page migration + MongoDB Query Optimizations (#2412) 2025-02-20 15:26:11 -08:00
basecrawls.py crawl replay: remove isSeed=true from initialPages query (#2509) 2025-03-20 15:03:41 -07:00
colls.py Hide breadcrumbs for private orgs (#2477) 2025-03-11 15:05:35 -04:00
crawlconfigs.py Add backend support for custom behaviors + validation endpoint (#2505) 2025-04-02 16:20:51 -07:00
crawlmanager.py support overriding crawler image pull policy per channel (#2523) 2025-03-31 14:11:41 -07:00
crawls.py Better cacheing of presigned URLs + support for thumbnails (#2446) 2025-03-03 12:05:23 -08:00
db.py move db migrations to initContainers: (#2449) 2025-03-03 13:13:15 -08:00
emailsender.py Rework crawl page migration + MongoDB Query Optimizations (#2412) 2025-02-20 15:26:11 -08:00
invites.py Reformat with Black for 2025 ruleset (#2349) 2025-01-29 16:57:06 -05:00
k8sapi.py Fixes #2488 (#2493) 2025-03-19 10:06:25 -07:00
main_bg.py move db migrations to initContainers: (#2449) 2025-03-03 13:13:15 -08:00
main_migrations.py move db migrations to initContainers: (#2449) 2025-03-03 13:13:15 -08:00
main_op.py move db migrations to initContainers: (#2449) 2025-03-03 13:13:15 -08:00
main.py move db migrations to initContainers: (#2449) 2025-03-03 13:13:15 -08:00
models.py Add backend support for custom behaviors + validation endpoint (#2505) 2025-04-02 16:20:51 -07:00
ops.py move db migrations to initContainers: (#2449) 2025-03-03 13:13:15 -08:00
orgs.py Better cacheing of presigned URLs + support for thumbnails (#2446) 2025-03-03 12:05:23 -08:00
pages.py fix qa page sorting: (#2530) 2025-04-02 09:25:38 -07:00
pagination.py
profiles.py support overriding crawler image pull policy per channel (#2523) 2025-03-31 14:11:41 -07:00
storages.py Add thumbnail endpoint (#2468) 2025-03-07 12:29:36 -08:00
subs.py
uploads.py Rework crawl page migration + MongoDB Query Optimizations (#2412) 2025-02-20 15:26:11 -08:00
users.py Fix user emails use userout (#2511) 2025-03-24 12:04:39 -07:00
utils.py Add backend support for custom behaviors + validation endpoint (#2505) 2025-04-02 16:20:51 -07:00
version.py version: update to 1.14.8 2025-03-31 14:17:53 -07:00
webhooks.py Better cacheing of presigned URLs + support for thumbnails (#2446) 2025-03-03 12:05:23 -08:00