Back to Home
AmrKhater0011 icon

devops_server

by AmrKhater0011

Overview

An end-to-end example project showcasing automated software deployment of a full-stack server application.

Installation

Run Command
node todoApp/todoApp.js

Environment Variables

  • PORT
  • NATS_URL
  • POSTGRES_HOST
  • POSTGRES_PORT
  • POSTGRES_USER
  • POSTGRES_PASSWORD
  • POSTGRES_DB
  • DISCORD_WEBHOOK_URL
  • GOOGLE_APPLICATION_CREDENTIALS
  • BUCKET_NAME
  • STATIC_DIR_REL
  • IMAGE_SOURCE_URL
  • TEN_MINUTES
  • IMAGE_DIR_REL
  • OUTPUT_IMAGE_FILENAME
  • CACHED_TIME_FILENAME

Security Notes

The server uses parameterized queries for database interactions, preventing common SQL injection. However, it relies heavily on environment variables for sensitive data (DB credentials, Discord webhook, GCP credentials) which must be securely managed externally. Potential for Server-Side Request Forgery (SSRF) exists if 'IMAGE_SOURCE_URL' in server.js can be manipulated by an attacker, as it fetches an image from this URL without apparent validation. User-provided content for todos is sent to NATS and then to Discord via a webhook without explicit sanitization, posing a risk for content injection or abuse of Discord's markdown/commands.

Similar Servers

Stats

Interest Score0
Security Score6
Cost ClassLow
Avg Tokens5
Stars0
Forks0
Last Update2026-01-19

Tags

Node.jsExpressPostgreSQLNATSCI/CD