Skip to content

feat(curseforge): attach api key to CDN requests - #8

Merged
NielsPilgaard merged 2 commits into
masterfrom
feature/curseforge-api-key
Jul 24, 2026
Merged

feat(curseforge): attach api key to CDN requests#8
NielsPilgaard merged 2 commits into
masterfrom
feature/curseforge-api-key

Conversation

@NielsPilgaard

Copy link
Copy Markdown
Collaborator

CurseForge now requires an API key for CDN downloads (edge.forgecdn.net, curseforge.com). Key is injected at build time from CURSEFORGE_API_KEY (env or secrets.properties) into a generated BuildSecrets object, with a per-install override via curseforgeApiKey in server-setup-config.yaml. An OkHttp network interceptor attaches the key only to CDN hosts and lets it drop off on redirects to other hosts.

Also fixes githubRelease token lookup to check env var GITHUB_TOKEN first, and wires the release job + api key secret into CI.

CurseForge now requires an API key for CDN downloads (edge.forgecdn.net,
curseforge.com). Key is injected at build time from CURSEFORGE_API_KEY
(env or secrets.properties) into a generated BuildSecrets object, with a
per-install override via curseforgeApiKey in server-setup-config.yaml.
An OkHttp network interceptor attaches the key only to CDN hosts and
lets it drop off on redirects to other hosts.

Also fixes githubRelease token lookup to check env var GITHUB_TOKEN
first, and wires the release job + api key secret into CI.
@NielsPilgaard
NielsPilgaard merged commit 24c717b into master Jul 24, 2026
1 check passed
@NielsPilgaard
NielsPilgaard deleted the feature/curseforge-api-key branch July 24, 2026 06:01
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