Skip to content

fix: explicit set /exapps/ in NGINX example; don't blacklist trusted callers#100

Open
oleksandr-nc wants to merge 1 commit intomainfrom
fix/readme-nginx-exapps-path
Open

fix: explicit set /exapps/ in NGINX example; don't blacklist trusted callers#100
oleksandr-nc wants to merge 1 commit intomainfrom
fix/readme-nginx-exapps-path

Conversation

@oleksandr-nc
Copy link
Copy Markdown
Contributor

Closes #57

  1. README NGINX example - explicit /exapps/ path

  2. Don't blacklist trusted callers

    Added record_failure_unless_trusted() helper that skips blacklist accounting when the request carries a harp-shared-key matching HP_SHARED_KEY
    Applied at the two failure sites legitimate Nextcloud/AppAPI callers can trip on:

    • AppID not parseable from path (misconfiguration)
    • ExApp not found (deploy fails for some reason)

Rationale: a reverse-proxy misconfiguration (issue 1) would otherwise cause Nextcloud's own cron heartbeats to accumulate failures against 127.0.0.1 and eventually blacklist the NC server from HaRP entirely - a self-DoS.

Signed-off-by: Oleksander Piskun <oleksandr2088@icloud.com>
@oleksandr-nc oleksandr-nc requested a review from kyteinsky as a code owner April 24, 2026 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix NGINX example in README.md and others as applicable...

1 participant