Skip to content

Changelog

New updates and improvements at Cloudflare.

Back to all posts

Pipelines Sink credentials can now be updated

You can now replace the credentials of a Basin Pipelines sink. Previously, an expired or revoked token meant deleting and recreating the sink.

Pipelines keep the sink's earlier credentials until you update them. Updating a failed pipeline automatically restarts it.

A failed pipeline's page with the reason it failed, the sink that changed, and the Update pipeline button

Dashboard

  • Update credentials — On a sink's page, in Destination. Create a new API token, or enter the credentials of a token you created.
  • Update pipeline — On a pipeline's page, when a stream or sink it uses has changed.
Go to Sinks ↗ The Update credentials dialog with two options: create a new API token, or enter credentials

API

Both requests need an API token with Basin Pipelines Edit permission.

First, update the sink. The following is an example of updating credentials of an R2 sink.

curl "https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/pipelines/v1/sinks/$SINK_ID" \
  --request PATCH \
  --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
  --json '{
    "config": {
      "credentials": {
        "access_key_id": "<ACCESS_KEY_ID>",
        "secret_access_key": "<SECRET_ACCESS_KEY>"
      }
    }
  }'

Then update each pipeline that uses it:

curl "https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/pipelines/v1/pipelines/$PIPELINE_ID/update_tables" \
  --request POST \
  --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN"

For more information, refer to Update sink credentials and Update a pipeline.