API hardening: request size limit, anonymous cache growth, database error text sent to clients, unencrypted webhook secrets
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
The body names app/astro.config.mjs, app/src/lib/.../schema-cache.ts, route files, and notification_channels.config. Start by reading those entry points and tracing how requests, cache rows, errors, webhook settings, and sign-in callbacks are handled. The items are independent and can be split; for any one, done means implementing its stated safeguard and confirming the affected behavior.
Written by the indexing model from the issue text.
Description
Found in the 2026-11-29 whole-repo review. Reported by a reviewer; items are independent and can be split.
- No request size limit.
app/astro.config.mjssets no body size limit, so the server adapter default (very large) applies; some routes read the whole body before checking their own 5 MB cap. Set a limit of a few MB. - Cache grows forever. The schema-fetch route stores each fetched URL in
stac_higher.schema_cache(app/src/lib/.../schema-cache.ts) and nothing deletes old rows. Purge expired rows. - No rate limiting anywhere. Add basic per-user/per-address limits on the utility routes.
- Raw error text returned. About 75 places across 47 route files do
catch (err) { return jsonResponse(500, { error: err.message }) }, which sends database error text and object names to the browser. Add one shared helper that logs the detail and returns a generic message. - Webhook secrets in plain text. The signing secret for notification webhooks is stored unencrypted in
notification_channels.config, while connection credentials are encrypted. Webhook URLs (which for chat tools are themselves secret) are shown to ordinary group members. Encrypt the secret; mask the URL except for operators. - Small login gaps. The sign-in callback only verifies the identity token if one is present; the session secret has no minimum length.
- Dominant language
- Python
- Stars
- 0
- Forks
- 2
- Avg merge
- 8h 26m
- Merged PRs (30d)
- 47
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from TechTraverse/stac-higher
-
ci
Difficulty 1/5 Under an hour Newbie friendliness 85/100
TechTraverse/stac-higher#261 ·
Maintainers usually reply within 1 day
-
ready
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
TechTraverse/stac-higher#258 ·
Maintainers usually reply within 1 day
-
Error messages hide the server's reason: users see only '400 Bad Request'Possibly taken @aman-code-io claimed this 3 days ago. Openbug good first issue ready
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
TechTraverse/stac-higher#232 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
TechTraverse/stac-higher#225 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
TechTraverse/stac-higher#216 ·
Maintainers usually reply within 1 day
All issues in TechTraverse/stac-higher
Similar issues
-
docs(contributing): the two things that silently block a PRPossibly taken A pull request linked to this issue is open or already merged. Openavailable documentation good first issue
Difficulty 1/5 1-3 hours Newbie friendliness 95/100
Nixitov/Riptide-Native#944 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
JTHCode/secretguard#24 ·
Maintainers usually reply within 1 day
-
area: middleware documentation good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
good first issue
Difficulty 1/5 Under an hour Newbie friendliness 95/100
omarelshamy25x/shamy-hijri#63 ·
Maintainers usually reply within 1 day