/redpanda:connect-cdc-salesforcefrom redpanda
Streams Salesforce change data capture and Platform Events into Redpanda/Kafka using Redpanda Connect's salesforce_cdc input with OAuth Client Credentials auth. Covers Connected App setup, CDC enablement, replay-ID checkpointing, and Redpanda Enterprise features.
Ships in redpanda. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The salesforce_cdc input in Redpanda Connect streams change data capture (CDC) events and Platform Events from Salesforce into Redpanda or any Kafka-compatible topic. It uses the Salesforce Pub/Sub gRPC API (api.pubsub.salesforce.com:443) for real-time streaming and the Salesforce REST API for optional initial snapshots of existing sObject records. Authentication uses the OAuth 2.0 Client Credentials flow via a Salesforce Connected App.
This is an Enterprise feature — a Redpanda Enterprise license is required at runtime. The connector manages per-topic replay-ID state in a durable cache resource (Redis, PostgreSQL, DynamoDB, etc.) so pipelines survive restarts and resume from where they left off.
# Install the Salesforce CLI (macOS example)
brew install salesforce-cli
# Log in to your org (opens a browser)
sf org login web --set-default
In Salesforce Setup, enable Change Data Capture for the objects you want to capture:
Setup → Integrations → Change Data Capture → select Account, Contact, Opportunity → Save
Create a Connected App for OAuth Client Credentials:
Setup → App Manager → New Connected App
→ Enable OAuth Settings
→ Selected OAuth Scopes: api, full, RefreshToken
→ Enable Client Credentials Flow
→ Save → Manage Consumer Details → copy Consumer Key + Consumer Secret
Assign the Run-As user to the Connected App:
Setup → App Manager → find app → Manage → Edit Policies
→ Client Credentials Flow: set Run As User → Save
Store credentials as environment variables:
export SALESFORCE_ORG_URL="https://acme.my.salesforce.com"
export SALESFORCE_CLIENT_ID="3MVG9..." # Consumer Key
export SALESFORCE_CLIENT_SECRET="abc123..." # Consumer Secret
# salesforce-cdc-pipeline.yaml
input:
label: "sf_cdc"
salesforce_cdc:
org_url: ${SALESFORCE_ORG_URL}
client_id: ${SALESFORCE_CLIENT_ID}
client_secret: ${SALESFORCE_CLIENT_SECRET}
topics:
- Account # shorthand for /data/AccountChangeEvent
- Contact # shorthand for /data/ContactChangeEvent
- Opportunity # shorthand for /data/OpportunityChangeEvent
stream_snapshot: true # back-fill existing records first
replay_preset: latest # for live changes after snapshot; use earliest to recover missed events
snapshot_max_batch_size: 2000 # records per REST query page (200–2000)
stream_batch_size: 100 # events per gRPC Fetch call
max_parallel_snapshot_objects: 1
checkpoint_cache: persistent_cache
checkpoint_cache_key: salesforce_cdc # default
checkpoint_limit: 1024
batching:
count: 100
period: 1s
pipeline:
processors:
# Route each event to a topic named after the sObject
- mapping: |
meta kafka_topic = "sf.cdc." + metadata("sobject").lowercase()
output:
redpanda:
seed_brokers:
- localhost:9092
topic: ${! metadata("kafka_topic") }
cache_resources:
- label: persistent_cache
redis:
url: redis://localhost:6379
# Via rpk
rpk connect run salesforce-cdc-pipeline.yaml
# Via the redpanda-connect binary
redpanda-connect run salesforce-cdc-pipeline.yaml
# Via Docker
docker run --rm \
-e SALESFORCE_ORG_URL \
-e SALESFORCE_CLIENT_ID \
-e SALESFORCE_CLIENT_SECRET \
-v $(pwd)/salesforce-cdc-pipeline.yaml:/pipeline.yaml \
docker.redpanda.com/redpandadata/connect:latest \
run /pipeline.yaml
Every message has these metadata fields accessible via metadata("key") in Bloblang:
| Metadata key | Present for | Value |
|---|---|---|
topic | Streaming events only | Full Pub/Sub topic path, e.g. /data/AccountChangeEvent |
replay_id | Streaming events only | Hex-encoded Pub/Sub replay ID |
operation | All | read (snapshot rows), create, update, delete, undelete (streaming CDC) |
sobject | Streaming CDC events | sObject API name, e.g. Account (also set on snapshot rows by GetNextBatchParallel) |
record_ids | Streaming CDC events (when present) | Comma-separated affected record IDs |
event_uuid | Standard Platform Events only (when present) | Salesforce EventUuid (dedup key); absent on custom __e events |
Snapshot rows (operation: read) carry exactly sobject and operation — they have no topic, replay_id, record_ids, or event_uuid.
Example snapshot payload (operation=read):
{
"Id": "001Dp000008KFIXIA4",
"Name": "Acme Corp",
"BillingCity": "San Francisco",
"CreatedDate": "2024-01-15T10:30:00.000+0000"
}
Example CDC event payload (operation=create):
{
"ChangeEventHeader": {
"entityName": "Account",
"recordIds": ["001Dp000008KFIXIA4"],
"changeType": "CREATE",
"changeOrigin": "com/salesforce/api/rest/65.0"
},
"Name": "Acme Corp",
"BillingCity": "San Francisco"
}
The topics list accepts four forms. Each entry maps to exactly one gRPC Pub/Sub subscription with its own independent replay cursor:
| Form | Example | Resolves to |
|---|---|---|
| Bare sObject name | Account | /data/AccountChangeEvent |
| Explicit CDC channel | /data/AccountChangeEvent | /data/AccountChangeEvent |
| CDC firehose | /data/ChangeEvents | All CDC-enabled sObjects |
| Custom Platform Event | /event/Order__e | /event/Order__e |
| Standard Platform Event | /event/LoginEventStream | /event/LoginEventStream |
The firehose (/data/ChangeEvents) and per-sObject channels are mutually exclusive — do not mix them. Platform Event topics are always skipped during the REST snapshot phase (no REST equivalent exists).
When stream_snapshot: true:
snapshot_complete flag.topics via the Salesforce REST Query API, emitting rows with operation: read.snapshot_complete: true is written to the cache.Platform Event topics are always skipped in the snapshot phase. The firehose (/data/ChangeEvents) triggers snapshotting of all queryable sObjects.
The connector persists a JSON document to the cache under checkpoint_cache_key (default salesforce_cdc):
{
"snapshot_complete": true,
"rest_cursor": {},
"topics": {
"/data/AccountChangeEvent": "<hex-replay-id>",
"/data/ContactChangeEvent": "<hex-replay-id>"
}
}
On restart:
snapshot_complete is false and a rest_cursor is present, the snapshot resumes mid-page.replay_id is used to resume that subscription from the exact event where it left off.replay_id is rejected by Salesforce (gRPC INVALID_ARGUMENT — stale beyond retention), it is cleared from state and the subscription restarts using replay_preset.Use a durable cache backend (Redis, PostgreSQL, DynamoDB) for production. An in-memory cache loses all state on restart.
replay_preset: earliest starts at the oldest available event.snapshot_max_batch_size records is one API call. Large orgs with many records can consume significant quota during the initial snapshot.salesforce_cdc is an Enterprise-gated component. A startup error stating "this feature requires a valid Redpanda Enterprise Edition license that includes the Connect product" means the binary is not licensed. See https://docs.redpanda.com/connect/get-started/licensing/ to obtain and configure an Enterprise license.replay_id is rejected (event outside retention window), the connector automatically clears the stale ID and reconnects using replay_preset. Log line: topic /data/... replay_id rejected; clearing and reconnecting via configured preset.grpc.reconnect_max_attempts also governs transient schema-fetch failures — an event whose schema fetch keeps failing at the same replay position is retried that many times before the topic fails permanently. Deterministic failures (a schema that is missing, inaccessible, or fails to compile) and payloads that repeatedly fail to decode give up after a small fixed number of attempts regardless of that setting, since retrying cannot change the outcome. Terminal failures surface clearly on the health check instead of livelocking. Note the interaction with the default reconnect_max_attempts: 0 (unlimited): before 4.106.0, a transient schema fetch under that default could stall indefinitely.replay_id even when it arrives wrapped in a gRPC INVALID_ARGUMENT — that status describes the schema, and clearing the checkpoint would resubscribe from replay_preset and silently skip everything between the checkpoint and now.grpc.buffer_size buffer applies backpressure rather than dropping events (4.106.0+).salesforce_cdc inputs against the same cache by setting a distinct checkpoint_cache_key per input.The salesforce_cdc input is a Redpanda Connect enterprise connector — it requires a valid
Enterprise license that includes the Connect product. Beyond the connector, the Redpanda topics that
receive the CDC stream can use broker-side enterprise features that require a Redpanda Enterprise
license on the destination cluster:
redpanda.iceberg.mode = key_value | value_schema_id_prefix | value_schema_latest;
plus redpanda.iceberg.delete, redpanda.iceberg.invalid.record.action,
redpanda.iceberg.partition.spec, redpanda.iceberg.target.lag.ms). Requires
iceberg_enabled=true and Tiered Storage on the topic.cloud_storage_enabled cluster-wide; redpanda.remote.write + redpanda.remote.read per topic;
retention.local.target.ms/.bytes).cloud_topics_enabled=true cluster-wide, requires restart; create the topic with
redpanda.storage.mode=cloud, or default_redpanda_storage_mode=cloud to make it the cluster
default). Cloud Topic mode can be set only at topic creation time.enable_schema_id_validation = redpanda|compat; redpanda.value.schema.id.validation,
redpanda.value.subject.name.strategy).Check license status with rpk cluster license info. See
redpanda-enterprise-sink.md for exact config keys,
defaults, enable/disable commands, and license-expiry behavior.
salesforce_cdc config field — type, default, required status, and description grounded in source.redpanda.iceberg.*), Tiered Storage (redpanda.remote.read/write, retention), Cloud Topics (cloud_topics_enabled, redpanda.storage.mode=cloud), Server-side Schema ID Validation, and pointers to RBAC, Audit Logging, OIDC/Kerberos, FIPS, and Shadowing, with exact config keys, defaults, enable/disable commands, and license-expiry behavior.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub redpanda-data/skills --plugin redpanda36 skills in this plugin
/adpRedpanda's Agentic Data Plane: governance infrastructure for building, running, and governing AI agents and MCP servers behind a credential-injecting AI Gateway for LLM providers, operated through the `rpk ai` CLI and the ADP UI at ai.redpanda.com. Use when installing `rpk ai`, signing in to an environment, checking setup with `rpk ai doctor`, managing managed or self-managed AI agents and their triggers with `rpk ai agent` and `rpk ai trigger`, configuring remote or managed MCP servers with `rpk ai mcp-server` (including code mode and user-delegated OAuth), setting up LLM providers and models with `rpk ai llm-provider` and `rpk ai model`, applying GitOps manifests, or launching a coding tool with `rpk ai run`. For access policies, budgets and cost, guardrails and the kill switch, or secrets, API keys, data policies and OAuth, see `/redpanda:adp-governance`. For transcripts, the audit log, and traces, see `/redpanda:adp-observability`. For the `rpk cloud mcp` control-plane server, see `/redpanda:rpk-cloud`./adp-governanceGovern what Agentic Data Plane agents may do, spend, and expose, through the `rpk ai` CLI and the ADP UI at ai.redpanda.com, and look up governance features in the Redpanda docs. Use when writing or debugging a Cedar access policy with `rpk ai policy`, giving a new agent access, capping agent spend with `rpk ai budget`, analyzing cost, attaching a guardrail to a provider, containing or releasing an agent with the kill switch, storing or deleting a credential with `rpk ai secret`, minting an API key, masking MCP tool data with data policies, or setting up inbound or outbound OAuth. For signing in, agents, MCP servers, LLM providers, and the rest of the `rpk ai` CLI, see `/redpanda:adp`. For transcripts, the audit log, and traces, see `/redpanda:adp-observability`.Other plugins' skills for the same job