Skip to content

Conversation

@julwrites
Copy link
Owner

No description provided.

google-labs-jules bot and others added 8 commits November 26, 2025 16:06
Removes the dependency on `secrets.yaml` and implements a new secret management strategy.

- If `GCLOUD_PROJECT_ID` is set, secrets are fetched exclusively from Google Secret Manager.
- If `GCLOUD_PROJECT_ID` is not set, secrets are fetched from environment variables for local development.

This change also fixes the Firestore client initialization error by ensuring the `GCLOUD_PROJECT_ID` is correctly propagated to the datastore client. The `BotPlatform` dependency's `SecretsData` struct is now correctly populated to ensure compatibility.
Refactor Secret Management to Use Google Secret Manager
Authenticated Google Secret Manager client using `GCLOUD_SA_KEY` environment variable if present.
Updated `setEnv` test utility to isolate tests from real Secret Manager by temporarily unsetting `GCLOUD_PROJECT_ID`.
Authenticate Secret Manager with GCLOUD_SA_KEY
Defensively unset env vars in all integration tests and fix API context
@julwrites julwrites merged commit bf82252 into master Nov 28, 2025
2 checks passed
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.

2 participants