fix: externalize OpenAI API key to env variable #1

Open
arystanbek wants to merge 1 commits from fix/openai-key-env-and-api-docs into main
Owner

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.

## 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.
arystanbek added 1 commit 2026-08-13 12:50:06 +00:00
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.
git fetch -u origin fix/openai-key-env-and-api-docs:fix/openai-key-env-and-api-docs
git checkout fix/openai-key-env-and-api-docs
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: digiops/marketing-parser#1