Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DNS errors in GCP Logs Explorer #139

Open
morancj opened this issue Jul 26, 2023 · 0 comments
Open

DNS errors in GCP Logs Explorer #139

morancj opened this issue Jul 26, 2023 · 0 comments

Comments

@morancj
Copy link
Member

morancj commented Jul 26, 2023

Failure to CRUD RR´s, examples:

Query

error json
{
  "protoPayload": {
    "@type": "type.googleapis.com/google.cloud.audit.AuditLog",
    "status": {
      "code": 5
    },
    "authenticationInfo": {
      "principalEmail": "dns-internal-dev-gke@weave-gitops-clusters.iam.gserviceaccount.com",
      "serviceAccountDelegationInfo": [
        {
          "principalSubject": "serviceAccount:weave-gitops-clusters.svc.id.goog[kube-system/external-dns]"
        }
      ],
      "principalSubject": "serviceAccount:dns-internal-dev-gke@weave-gitops-clusters.iam.gserviceaccount.com"
    },
    "requestMetadata": {
      "callerIp": "gce-internal-ip",
      "callerSuppliedUserAgent": "google-api-go-client/0.5,gzip(gfe),gzip(gfe)",
      "requestAttributes": {
        "time": "2023-07-26T11:38:09.838159Z",
        "auth": {}
      },
      "destinationAttributes": {}
    },
    "serviceName": "dns.googleapis.com",
    "methodName": "dns.changes.create",
    "authorizationInfo": [
      {
        "permission": "dns.resourceRecordSets.update",
        "granted": true,
        "resourceAttributes": {}
      }
    ],
    "resourceName": "managedZones/internal-dev-gke",
    "request": {
      "change": {
        "additions": [
          {
            "name": "a-promotions.gitops.internal-dev.wego-gke.weave.works.",
            "type": "TXT",
            "ttl": 300,
            "rrdata": [
              "\"heritage=external-dns,external-dns/owner=internal-dev,external-dns/resource=ingress/flux-system/weave-gitops-enterprise-pipeline-controller-promotion\""
            ]
          },
          {
            "name": "promotions.gitops.internal-dev.wego-gke.weave.works.",
            "type": "A",
            "ttl": 300,
            "rrdata": [
              "34.111.35.79"
            ]
          },
          {
            "name": "promotions.gitops.internal-dev.wego-gke.weave.works.",
            "type": "TXT",
            "ttl": 300,
            "rrdata": [
              "\"heritage=external-dns,external-dns/owner=internal-dev,external-dns/resource=ingress/flux-system/weave-gitops-enterprise-pipeline-controller-promotion\""
            ]
          }
        ],
        "deletions": [
          {
            "name": "a-promotions.gitops.internal-dev.wego-gke.weave.works.",
            "type": "TXT",
            "ttl": 300,
            "rrdata": [
              "\"heritage=external-dns,external-dns/owner=internal-dev,external-dns/resource=ingress/flux-system/weave-gitops-enterprise-pipeline-controller-promotion\""
            ]
          },
          {
            "name": "promotions.gitops.internal-dev.wego-gke.weave.works.",
            "type": "A",
            "ttl": 300,
            "rrdata": [
              "34.149.169.221"
            ]
          },
          {
            "name": "promotions.gitops.internal-dev.wego-gke.weave.works.",
            "type": "TXT",
            "ttl": 300,
            "rrdata": [
              "\"heritage=external-dns,external-dns/owner=internal-dev,external-dns/resource=ingress/flux-system/weave-gitops-enterprise-pipeline-controller-promotion\""
            ]
          }
        ]
      },
      "project": "weave-gitops-clusters",
      "managedZone": "internal-dev-gke",
      "@type": "type.googleapis.com/cloud.dns.api.ChangesCreateRequest"
    },
    "response": {
      "@type": "type.googleapis.com/cloud.dns.api.ChangesCreateResponse"
    }
  },
  "insertId": "-bn6u5mdh21k",
  "resource": {
    "type": "dns_managed_zone",
    "labels": {
      "zone_name": "internal-dev-gke",
      "project_id": "weave-gitops-clusters",
      "location": "global"
    }
  },
  "timestamp": "2023-07-26T11:38:09.761499Z",
  "severity": "ERROR",
  "logName": "projects/weave-gitops-clusters/logs/cloudaudit.googleapis.com%2Factivity",
  "receiveTimestamp": "2023-07-26T11:38:10.750495104Z"
}
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

No branches or pull requests

1 participant