Skip to content

[KA-CHOW] fix(vesper-api-gateway): Hardcoded API keys found in configuration files. - #2

Open
HarshXAI wants to merge 1 commit into
mainfrom
kachow/heal-Hardcoded-API-keys-found-in-configuratio-1771727294051
Open

HarshXAI wants to merge 1 commit into
mainfrom
kachow/heal-Hardcoded-API-keys-found-in-configuratio-1771727294051

Conversation

@HarshXAI

Copy link
Copy Markdown
Owner

🔧 KA-CHOW Self-Healing Patch

Service: vesper-api-gateway
Issue type: Hardcoded API keys found in configuration files.

What changed

The code was modified to replace the hardcoded API key with a dynamic retrieval using os.getenv('API_KEY'). This change enhances security by ensuring that sensitive information like API keys are not stored directly in the codebase, reducing the risk of accidental exposure. By using environment variables, the API key can be managed securely outside the codebase.

Patch

import os

class VesperApiGateway:
    def __init__(self):
        self.api_key = os.getenv('API_KEY')

    def get_api_key(self):
        return self.api_key

Auto-generated by KA-CHOW — review before merging

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