Upgrade to v1.11
This guide covers what changes when upgrading from v1.10 to v1.11. There are two breaking changes and one Redis migration to review before upgrading.
The server refuses to start while a migration is pending. Before running outpost migrate apply --yes, check whether it moves any keys: see IDs are escaped in Redis keys. There is no new PostgreSQL or ClickHouse migration. Retries scheduled by v1.10 run on v1.11.
| Change | Impact | Action Required |
|---|---|---|
| Custom header updates merge per header | Clients that update a webhook destination's config.custom_headers | Remove headers with null instead of leaving them out |
Tenant JWTs need API_JWT_SECRET | Deployments that use the tenant portal or tenant JWTs without API_JWT_SECRET | Set API_JWT_SECRET |
| IDs are escaped in Redis keys | Tenant or destination IDs that contain %, :, { or } | Check outpost migrate plan and pick an upgrade order |
For new features and fixes, see the v1.11.0 release notes.
Breaking Changes
Custom header updates merge per header
A PATCH to a webhook destination's config.custom_headers now updates the headers you send and keeps the others. v1.10 replaced the whole object.
custom_headers in the update | v1.10 | v1.11 |
|---|---|---|
| A header left out | removed | kept |
A header set to null | rejected | removed |
{} | all headers removed | no change |
The field set to null | all headers removed | all headers removed |
If your client removes headers by sending the object without them, send each removed header as null instead, and send null for the field to remove all of them. Creating a destination is unchanged. See Custom Headers.
Tenant JWTs need API_JWT_SECRET
Tenant JWTs and the tenant portal now require API_JWT_SECRET. Without it, a tenant JWT gets a 401, and GET /tenants/{tenant_ and GET /tenants/{tenant_ return 501. v1.10 signed and accepted tenant JWTs with an empty key when the secret was unset. The API key works as before.
If you use the tenant portal or tenant JWTs, set API_JWT_SECRET before upgrading. Tokens issued by v1.10 with the secret set keep working. See the configuration reference.
Migration
IDs are escaped in Redis keys
Tenant, destination and event IDs are now percent-encoded where they appear in Redis keys, so IDs that contain %, :, { or } can no longer share a key with another tenant's. The Redis migration 004_escape_ids moves the stored tenants and destinations whose IDs contain those characters. Tenants and destinations with other IDs keep their keys.
Run outpost migrate plan with the v1.11 image to see how many keys move:
Redis Migrations (1 pending):
- redis/004_escape_ids: Escape tenant and destination IDs in tenant store keys
keys_to_move: 0
With keys_to_move: 0, run outpost migrate apply --yes and upgrade as usual.
With more than 0 keys to move, v1.10 no longer finds the moved tenants and destinations once the migration has run: API requests for them through a v1.10 instance return 404, and events published through one are accepted but not delivered. Pick one:
- Stop v1.10 first: stop every instance, run
outpost migrate apply --yes, then start v1.11. Nothing is lost; the API is unavailable in between. - Rolling update: run
outpost migrate apply --yes, then replace the instances. Until the last v1.10 instance stops, don't create or update the affected tenants or their destinations (aPUT /tenants/{tenant_id}through v1.10 creates an empty tenant that v1.11 doesn't see), and re-publish events sent for them in that window.
If your deployment runs outpost migrate apply --yes on startup, as in the Schema Migration Guide, the migration runs when the first v1.11 instance starts, while v1.10 is still serving: that is the rolling update. To stop v1.10 first, scale it to zero before deploying v1.11.
The migration can be run again. If it stops on an error, it stays pending and the next run continues where it stopped. See the Schema Migration Guide.
Behavior Changes
- Publish idempotency is per tenant. The same event
idpublished for two tenants is delivered to both; v1.10 marked the second one as a duplicate forPUBLISH_. See Event Structure.IDEMPOTENCY_ KEY_ TTL - Around the upgrade, an event or attempt can be delivered one extra time: one handled on v1.10 and again on v1.11 within its idempotency window isn't recognized as a duplicate, and a manual retry on v1.11 doesn't cancel a retry scheduled by v1.10. For IDs that contain
%,:,{or}, the consecutive failure count and the exhausted-retries alert window also start over once. configandcredentialskeys that a destination type doesn't define are ignored on create and update: they aren't stored or returned. Keys stored by v1.10 are still returned until the destination's next update, which removes them.aws_sqsdestinations maskcredentials.sessionin API responses, as the other AWS destinations do.
Rolling Back
You can roll back to v1.10.0 without reverting the migration, which has no revert step. Two limits:
- If
004_escape_idsmoved keys, v1.10 doesn't find those tenants and destinations. - v1.10 doesn't send
credentials.custom_, returns their values unmasked, and removes them when the destination is updated.headers
New Configuration
PUBLISH_AWS_SQS_ROLE_ARN,PUBLISH_,AWS_ SQS_ EXTERNAL_ ID PUBLISH_andAWS_ SQS_ ROLE_ SESSION_ NAME PUBLISH_: read the SQS publish queue through an assumed IAM role, for example a queue in another AWS account. See Publish from SQS.AWS_ SQS_ STS_ REGION