apiVersion: secrets.hashicorp.com/v1beta1
kind: VaultStaticSecret
metadata:
  name: api-secret
  namespace: reactbin
spec:
  vaultAuthRef: reactbin-vault-auth
  mount: kv
  type: kv-v2
  # Required Vault keys at this path:
  #   DATABASE_URL, JWT_SECRET_KEY, OWNER_USERNAME, OWNER_PASSWORD,
  #   S3_ENDPOINT_URL, S3_BUCKET_NAME, S3_ACCESS_KEY_ID, S3_SECRET_ACCESS_KEY,
  #   API_BASE_URL
  path: reactbin/api/config
  refreshAfter: 1h
  destination:
    name: api-env
    create: true
