Back to Home
tapmodocrop icon

mcp

Verified Safe

by tapmodocrop

Overview

This repository provides complete sample code for deploying Python web applications and background processing tasks to various Google Cloud Platform services, including Kubernetes Engine, App Engine, and Compute Engine.

Installation

Run Command
python bookshelf/main.py

Environment Variables

  • PROJECT_ID
  • CLOUD_STORAGE_BUCKET
  • GOOGLE_CLOUD_PROJECT
  • CLOUDSQL_USER
  • CLOUDSQL_PASSWORD
  • CLOUDSQL_DATABASE
  • CLOUDSQL_CONNECTION_NAME
  • MONGO_URI
  • GOOGLE_OAUTH2_CLIENT_ID
  • GOOGLE_OAUTH2_CLIENT_SECRET

Security Notes

The sample applications, particularly `bookshelf/main.py` and `optional-kubernetes-engine/config.py`, use `'secret'` as the default Flask `SECRET_KEY`. This is a critical security vulnerability for production environments and *must* be changed. File uploads in the Bookshelf app use `secure_filename` and perform extension checks, which is a good practice. The repository demonstrates integration with Google Cloud services like Secret Manager (for CI/CD scripts), Stackdriver Logging, Error Reporting, and Identity-Aware Proxy (IAP) for authentication, which enhance security when properly configured.

Similar Servers

Stats

Interest Score0
Security Score6
Cost ClassMedium
Stars0
Forks0
Last Update2025-12-21

Tags

Google Cloud PlatformPythonWeb ApplicationsKubernetesBackground TasksSamples