passbolt-external-secret-custom-fields.yaml 994 B

12345678910111213141516171819202122232425262728
  1. apiVersion: external-secrets.io/v1
  2. kind: ExternalSecret
  3. metadata:
  4. name: passbolt-custom-fields-example
  5. spec:
  6. refreshInterval: "1h0m0s"
  7. secretStoreRef:
  8. name: passbolt
  9. kind: SecretStore
  10. target:
  11. name: passbolt-custom-fields
  12. data:
  13. # Fetch a single custom field by its display name (metadata_key).
  14. # The property value is the literal prefix "custom_fields." followed by
  15. # the name of the field as configured in Passbolt.
  16. - secretKey: api_token
  17. remoteRef:
  18. key: e22487a8-feb8-4591-95aa-14b193930cb4 # Replace with the ID of an existing Passbolt secret
  19. property: custom_fields.api-token
  20. - secretKey: deploy_key
  21. remoteRef:
  22. key: e22487a8-feb8-4591-95aa-14b193930cb4
  23. property: custom_fields.deploy-key
  24. # Omitting property returns the full secret as JSON, with custom_fields
  25. # included as a nested object keyed by the field display name.
  26. - secretKey: full_secret
  27. remoteRef:
  28. key: e22487a8-feb8-4591-95aa-14b193930cb4