
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Celery Eye is a Django app that logs and displays Celery task execution details in the Django Admin panel. It enables developers and operators to monitor task history, status, and performance directly from the web UI.
pip install celery-eye
Before installing celery-eye
, ensure your Django project is already configured with Celery and Redis.
celery.py
Create a celery.py
file in your main Django project folder (same level as settings.py
):
# myproject/celery.py
import os
from celery import Celery
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'myproject.settings')
app = Celery('myproject')
app.config_from_object('django.conf:settings', namespace='CELERY')
app.autodiscover_tasks()
__init__.py
to initialize Celery# myproject/__init__.py
from .celery import app as celery_app
__all__ = ['celery_app']
settings.py
ConfigurationAdd the following Celery and Redis configuration in your settings.py
:
import os
# Celery Configuration
CELERY_BROKER_URL = os.getenv("CELERY_BROKER_URL", "redis://localhost:6379/0")
CELERY_ACCEPT_CONTENT = ["json"]
CELERY_TASK_SERIALIZER = "json"
CELERY_TIMEZONE = os.getenv("DEFAULT_TIMEZONE", "UTC") # or your desired timezone
CELERY_LOG_DIR = BASE_DIR / "logs" # or any path like "/var/logs/celery_eye/ or your path mount in your docker volumes"
Make sure you have Redis running locally or remotely.
celery_eye
to INSTALLED_APPS
INSTALLED_APPS = [
...
'celery_eye',
]
urlpatterns = [
path("celery-eye/", include("celery_eye.urls")),
]
python manage.py migrate
python manage.py createsuperuser
Make sure your services are running:
# Run Redis
redis-server
# Run Celery Worker (in your Django root directory)
celery -A myproject worker --loglevel=info
# Run Django server
python manage.py runserver
You should now be able to:
# any_app/tasks.py
from celery import shared_task
@shared_task
def test_task(x, y):
return x + y
Trigger in a Django shell:
python manage.py shell
from any_app.tasks import test_task
test_task.delay(5, 7)
You can spin up Redis with Docker:
docker run -d -p 6379:6379 redis
Pull requests, issues, and feature suggestions are welcome!
MIT License. See LICENSE for more details.
FAQs
Celery Eye - Django app to monitor and view Celery task logs in the admin panel
We found that celery-eye demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.