Add GCP service account and secret for Fleet Google Calendar integration#229
Open
robbiet480 wants to merge 1 commit intofleetdm:mainfrom
Open
Add GCP service account and secret for Fleet Google Calendar integration#229robbiet480 wants to merge 1 commit intofleetdm:mainfrom
robbiet480 wants to merge 1 commit intofleetdm:mainfrom
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds the GCP infrastructure needed to support Fleet's Google Calendar integration for policy-based calendar events.
Changes
gcp/main.tffleet-calendar-events) scoped to the Fleet projectfleet-calendar-service-account-keyfleet_calendar_service_account_key_json) containing the key JSON, intended to be captured once and stored asFLEET_GOOGLE_CALENDAR_SERVICE_ACCOUNT_KEYin your CI/CD secrets or Fleet server configurationUsage
After applying, retrieve the key from the Terraform output and configure it in Fleet:
Set the result as the
FLEET_GOOGLE_CALENDAR_SERVICE_ACCOUNT_KEYenvironment 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.