This is a Flask application designed to handle webhook from LeanIX. It includes rate limiting, user authentication, and security headers for enhanced security.
This is just a showcase to improve the enterprise repository object's description with chatgpt.
The Programm listen to a LeanIX event named "FactSheetCreatedEvent" and post a comment on the new Factsheet with a suggestion to insert a proper description provided by ChatGPT. You can also change the description directly.
Please use SSL in productive environments for sure.
See also the LeanIX AI Assistent
Before you begin, ensure you have met the following requirements:
- Python 3.x installed
- Dependencies listed in
requirements.txt
installed - API keys and configuration set up (OpenAI, LeanIX, Basic Auth.)
-
Clone this repository:
git clone git@github.com:bc-bjoern/leanix_description.git ld cd ld
-
Create environment if needed:
virtualenv venv . venv/bin/activate
-
Install requirements:
pip install -r requirements.txt
-
Setup Webhook in LeanIX with Basic Auth
-
Configure your API keys and application settings in the appropriate sections of .env
cp .env.example .env vi .env
Start the Flask application:
python leanix_description/ld.py
Your webhook server should now be running on http://localhost:5000/webhook. Ensure you have configured your webhook provider (e.g., LeanIX) to send webhooks to this URL.
git clone git@github.com:bc-bjoern/leanix_description.git ld
cd ld
cp .env.example .env
vi .env
docker build -t ld .
docker run -p 5000:5000 ld:latest
- This application enforces rate limiting to protect against abuse.
- User authentication is required for access.
- Security headers are in place to mitigate common web security vulnerabilities.
This project is licensed under the MIT License - see the LICENSE file for details.