Description
The Kestra webhook secret is hardcoded in backend/app/core/kestra_client.py line 31:
webhook_key = "redloop_secret"
This is a security vulnerability that exposes the webhook authentication to anyone with code access.
Impact
- Anyone can trigger Kestra workflows by knowing the secret
- Security breach if repository is public
- Violates security best practices
Fix Required
- Move secret to environment variable:
KESTRA_WEBHOOK_KEY
- Update
backend/.env.example with placeholder
- Read from environment:
os.getenv("KESTRA_WEBHOOK_KEY")
- Update documentation with setup instructions
- Rotate the actual secret in production
Location
Related Issues
Description
The Kestra webhook secret is hardcoded in
backend/app/core/kestra_client.pyline 31:This is a security vulnerability that exposes the webhook authentication to anyone with code access.
Impact
Fix Required
KESTRA_WEBHOOK_KEYbackend/.env.examplewith placeholderos.getenv("KESTRA_WEBHOOK_KEY")Location
backend/app/core/kestra_client.pyRelated Issues