Skip to content

Add interactive GCP project setup script#1

Open
borng wants to merge 1 commit intomainfrom
feature/gcp-setup-script
Open

Add interactive GCP project setup script#1
borng wants to merge 1 commit intomainfrom
feature/gcp-setup-script

Conversation

@borng
Copy link
Copy Markdown
Collaborator

@borng borng commented Feb 25, 2026

  • Adds scripts/setup-gcp-project.sh — interactive wizard that automates GCP project setup for AgentCloak - Prompts for each value with sensible defaults (press Enter to accept)
  • Automates project creation, billing, API enablement, and OAuth credential creation
  • Pauses for manual consent screen configuration with step-by-step instructions, direct console links, and copy-paste scope string
  • Generates .env with SESSION_SECRET and DATABASE_ENCRYPTION_KEY auto-generated via openssl rand
  • README updated: automated setup as recommended path, manual steps collapsed into <details> block, project structure updated

Test plan

  • Run ./scripts/setup-gcp-project.sh with a fresh GCP account
  • Verify pressing Enter accepts defaults for all prompts
  • Verify consent screen instructions display correct project-specific URLs
  • Verify .env is generated with valid secrets and correct structure
  • Verify existing .env prompts before overwrite
  • Verify README renders correctly (collapsed manual steps, script example)

Adds scripts/setup-gcp-project.sh — an interactive wizard that automates
Google Cloud Platform setup for AgentCloak:

- Prompts for project name, ID, redirect URI, and support email with
  sensible defaults (press Enter to accept)
- Creates GCP project, links billing, enables Gmail + People APIs
- Pauses with step-by-step instructions for manual consent screen
  configuration (scopes, test users) with direct console links and
  copy-paste scope string
- Validates consent screen exists after manual step
- Creates OAuth 2.0 credentials via API once consent screen is ready
- Generates .env with SESSION_SECRET and DATABASE_ENCRYPTION_KEY
  auto-generated via openssl rand, plus all OAuth values filled in
- Warns before overwriting existing .env

README updated with automated setup as the recommended path (manual
steps collapsed into a <details> block), and project structure updated
to include scripts/.

Created by gregb and his home-grown crew of builders 🦜 🤖
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