Skip to content

feat(play-integrity): add quota project configuration for API billing#108

Merged
ti3x merged 1 commit intomainfrom
GENAI-4002
Mar 4, 2026
Merged

feat(play-integrity): add quota project configuration for API billing#108
ti3x merged 1 commit intomainfrom
GENAI-4002

Conversation

@ti3x
Copy link
Contributor

@ti3x ti3x commented Mar 4, 2026

Add support for configuring a quota project for Play Integrity API calls via the x-goog-user-project header. This allows API quota to be billed to a specific GCP project (moz-fx-fenix-nonprod) rather than the default service account project.

Changes:

  • Add PLAY_INTEGRITY_QUOTA_PROJECT config variable
  • Include x-goog-user-project header in Play Integrity API requests
  • Set default quota project to moz-fx-fenix-nonprod in .env

Ref: https://cloud.google.com/docs/quotas/set-quota-project

Add support for configuring a quota project for Play Integrity API calls
via the x-goog-user-project header. This allows API quota to be billed
to a specific GCP project (moz-fx-fenix-nonprod) rather than the default
service account project.

Changes:
- Add PLAY_INTEGRITY_QUOTA_PROJECT config variable
- Include x-goog-user-project header in Play Integrity API requests
- Set default quota project to moz-fx-fenix-nonprod in .env

Ref: https://cloud.google.com/docs/quotas/set-quota-project
@ti3x ti3x requested a review from noahpodgurski March 4, 2026 17:13
@ti3x ti3x merged commit 7255344 into main Mar 4, 2026
1 check passed
@ti3x ti3x deleted the GENAI-4002 branch March 4, 2026 19:35
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