Skip to content

Secretstore creation using Workload Identity Federation in onprem cluster #5528

@makas45

Description

@makas45

Describe the bug
A clear and concise description of what the bug is.
we have installed the external secret operator in the anthos bare metal (onprem cluster) and trying to create secretstore using Workload Identity Federation it is not working . But If we try with service account key to authicate it. is working

Error Message which i got

Warning  InvalidProviderConfig  2s (x2 over 32s)  secret-store  failed to create GCP secretmanager client: unable to lookup workload identity: unable to get project id: Get "http://ipaddress/computeMetadata/v1/project/project-id": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

To Reproduce
Steps to reproduce the behavior:

  1. provide all relevant manifests
    Not working
apiVersion: external-secrets.io/v1
kind: SecretStore
metadata:
  name: demo-secrets-store
  namespace: demo
spec:
  provider:
    gcpsm:
      auth:
        workloadIdentity:
          serviceAccountRef:
            name: demo-test
      projectID: projectid

Working

apiVersion: external-secrets.io/v1
kind: SecretStore
metadata:
  name: demo-secrets-store-sa
  namespace: demo
spec:
  provider:
    gcpsm:
      auth:
        secretRef:
          secretAccessKeySecretRef:
            name: gcp-sa-key
            key: key.json
      projectID: projectid
  1. provide the Kubernetes and ESO version

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    triage/supportIndicates an issue that is a support question.

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions