Keeping Shuffle playbook credentials in an external KMS
Shuffle secrets in an external KMS such as Vault start with one question: which credentials should Shuffle hold itself, and which should a workflow fetch from a key management system when it runs? A security team that wants playbook API keys and app credentials kept out of Shuffle's own database needs workflows to reference a secret stored in the KMS by path, not carry the value. Shuffle already encrypts saved app credentials and API keys in OpenSearch with AES-256 using the SHUFFLE_ENCRYPTION_MODIFIER value, and the Shuffle configuration docs warn that losing or changing that value breaks every saved app authentication. An external reference changes where the plaintext lives and who rotates it, but it does not remove the need to protect that modifier.
Confirm three parts before relying on them. The pattern depends on the exact kms/ path reference syntax, the IAM app that authenticates Shuffle to the KMS, and the Get KMS key action that reads a value at run time. Check each against the current Shuffle docs and the app catalog for the version you run, because syntax and action names are the parts most likely to change between releases. Then confirm the KMS side: an authentication method and policy scoped to the single path Shuffle needs, read-only access, and a token lifetime and renewal approach the Shuffle runtime can meet. A test instance is the place to prove each reference resolves before production playbooks depend on it.
Failure handling decides whether a KMS outage stops every playbook. Decide in advance what a failed lookup does: stop the execution and notify the on-call team, retry with a bounded backoff, or use a cached value, which is rarely acceptable for credentials. Test the runtime against a KMS that is unreachable, one that denies the request, and one that returns a rotated value, and confirm the execution log records the failure without printing the secret. DeployOpen scopes this work as a fixed-scope engagement: KMS and IAM design, the Shuffle app and reference configuration, a migration plan for credentials already stored in the database, failure testing and documented runbooks. A written quote follows from the agreed scope, including the KMS product, the Shuffle version and the number of workflows involved.
What a Shuffle and Vault integration needs before setup
Before any playbook reads a credential from an external key management system, the platform version, the KMS account, the network path, the TLS trust chain and the encrypted credential store in OpenSearch all have to be in place. Each card below covers one of these prerequisites and the check to run before work starts.
Pinned Shuffle version
Run a tagged release rather than an untested build. Shuffle published v2.3.0 on GitHub on September 28, 2026, and its docs recommend the latest Docker tag for stable releases and the nightly tag only for experimental changes. Pin the tag in your Compose or Helm values, record it in the change ticket, and confirm the KMS-backed credential path works on that exact tag in a non-production instance before you promote it.
Shuffle releasesSupported version floor
Shuffle stopped supporting versions older than v2.1.1 after January 31, 2026. If an existing install predates that release, upgrade before you move any credential references, because a fix or behavior you depend on may only exist on a supported line. Treat the upgrade as its own change with a backup and a rollback point, separate from the KMS work so that a failure can be traced to one cause.
KMS account and policy owner
Name one owner for the Vault or other KMS instance, the policy that grants Shuffle read access, and the token or auth method Shuffle will use. Confirm who approves changes to that policy and who receives alerts when the token expires or access is denied. Without a named owner, credential rotation and access reviews tend to stall after go-live.
Network path from backend and workers
The Shuffle backend and the Orborus workers that run each workflow both need a route to the KMS endpoint, and the two may sit on different subnets or in different locations. Map the path from every host that will resolve a kms/ reference, including any hybrid setup where Orborus runs on your side. Confirm egress rules and firewall policy in both directions before testing, because a failure at this layer looks like a credential error inside a workflow.
TLS trust for the KMS endpoint
Decide which certificate authority signs the KMS endpoint and make sure every component that calls it trusts that chain. Internal Vault deployments often use a private CA, so the backend and each Orborus host may need the root certificate added to their trust store. Test the connection from inside the container image, not only from the host, since the runtime may use a different trust bundle.
OpenSearch access for the credential store
Shuffle still holds saved app credentials in OpenSearch, encrypted with AES-256 using the SHUFFLE_ENCRYPTION_MODIFIER secret. Moving a credential to the KMS does not remove the encrypted copy from existing records, so plan access to the OpenSearch cluster, its backups and its snapshots as part of the scope. Back up the encryption modifier before any change, because losing or changing it breaks all saved app authentications.
Shuffle configuration docsHow Shuffle stores app credentials today and what moves out
Shuffle keeps saved app credentials and API keys in its own OpenSearch database, encrypted with AES-256 using the SHUFFLE_ENCRYPTION_MODIFIER value from the server configuration. The key material is therefore derived from a secret that Shuffle's administrators hold on the Shuffle host, and anyone who can read the OpenSearch index and the modifier can recover the stored credentials. The modifier is the single point to protect: the Shuffle docs warn that losing or changing it breaks every saved app authentication, so a rotation of that value is a re-authentication project for every app, not a quiet configuration change. Before you decide anything, confirm in the Shuffle configuration docs how the modifier is set and backed up in your deployment method.
Referencing an external key management system such as Vault moves the secret values out of OpenSearch and places the key material and its audit trail under your KMS team's control. Rotation then happens in the KMS, and access decisions and audit events are recorded where your security team already reviews them. The trade-off is operational: Shuffle must reach the KMS at execution time, the KMS becomes a dependency for every workflow that uses a reference, and the identity Shuffle uses to read secrets becomes a high-value account that needs its own narrow policy. Ask your team which of these outcomes matters most for your audit requirements before choosing the model.
Even with a KMS, some material stays in Shuffle. Workflow definitions, the encryption modifier itself, kms/ path references and app configuration remain in OpenSearch and in the backups you take of it, so a leaked backup can still reveal which secrets a playbook uses and where they live. Confirm, in a test environment, exactly which values remain in OpenSearch after the change by searching the index for a known test secret and reviewing a full backup. Record the result, because that inventory is the evidence an assessor will ask for.
Where the secret is requested and where it is held
The flow starts when a workflow step reaches an action that uses a kms/ reference, so the backend asks for the secret only at execution time. Orborus picks up the job, the per-execution worker starts the app container, and the container requests the value from the external KMS under its IAM identity. Check that OpenSearch and the Shuffle backend store only the reference, while the plaintext value exists in memory in the worker and app container for the duration of the run.
Secret is requested at run time and held only in memory during execution.
Configuring the KMS reference in Shuffle, step by step
This sequence moves Shuffle playbook credentials out of Shuffle's database and into an external key management system. It proceeds from a test namespace to a single-node run and then to production paths, with a check at each step so the team knows the reference works and fails safely before any production secret is involved.
Confirm the integration method and reference syntax
The platform or security engineer reads the current Shuffle configuration docs and the app catalog entry for the KMS app to confirm the
kms/path format, the name of the Get KMS key action and the parameters it expects. Record the Shuffle version and image tag running in the test environment, since the docs recommend the latest Docker tag for stable releases and the nightly tag for experimental changes. Ask the vendor or your KMS provider to confirm any syntax the docs do not cover. Done when the team has a written reference card that names the exact syntax, the action and the Shuffle version it was verified against.Create the test path and KMS policy
The KMS administrator creates a test secret path inside a non-production namespace and writes a policy that grants read access to that path only. Mirror the path layout planned for production so the test exercises the same naming. The policy should not grant list or write access beyond what the workflow needs. Done when a token carrying this policy reads the test path successfully and receives a denial when it requests a neighboring path in the same namespace.
Create a dedicated IAM identity for Shuffle
Create a machine identity for Shuffle using the authentication method your KMS supports, bind it to the test policy only, and keep it separate from any human administrator account. Confirm with your KMS documentation which login method suits a service consumer in your environment. Store the identity's login material in the place your team already uses for service credentials. Done when a login with this identity succeeds and the returned token lists only the test policy, with no additional policies attached.
Store a test secret and wire the app
Write a dummy value, never a production credential, to the test path and log the change with the person and date in your change record. In Shuffle, add the app that provides the Get KMS key action, configure it with the test identity and point it at your KMS address. Confirm that the Shuffle host can reach the KMS over the network path you plan to use in production. Done when the app's connection test passes and the change record shows who wrote the test secret.
Reference the secret in a test workflow
Build a small workflow with one Get KMS key action that reads the test path, followed by a step that uses the value only to confirm it arrived, such as checking its length. Do not print the value to execution output, notifications or logs. Done when a manual run completes the KMS action successfully, the downstream step receives data, and no step displays the secret value in its results or output.
Run the test on a single Orborus node
Restrict execution to one Orborus node so any failure traces back to a single runtime, then start the test workflow manually. Shuffle's architecture starts a worker for each execution and the worker starts app containers, so confirm the run happened on the node you selected. Check the KMS audit log for the request and confirm it came from the test identity. Done when the execution completes on that node and the KMS audit log records a read by the expected identity on the expected path.
Test failure handling and out-of-scope denial
Point the action at a path outside the test policy, then stop or misconfigure the KMS address in a second run. Confirm that the workflow stops with an error that names the failing step, that any error branch or notification runs, and that no partial or empty value flows into later steps. Ask the KMS team to confirm the denial appears in its audit log. Done when both failures produce clear errors, the out-of-scope request shows as denied in the KMS log, and no downstream action runs with a missing value.
Move to production paths with separate identities
Create production paths, policies and an identity per environment or tenant, then update the workflow references to point at production. Retire the test secret, revoke the test identity and remove the test policy once nothing references them. Repeat the single-node run against a production path before enabling more Orborus nodes. Done when a production dry run completes, the test identity no longer authenticates, the test secret is deleted, and the KMS audit log shows the production identity as the only reader.
Mapping Shuffle objects to KMS paths and permissions
This table maps each Shuffle object to a KMS path pattern, the policy grant it needs, the owner who approves access and the event that should trigger rotation. Paths are illustrative, and rows marked for confirmation must be checked against current Shuffle and KMS documentation before you write policy. The main takeaway is that each grant should be scoped to one object, one environment and one tenant.
| Shuffle object | Path pattern | KMS policy grant | Approver and rotation trigger |
|---|---|---|---|
| App authentication entries | kms/<environment>/apps/<app>/<auth-id> (illustrative, confirm reference syntax) | Read on that single path for the Shuffle identity that runs the Get KMS key action | App owner approves. Rotate when the upstream API key changes or the owner leaves |
| Workflow-level values | kms/<environment>/workflows/<workflow-id>/<key> (illustrative, confirm) | Read on the workflow prefix only, with no listing rights | Workflow owner approves. Rotate when the downstream system rotates its credential |
| Environment separation | Separate prefix or mount for development, test and production | No cross-environment read. Each Shuffle instance uses its own KMS identity | Platform owner approves. Review grants when a workflow is promoted between environments |
| Tenant separation (MSSP or business unit) | kms/<tenant>/... with one prefix per tenant (confirm how sub-tenants resolve paths) | Grant per tenant prefix. Deny wildcard access across tenants | Tenant owner approves. Rotate all tenant credentials on offboarding |
| Get KMS key action scope | Applies to a referenced key path (confirm whether it can enumerate paths) | Bind the action to named paths only. Avoid list or wildcard permissions | Security owner approves the role. Review whenever a new app or workflow is added |
| Shuffle IAM app identity | Not a secret path. Identity is configured at the KMS level (confirm supported auth methods) | One identity per environment with a short token lifetime (confirm lifetime settings) | Platform owner approves. Rotate on host change, token renewal or suspected exposure |
| SHUFFLE_ENCRYPTION_MODIFIER | Not a KMS path. Confirm where the deployment stores it | Readable only by platform operators, not by workflow identities | Platform owner approves. Changing it breaks saved app authentications, so plan rotation as a migration |
How playbooks should behave when the KMS is unreachable
A failed secret lookup should stop the step that needs the credential and tell someone, not let the playbook continue on a guess. Five failure modes matter for a Shuffle workflow that reads secrets from a kms/ path: the KMS endpoint is down, the token that Shuffle presents has expired, the IAM policy denies the Get KMS key action on that path, the path does not exist (often after a rename or a typo), and responses arrive slowly under load so that the lookup times out in the middle of a run. Each one looks similar from inside the workflow, a step that did not return a value, so the workflow must distinguish them in its error output. Before you build, confirm with your KMS vendor and your own environment what error codes and timeout behavior the lookup returns in each case, and set timeouts and retry counts from your own load tests rather than from defaults you have not verified.
A workflow that cannot read a secret should fail the affected action visibly, record the execution as failed or incomplete, and route a notification to the on-call channel that names the workflow, the step and the failure class without echoing any secret value. Retries are useful for transient errors such as a slow response or a brief endpoint restart, but they should be bounded and should not repeat destructive actions such as blocking an indicator or revoking a session. Design the retry around the idempotency of the downstream action. Confirm with your Shuffle version how error handling and retry options behave on each action, because the behavior of step-level failure settings is part of what you are testing, not an assumption to carry into production.
Caching a secret in a variable, a file or a fallback value in the workflow undoes the reason for using the KMS. A cached credential keeps working after you rotate or revoke it, a fallback copied into a playbook ends up in exports and version history, and a "use the last known value" branch hides an outage that the security team needs to see. If you need continuity during a KMS outage, the safer design is a documented degraded mode: the workflow stops automated containment, queues the case for an analyst, and keeps alerting until the KMS recovers. Test this with the KMS stopped on purpose: block the endpoint, expire a test token, remove a test policy grant, rename a test path, and inject latency. For each case, confirm the execution state, the notification content, that no secret appears in logs or the execution record, and that the downstream system was not changed.
Hardening the KMS path for Shuffle
An external KMS moves the secret values out of Shuffle's database, but the path to them is still an attack surface. The cards below cover the access, logging, host and key-management controls that decide whether that path stays closed once workflows run in production.
Scope IAM per app or tenant
Give each Shuffle app or tenant its own KMS role or policy that can read only the kms/ paths that app needs. A single shared token that reads every path turns one compromised workflow into access to every credential on the instance. Ask the team to list which paths each app references, then confirm that the policy denies everything else. Review the mapping whenever a new app or tenant is added.
Restrict the Get KMS key action
The Get KMS key action returns the secret value to whoever runs the workflow, so the ability to add or edit steps that call it is effectively the ability to read the secret. Limit editing rights on workflows that use it, and keep workflow authors who only build logic away from the action. Confirm role mapping in the Shuffle access settings before production use, and test that a non-privileged author cannot add the action to a workflow they can edit.
Keep secret values out of logs and exports
A secret that is fetched into a step output can appear in execution results, debug output or a workflow export that someone later shares. Mask or avoid echoing returned values in custom steps, and avoid passing secrets into URLs or arguments that get logged. Test one execution end to end and search the stored results and an exported workflow for the test value before you trust the setup.
Protect the Orborus host and Docker socket
Orborus starts app containers, and access to the Docker socket on that host is effectively root on the host. Any container that can reach the socket can also reach the secrets that the runtime handles. Limit who can log in to the Orborus host, keep the socket out of containers that do not need it, and follow the Docker socket policy in your deployment plan. Ask the team to document which containers mount the socket and why.
Back up the encryption modifier separately
SHUFFLE_ENCRYPTION_MODIFIER protects saved app credentials inside OpenSearch, and the docs warn that losing or changing it breaks every saved app authentication. Keeping the KMS backup and this value in the same place means one loss removes both. Store the modifier in a separate, access-controlled vault, record its location, and test a restore on a non-production instance so you know the value is usable.
Rotate KMS credentials without outages
Rotating the KMS token or role credential used by Shuffle can stop running workflows if the new value is not in place before the old one expires. Issue the new credential, update the Shuffle configuration, and confirm that a test workflow reads a secret before revoking the old one. Plan the rotation window around scheduled workflows, and record the owner and the next rotation date for each credential.
Common failures when Shuffle reads secrets from a KMS
This table lists the failures teams most often hit when a Shuffle workflow reads credentials from an external KMS, with the likely cause, the fix and the first check to run. Read it top to bottom when a workflow fails on a KMS reference, starting with the cheapest checks. Most failures trace back to the path syntax, the IAM read permission or the worker's network path rather than to Shuffle itself.
| Failure | Likely cause and fix | First check |
|---|---|---|
| Reference does not resolve | The kms/ path or key name is misspelled, or the path does not match where the secret is stored. Correct the reference to match the exact KMS path and key name. | Compare the path in the workflow field character by character with the path shown in the KMS console or CLI. |
| Access denied on the Get KMS key action | The IAM app or KMS identity lacks the read action on that path. Grant read on the specific path only, then rerun the action. | Confirm the policy attached to the identity used by the IAM app includes read access to the referenced path. |
| Authentication to the KMS fails | The KMS token has expired or was revoked, so every secret read fails at once. Issue a new token with the same policy and update the stored credential. | Check the token's validity and expiry in the KMS, then run a read with that token from the worker host. |
| Certificate error on the KMS endpoint | The worker does not trust the certificate chain that the KMS presents, often because an internal certificate authority is missing. Install the CA certificate in the worker image or host trust store. | Run a TLS connection test from the worker container to the KMS address and read the certificate verification error. |
| Connection timeout to the KMS | Network rules block the subnet or host where Orborus workers run, or the KMS address is not reachable from that location. Open the path from the worker subnet to the KMS port. | Test TCP reachability from a worker host to the KMS address and port, then check firewall and security group rules. |
| Workflow uses an old secret value | The secret was rotated in the KMS but the reference or a copied value remained in Shuffle. Reference the KMS path rather than a pasted value, then rerun affected executions. | Search workflows and apps for pasted credential values and confirm each uses a kms/ reference. |
| Saved app authentications fail after a modifier change | The SHUFFLE_ENCRYPTION_MODIFIER value changed or was lost, so saved credentials in OpenSearch can no longer be decrypted. Restore the original value; the configuration docs warn that changing it breaks all saved app authentications. | Confirm the modifier value in the running configuration matches the value used when the credentials were saved. |
Questions teams ask before bringing in outside help
What drives the effort of moving Shuffle secrets into a KMS?
Effort rises with the number of apps and secrets to move, the number of tenants, how complex the KMS access policies must be, and how much approval the change needs. Each saved app credential must be located, mapped to a secret path, confirmed with its owner and tested, so a library with many apps takes longer than one with a few. Multi-tenant installs add work because each tenant's secrets need their own paths and permissions. Policy complexity grows when different teams own different paths and need different read rights. Approval adds time when security, platform and application owners must sign off in sequence. Ask any provider to break its quote into these drivers and to state which ones the written scope includes.
Can our team set up external KMS secrets in Shuffle using only the docs?
A team with KMS administration skills and Shuffle experience can often do the work from the documentation, provided it has time to test. The harder part is the design around the syntax: which KMS instance holds which secrets, how the Shuffle identity authenticates and what it may read, and what happens when the KMS is unreachable during an execution. Confirm the exact steps, app and action names, and configuration keys against the Shuffle configuration and apps documentation for the version you run, because behavior can change between releases. Teams without a spare test environment often find gaps during the first production change. Outside help is most useful when you want the design reviewed, the migration done in one planned pass, and a written record of the access model.
What do we need to provide for an external KMS secrets project?
You need to provide three things before work starts.
- KMS administrator access to create the authentication method, policies and secret paths in a test instance and in production.
- A test environment with a Shuffle instance and a KMS where failure cases can be run without touching live playbooks.
- A named owner for each secret who confirms which app and workflow uses it, approves rotation and receives alerts when authentication fails.
Also prepare an inventory of saved app authentications, your Shuffle version and deployment type, and the change windows your platform team approves.
How long does a Shuffle KMS secrets project take?
The duration depends on the scope agreed in writing, and no single figure applies to every environment. Scope sets the number of apps, tenants and secrets to migrate, the number of KMS policies to write, and the test cycles required. Ask for a timeline that lists each phase: discovery of existing credentials, design of paths and policies, test migration, production cutover and failure testing. Note which phases wait on your approvals or access grants, because waiting often takes longer than the technical work. Ask whether the timeline includes a rollback plan and a retest after cutover. If a provider gives one number before reviewing your Shuffle inventory, ask which assumptions it rests on.
What stays in Shuffle after secrets move to the KMS?
Shuffle keeps the workflows, apps, triggers, execution history and the references that tell each action where to fetch its key. The goal of the change is that credential values no longer sit in its database, and you should confirm that after cutover. Shuffle still needs its own encryption setting: the configuration docs say saved app credentials and API keys in OpenSearch are encrypted with AES-256 using the SHUFFLE_ENCRYPTION_MODIFIER secret, and losing or changing that value breaks all saved app authentications. Check the Shuffle configuration docs for any entries that remain after cutover, such as apps you did not migrate. Keep the modifier in your own secrets store and back it up with the OpenSearch data.
What happens to playbooks if the KMS is unavailable?
A playbook action that cannot read its key should fail at that step and be visible in the execution record. Shuffle starts a worker for each workflow execution, so an outage affects new executions that need a key, and executions already running may fail when they reach the step. Design for this before cutover: set timeouts on KMS reads, decide which failed steps should retry and which should stop the workflow, and route failure notifications to the team that owns the affected secret. Make sure the secret values are never written to execution logs during errors. Confirm how your Shuffle version reports a failed external read, and test it by blocking KMS access in the test environment.
Who owns the KMS access policy after the project ends?
After handover, your team owns the KMS policies, secret paths, rotation schedule and periodic access reviews, so the agreed scope should end with a written runbook for those tasks. Ask for a document that lists each path, the Shuffle identity that reads it, the policy that grants access and the named owner who approves changes. Ask who will respond when an app loses authentication and how the team should add a new app or tenant without widening existing permissions. If you want ongoing support, upgrades or testing after the project, that is a separate arrangement that DeployOpen offers as a retainer and should be priced in its own written scope.
How DeployOpen scopes and delivers this integration
DeployOpen treats external secrets for Shuffle as a scoped piece of platform work, not a settings change. We map which playbook credentials move out of Shuffle's database, agree the KMS paths and access policy in writing, then build and test the references against your own Vault or KMS environment before handover.
How we scope
- Inventory every app credential and API key that playbooks currently store inside Shuffle
- Agree the KMS paths, naming convention and which Shuffle workflows read each secret
- Confirm the IAM app, the Get KMS key action and the identity Shuffle uses to authenticate
- Document the failure behavior you expect when the KMS is unreachable or a key is missing
How we build
- Configure kms/ path references in a test Shuffle instance before touching production playbooks
- Test each reference against a sandbox secret, including denied access and a missing key
- Verify that the encryption modifier used for stored app authentications is handled and backed up separately
- Check that workflow logs and execution results do not echo secret values back to users
How we hand over
- Deliver a written record of each secret path, the owning team and the access policy applied
- Provide the test cases used, with expected results for success and each failure mode
- Document the rotation steps for KMS-held secrets and the workflows that need updating
- Walk your operations team through alerting and the runbook for a failed secret lookup
How we support
- Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts
- Ongoing support, upgrades and continuous testing are available as a retainer
- Retesting after Shuffle upgrades or KMS policy changes can be included in the written scope
- Ask for the scope document to confirm which Shuffle versions and KMS products are covered

