Skip to content

Syncret

Syncret reacts to secret rotation and change events and automates two follow-up actions: copying selected fields from a changed secret into a target secret, and forcing dependent services to restart with the latest values.

Each action is independently optional — at least one must be configured.


Use cases

Database rotation

A managed database secret rotates on a schedule. Syncret copies the new credentials into an application secret so dependent services always have the current password. Service redeployment is optional — enable it when services cache the secret at startup rather than reading it on every request.

flowchart TD
    A[Database secret rotates] --> B["Event rule\nrotation succeeded"]
    B --> C[Syncret]
    C --> D["Update target secret\nSYNCRET_TARGET_SECRET_KEYS"]
    C --> E["Force service redeployment\n— optional —"]

App settings

An operator updates an application secret manually or via API. Syncret forces services to restart so they pick up the new values immediately. Updating a separate target secret is optional.

flowchart TD
    A[Secret updated] --> B["Event rule\nsecret prefix filter"]
    B --> C[Syncret]
    C --> D["Force service redeployment\nSYNCRET_ECS_FORCE_DEPLOY"]
    C --> E["Update target secret\n— optional —"]

Prerequisites

When service redeployment is enabled, Syncret only triggers restarts — it does not inject secrets into containers. Your services must already be configured to fetch the target secret at startup so they pick up the latest values when they restart.

When both actions are enabled, Syncret always updates the target secret before triggering redeployment — so restarting services read the latest values.


Next steps