From db33fd948956cb89915a3b36ac39ff6287421048 Mon Sep 17 00:00:00 2001 From: ajacoutot Date: Sat, 19 Nov 2022 14:35:54 +0000 Subject: [PATCH] Import cloud-sql-proxy-2.0.0rc3 The Cloud SQL Auth proxy is a utility for ensuring secure connections to your Cloud SQL instances. <...> ok robert@ --- sysutils/cloud-sql-proxy/Makefile | 29 +++++++++++++++++++++++++++++ sysutils/cloud-sql-proxy/distinfo | 2 ++ sysutils/cloud-sql-proxy/pkg/DESCR | 25 +++++++++++++++++++++++++ sysutils/cloud-sql-proxy/pkg/PLIST | 1 + 4 files changed, 57 insertions(+) create mode 100644 sysutils/cloud-sql-proxy/Makefile create mode 100644 sysutils/cloud-sql-proxy/distinfo create mode 100644 sysutils/cloud-sql-proxy/pkg/DESCR create mode 100644 sysutils/cloud-sql-proxy/pkg/PLIST diff --git a/sysutils/cloud-sql-proxy/Makefile b/sysutils/cloud-sql-proxy/Makefile new file mode 100644 index 00000000000..e314bc96906 --- /dev/null +++ b/sysutils/cloud-sql-proxy/Makefile @@ -0,0 +1,29 @@ +COMMENT= GCP Cloud SQL Auth proxy + +#VERSION= 2.0.0 +#PKGNAME= cloud-sql-proxy-${VERSION} +VERSION= 2.0.0-preview.3 +PKGNAME= cloud-sql-proxy-2.0.0rc3 + +# cloud-sql-proxy-vendored distfile generated by fetching archive from +# https://github.com/GoogleCloudPlatform/cloud-sql-proxy/archive/v$VERSION/cloud-sql-proxy-$VERSION.tar.gz +# and running "go mod tidy" + "go mod vendor" +DISTNAME= cloud-sql-proxy-vendored-${VERSION} +MASTER_SITES= https://distfiles.bsdfrog.org/ +ALL_TARGET= github.com/GoogleCloudPlatform/cloud-sql-proxy + +CATEGORIES= sysutils databases net + +MAINTAINER= Antoine Jacoutot + +# Apache-2.0 +PERMIT_PACKAGE= Yes + +WANTLIB += c pthread + +MODULES= lang/go + +# go/src/github.com/GoogleCloudPlatform/cloud-sql-proxy/Dockerfile +MODGO_LDFLAGS += -X main.metadataString=container + +.include diff --git a/sysutils/cloud-sql-proxy/distinfo b/sysutils/cloud-sql-proxy/distinfo new file mode 100644 index 00000000000..81e5acedf8a --- /dev/null +++ b/sysutils/cloud-sql-proxy/distinfo @@ -0,0 +1,2 @@ +SHA256 (cloud-sql-proxy-vendored-2.0.0-preview.3.tar.gz) = dMX5/w3hzpTykpjG1/T5NBvUCU5B5Dx1yS+wtfvdQ6E= +SIZE (cloud-sql-proxy-vendored-2.0.0-preview.3.tar.gz) = 6271221 diff --git a/sysutils/cloud-sql-proxy/pkg/DESCR b/sysutils/cloud-sql-proxy/pkg/DESCR new file mode 100644 index 00000000000..00a2b960cf7 --- /dev/null +++ b/sysutils/cloud-sql-proxy/pkg/DESCR @@ -0,0 +1,25 @@ +The Cloud SQL Auth proxy is a utility for ensuring secure connections to your +Cloud SQL instances. It provides IAM authorization, allowing you to control who +can connect to your instance through IAM permissions, and TLS 1.3 encryption, +without having to manage certificates. + +See the Connecting Overview page +(https://cloud.google.com/sql/docs/mysql/connect-overview) for more information +on connecting to a Cloud SQL instance, or the About the proxy page +(https://cloud.google.com/sql/docs/mysql/sql-proxy) for details on how the Cloud +SQL proxy works. + +The Cloud SQL Auth proxy has support for: + +- Automatic IAM Authentication (Postgres only) +- Metrics (Cloud Monitoring, Cloud Trace, and Prometheus) +- HTTP Healthchecks +- Service account impersonation +- Separate Dialer functionality released as the Cloud SQL Go Connector +- Configuration with environment variables +- Fully POSIX-compliant flags + +NOTE: The proxy does not configure the network between the VM it's running on +and the Cloud SQL instance. You MUST ensure the proxy can reach your Cloud SQL +instance, either by deploying it in a VPC that has access to your Private IP +instance, or by configuring Public IP. diff --git a/sysutils/cloud-sql-proxy/pkg/PLIST b/sysutils/cloud-sql-proxy/pkg/PLIST new file mode 100644 index 00000000000..210f27fc458 --- /dev/null +++ b/sysutils/cloud-sql-proxy/pkg/PLIST @@ -0,0 +1 @@ +@bin bin/cloud-sql-proxy