full-secret-store.yaml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. apiVersion: external-secrets.io/v1alpha1
  2. kind: SecretStore
  3. metadata:
  4. name: example
  5. namespace: example-ns
  6. spec:
  7. # Used to select the correct ESO controller (think: ingress.ingressClassName)
  8. # The ESO controller is instantiated with a specific controller name
  9. # and filters ES based on this property
  10. # Optional
  11. controller: dev
  12. # You can specify retry settings for the http connection
  13. # these fields allow you to set a maxRetries before failure, and
  14. # an interval between the retries.
  15. # Current supported providers: IBM
  16. retrySettings:
  17. maxRetries: 5
  18. retryInterval: "10s"
  19. # provider field contains the configuration to access the provider
  20. # which contains the secret exactly one provider must be configured.
  21. provider:
  22. # (1): AWS Secrets Manager
  23. # aws configures this store to sync secrets using AWS Secret Manager provider
  24. aws:
  25. service: SecretsManager
  26. # Role is a Role ARN which the SecretManager provider will assume
  27. role: iam-role
  28. # AWS Region to be used for the provider
  29. region: eu-central-1
  30. # Auth defines the information necessary to authenticate against AWS by
  31. # getting the accessKeyID and secretAccessKey from an already created Kubernetes Secret
  32. auth:
  33. secretRef:
  34. accessKeyID:
  35. name: awssm-secret
  36. key: access-key
  37. secretAccessKey:
  38. name: awssm-secret
  39. key: secret-access-key
  40. vault:
  41. server: "https://vault.acme.org"
  42. # Path is the mount path of the Vault KV backend endpoint
  43. path: "secret"
  44. # Version is the Vault KV secret engine version.
  45. # This can be either "v1" or "v2", defaults to "v2"
  46. version: "v2"
  47. # vault enterprise namespace: https://www.vaultproject.io/docs/enterprise/namespaces
  48. namespace: "a-team"
  49. # base64 encoded string of certificate
  50. caBundle: "..."
  51. # Instead of caBundle you can also specify a caProvider
  52. # this will retrieve the cert from a Secret or ConfigMap
  53. caProvider:
  54. # Can be Secret or ConfigMap
  55. type: "Secret"
  56. # This is optional, if not specified will be 'Default'
  57. namespace: "my-cert-secret-namespace"
  58. name: "my-cert-secret"
  59. key: "cert-key"
  60. auth:
  61. # static token: https://www.vaultproject.io/docs/auth/token
  62. tokenSecretRef:
  63. name: "my-secret"
  64. namespace: "secret-admin"
  65. key: "vault-token"
  66. # AppRole auth: https://www.vaultproject.io/docs/auth/approle
  67. appRole:
  68. path: "approle"
  69. roleId: "db02de05-fa39-4855-059b-67221c5c2f63"
  70. secretRef:
  71. name: "my-secret"
  72. namespace: "secret-admin"
  73. key: "vault-token"
  74. # Kubernetes auth: https://www.vaultproject.io/docs/auth/kubernetes
  75. kubernetes:
  76. mountPath: "kubernetes"
  77. role: "demo"
  78. # Optional service account reference
  79. serviceAccountRef:
  80. name: "my-sa"
  81. namespace: "secret-admin"
  82. # Optional secret field containing a Kubernetes ServiceAccount JWT
  83. # used for authenticating with Vault
  84. secretRef:
  85. name: "my-secret"
  86. namespace: "secret-admin"
  87. key: "vault"
  88. # (2): GCP Secret Manager
  89. gcpsm:
  90. # Auth defines the information necessary to authenticate against GCP by getting
  91. # the credentials from an already created Kubernetes Secret.
  92. auth:
  93. secretRef:
  94. secretAccessKeySecretRef:
  95. name: gcpsm-secret
  96. key: secret-access-credentials
  97. projectID: myproject
  98. # (TODO): add more provider examples here
  99. status:
  100. # Standard condition schema
  101. conditions:
  102. # SecretStore ready condition indicates the given store is in ready
  103. # state and able to referenced by ExternalSecrets
  104. # If the `status` of this condition is `False`, ExternalSecret controllers
  105. # should prevent attempts to fetch secrets
  106. - type: Ready
  107. status: "False"
  108. reason: "ConfigError"
  109. message: "SecretStore validation failed"
  110. lastTransitionTime: "2019-08-12T12:33:02Z"