Skip to content

fix!: gate the forum HTTP API behind a toggle and require a staff caller - #298

Merged
feanil merged 1 commit into
masterfrom
feanil/release-http-api-gate
Oct 14, 2026
Merged

feanil merged 1 commit into
masterfrom
feanil/release-http-api-gate

Conversation

@feanil

@feanil feanil commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

The fix for GHSA-c6fp-f54c-6cv4 landed on master in 322ca14, but merging from the advisory replaced its subject with "Merge commit from fork". Semantic release could not parse it, missed the BREAKING CHANGE footer, and the last Release run decided no_release: https://github.com/openedx/forum/actions/runs/38577743442

This restates the change as a fix!: commit with the breaking change footer and adds a README section for FORUM_ENABLE_HTTP_API. A local semantic-release --noop version --print with this commit on master gives 0.5.0.

This needs to be rebase merged so the commit message lands on master as-is.

🤖 Generated with Claude Code

The fix for GHSA-c6fp-f54c-6cv4 landed on master as 322ca14, but merging
from the security advisory replaced its conventional-commit subject with
"Merge commit from fork", so python-semantic-release could not parse it,
missed its BREAKING CHANGE footer, and made no release. This commit
restates that change so the next Release run publishes it, and documents
the FORUM_ENABLE_HTTP_API setting in the README.

GHSA-c6fp-f54c-6cv4

BREAKING CHANGE: The forum HTTP API under /forum/api/v1/ and /forum/api/v2/
is no longer routed unless FORUM_ENABLE_HTTP_API is set to True, and when
routed it rejects callers that are not authenticated as a staff account.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@feanil
feanil marked this pull request as ready for review October 14, 2026 14:16
@feanil
feanil merged commit bc36edb into master Oct 14, 2026
11 checks passed
@feanil
feanil deleted the feanil/release-http-api-gate branch October 14, 2026 14:20
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.

1 participant