Skip to content

Add GCP service account and secret for Fleet Google Calendar integration#229

Open
robbiet480 wants to merge 1 commit intofleetdm:mainfrom
CampusTech:gcp-calendar-integration
Open

Add GCP service account and secret for Fleet Google Calendar integration#229
robbiet480 wants to merge 1 commit intofleetdm:mainfrom
CampusTech:gcp-calendar-integration

Conversation

@robbiet480
Copy link
Copy Markdown

Summary

This PR adds the GCP infrastructure needed to support Fleet's Google Calendar integration for policy-based calendar events.

Changes

gcp/main.tf

  • Creates a dedicated GCP service account (fleet-calendar-events) scoped to the Fleet project
  • Generates a service account key and stores it in Secret Manager as fleet-calendar-service-account-key
  • Adds a sensitive output (fleet_calendar_service_account_key_json) containing the key JSON, intended to be captured once and stored as FLEET_GOOGLE_CALENDAR_SERVICE_ACCOUNT_KEY in your CI/CD secrets or Fleet server configuration

Usage

After applying, retrieve the key from the Terraform output and configure it in Fleet:

terraform output -raw fleet_calendar_service_account_key_json

Set the result as the FLEET_GOOGLE_CALENDAR_SERVICE_ACCOUNT_KEY environment variable on your Fleet server (or store it in Secret Manager and inject it via Cloud Run secret env vars).

You will also need to complete the Google Workspace side of the setup (domain-wide delegation for the service account) per the Fleet calendar events documentation.


PR description drafted with Claude (claude.ai/claude-code), reviewed by author.

Creates a dedicated service account (fleet-calendar-events), generates a
key, and stores it in Secret Manager. The output value can be used to
populate FLEET_GOOGLE_CALENDAR_SERVICE_ACCOUNT_KEY in CI/CD secrets.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@robbiet480 robbiet480 requested review from a team and ddribeiro as code owners May 1, 2026 00:31
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