Hostile 99% macos Download

cloud-sql-proxy 2.28.0

Legitimate Cloud SQL proxy source

“Utility for connecting securely to your Cloud SQL instances”

Basename is uppercase README.mdContains an unbounded block loop

Evidence

GCP credential environment variable name .envrc.example · lines 1–23
⋯9 lines
10export POSTGRES_PASS="postgres-password"
11export POSTGRES_DB="postgres-db-name"
12export POSTGRES_USER_IAM="[email protected]"
13
14export SQLSERVER_CONNECTION_NAME="project:region:instance"
15export SQLSERVER_USER="sqlserver-user"
16export SQLSERVER_PASS="sqlserver-password"
17export SQLSERVER_DB="sqlserver-db-name"
18
19export GOOGLE_APPLICATION_CREDENTIALS=/path/to/key.json
20
21# Requires the impersonating IAM principal to have
22# roles/iam.serviceAccountTokenCreator
23export IMPERSONATED_USER="[email protected]"
GitHub Actions push workflow trigger codeql.yml · lines 12–31
12:57… rmissions and
13# limitations under the License.
14
15name: "CodeQL"
16
17on:
18 push:
19 branches: ["main"]
20 pull_request:
21 branches: ["main"]
22 paths-ignore:
23 - "**/*.md"
24 - "**/*.txt"
25
26# Declare default permissions as read only.
27permissions: read-all
28
29jobs:
30 analyze:
31 name: Analyze …
imports net cloudsql.go · lines 1–44
1// Copyright 2022 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package cloudsql
16
17import (
18 "context"
19 "io"
20 "net"
21
22 "cloud.google.com/go/cloudsqlconn"
23)
24
⋯20 lines
imports github.com/coreos/go-systemd/v22/daemon root.go · lines 11–57
11:48… , either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package cmd
16
17import (
18 "context"
19 _ "embed"
20 "errors"
21 "fmt"
22 "io"
23 "net"
24 "net/http"
25 "net/http/pprof"
26 "net/url"
27 "os"
28 "os/signal"
29 "path/filepath"
30 "strconv"
31 "strings"
32 "sync"
33 "syscall"
34 "time"
35
36 "cloud.google.com/go/cloudsqlconn"
37 "contrib.go.opencensus.io/exporter/prometheus"
38 "contrib.go.opencensus.io/exporter/stackdriver"
39 "github.com/GoogleCloudPlatform/cloud-sql-proxy/v2/cloudsql"
40 "github.com/GoogleCloudPlatform/cloud-sql-proxy/v2/internal/healthcheck"
41 "github.com/GoogleCloudPlatform/cloud-sql-proxy/v2/internal/log"
42 "github.com/GoogleCloudPlatform/cloud-sql-proxy/v2/internal/proxy"
43 "github.com/coreos/go-systemd/v22/daemon"
44 "github.com/spf13/cobra"
45 "github.com/spf13/pflag"
46 "github.com/spf13/viper"
47 "go.opencensus.io/trace"
48 "google.golang.org/genproto/googleapis/rpc/errdetails"
49 "google.golang.org/grpc/codes"
50 "google.golang.org/grpc/status"
51)
52
⋯5 lines
X25519 or Curve25519 algorithm reference root.go · lines 311–314
311:69… 5.2+ and
312 v1.37.6+), and automatically falls back to classical X25519 if the server does
313 not support hybrid PQC. To disable post-quantum key exchange, set the
314 environment variable GODEBUG=tlsml …

Showing the top 5 files — 1 more file (11 regions) not shown.

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.