OpenAI API key hardcoded in application.properties, now expired (401 Unauthorized on all AI endpoints).
Fix
Replace hardcoded key with env variable. After merge, set OPENAI_API_KEY in .env.production and restart container.
## Problem
OpenAI API key hardcoded in application.properties, now expired (401 Unauthorized on all AI endpoints).
## Fix
Replace hardcoded key with env variable. After merge, set OPENAI_API_KEY in .env.production and restart container.
OpenAI key was hardcoded in application.properties and expired (401 Unauthorized).
Move to ${OPENAI_API_KEY} env variable so it can be updated without rebuilding.
This pull request has changes conflicting with the target branch.
src/main/resources/application.properties
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Problem
OpenAI API key hardcoded in application.properties, now expired (401 Unauthorized on all AI endpoints).
Fix
Replace hardcoded key with env variable. After merge, set OPENAI_API_KEY in .env.production and restart container.
OpenAI key was hardcoded in application.properties and expired (401 Unauthorized). Move to ${OPENAI_API_KEY} env variable so it can be updated without rebuilding.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.