Skip to content

fix: remove the hardcoded Kyma API key fallback from the sift cron - #100

Merged
sonpiaz merged 1 commit into
mainfrom
fix/remove-hardcoded-kyma-key
Sep 12, 2026
Merged

fix: remove the hardcoded Kyma API key fallback from the sift cron#100
sonpiaz merged 1 commit into
mainfrom
fix/remove-hardcoded-kyma-key

Conversation

@sonpiaz

@sonpiaz sonpiaz commented Sep 12, 2026

Copy link
Copy Markdown
Member

What

src/app/api/cron/sift/route.ts fell back to a literal Kyma API key when KYMA_API_KEY was unset. That put a working key in a public repository.

This change reads the environment only, and the route returns a 500 with a clear message if the variable is missing.

Why it is safe to merge

  • The Vercel project already sets KYMA_API_KEY in Production, so the live cron keeps working.
  • npx tsc --noEmit passes, same as main.

What this does not do

Removing the literal does not revoke the key. The value remains in git history and in the repository's forks, so the key has to be rotated in Kyma separately. That is tracked outside this PR.

🤖 Generated with Claude Code

https://claude.ai/code/session_01JjoE3dRyR4WnS3zjGkAAgS

The route fell back to a literal Kyma key when KYMA_API_KEY was unset, which
put a working key in a public repository. It now reads the environment only
and returns a 500 if the variable is missing. Production already sets
KYMA_API_KEY, so behaviour there does not change.

Removing the literal does not revoke it: the value stays in git history and
in forks, so the key itself must be rotated separately.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JjoE3dRyR4WnS3zjGkAAgS
@vercel

vercel Bot commented Sep 12, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
open-affiliate Ready Ready Preview Sep 12, 2026 8:05pm UTC

Request Review

@sonpiaz
sonpiaz merged commit 77e736d into main Sep 12, 2026
4 checks passed
@sonpiaz
sonpiaz deleted the fix/remove-hardcoded-kyma-key branch September 12, 2026 20:23
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