Skip to content

Bootstrap: ExternalSecrets reference ClusterSecretStore/kubara-demo-sandbox which is never created, causing SecretSyncedError on fresh installs #301

Description

@monadic

Summary

Kubara deploys ExternalSecret resources in every app namespace (both image-pull-secret-es and grafana-admin-credentials-es) that reference ClusterSecretStore/kubara-demo-sandbox, but this ClusterSecretStore is never created as part of the bootstrap process. All ExternalSecrets fail immediately on a fresh install.

Affected namespaces

image-pull-secret-es is deployed in: argocd, cert-manager, external-secrets, homer-dashboard, kube-prometheus-stack, kyverno, kyverno-policy-reporter, metallb, metrics-server, traefik.

grafana-admin-credentials-es is deployed in: kube-prometheus-stack.

Observed

error processing spec.data[0] (key: docker_config):
could not get ClusterSecretStore "kubara-demo-sandbox" not found

All image-pull-secret secrets across the platform fail to sync, which also causes pods to fail with CreateContainerConfigError since the imagePullSecrets reference is broken.

Expected

Either:

  • The ClusterSecretStore/kubara-demo-sandbox should be created as part of kubara generate or the install bootstrap; or
  • The install documentation should clearly describe creating the backing secret store before applying the generated manifests; or
  • A fallback/stub ClusterSecretStore should be generated for local/sandbox environments.

Workaround

Create a ClusterSecretStore with the fake provider seeding the expected keys:

apiVersion: external-secrets.io/v1
kind: ClusterSecretStore
metadata:
  name: kubara-demo-sandbox
spec:
  provider:
    fake:
      data:
        - key: docker_config
          value: '{"pull-secret":"{\"auths\":{}}"}'
        - key: grafana_credentials
          value: '{"admin-user":"admin","admin-password":"<password>"}'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions