mirror of
https://github.com/gravitational/teleport.git
synced 2026-09-21 14:35:22 +08:00
* Proto changes * Types changes * Configuration changes * Cloud client, `go.mod` * Add method to fetch AlloyDB token * Engine changes * `make -C integrations/operator crd` * lint fix * `make -C integrations/terraform docs` * change GCPCloudSQL comment in proto * Update lib/srv/db/postgres/alloydb.go Co-authored-by: Marco Dinis <marco.dinis@goteleport.com> * Update lib/srv/db/common/auth.go Co-authored-by: Marco Dinis <marco.dinis@goteleport.com> * address review comments * lint fix * Rename `is_alloy_db` to `is_alloydb` * Clarify comments for AlloyDB database fields in DatabaseGCP struct * Nudge user towards proper permissions * Update lib/srv/db/postgres/alloydb.go Co-authored-by: rosstimothy <39066650+rosstimothy@users.noreply.github.com> * remove todo in favor of longer comment * reduce indentation * suggest custom IAM role with minimal required scope * Major implementation update: - new URI format `alloydb://<connection uri>` - removed some configuration fields; added `gcp.alloydb.endpoint` instead - added connection URI resolution against configured endpoint type - made query cancellation and health checks aware of AlloyDB needs - unified query cancellation logic to use the `connector` type * Revert description changes for flags; these are redundant for AlloyDB * Enhance error handling in ParseAlloyDBConnectionURI function and add comprehensive test cases for invalid URIs * split `endpoint` into `endpoint_type` and `endpoint_override` * Remove indentation from custom error messages * Log resolved database address * fix serialization test * explain the logic in `getGCPType` * use string instead of enum for endpoint type * add missing cast --------- Co-authored-by: Marco Dinis <marco.dinis@goteleport.com> Co-authored-by: rosstimothy <39066650+rosstimothy@users.noreply.github.com>