Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

INT-4147 - Iterating KMS project locations switched to hardcoded list #497

Merged
merged 3 commits into from
Jun 13, 2022

Conversation

austinkelleher
Copy link
Contributor

Change KMS key ring client request code to iterate hardcoded list of project
locations instead of hitting the KMS project location API. The KMS project
location API was being hammered and could cause API quota issues.

Change KMS key ring client request code to iterate hardcoded list of project
locations instead of hitting the KMS project location API. The KMS project
location API was being hammered and could cause API quota issues.
@austinkelleher austinkelleher requested a review from a team as a code owner June 13, 2022 14:59
@austinkelleher austinkelleher force-pushed the INT-4147-gcp-locations-api branch from 197ceba to 3f4a9f6 Compare June 13, 2022 15:02
// Fetched directly from the `projects.locations.list` KMS API
//
// See: https://cloud.google.com/kms/docs/locations#regional
export const KMS_SERVICE_LOCATIONS: string[] = [
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

todo: Add a CI test to ensure that the locations returned from projects.locations.list match this list of locations. This would help us to keep this list up-to-date.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see #498

ndowmon
ndowmon previously approved these changes Jun 13, 2022
@austinkelleher austinkelleher merged commit 03c9f31 into main Jun 13, 2022
@austinkelleher austinkelleher deleted the INT-4147-gcp-locations-api branch June 13, 2022 15:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants